Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipc3: Add size checks on ipc subtypes #9297

Merged
merged 1 commit into from
Aug 8, 2024

Commits on Jul 12, 2024

  1. ipc3: Add size checks on ipc subtypes

    We have a few gaps in input validation from the kernel. Right now we
    check the IPC doesn't claim its larger the window, this patch adds the
    following checks:
    
    1. That the IPC size is at least large enough for any downcast type on
       comp new
    2. That any reported size for a process total size is less than the IPC
       window.
    
    Also adjust the other helper to be  a bit safer and more direct
    
    Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
    cujomalainey committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    04807e5 View commit details
    Browse the repository at this point in the history