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

teec: do fail on MAX_SIZE allocation requests #372

Merged
merged 1 commit into from
Jan 16, 2024

Commits on Jan 16, 2024

  1. teec: do fail on MAX_SIZE allocation requests

    The variable aligned_sz will be 0 when the requested sz is MAX_SIZE.
    Since posix_memalign can return a valid pointer for zero size
    allocations, share memory registration requests for MAX_SIZE might make
    it to the kernel.
    
    This PR stops it early - just as it was before "teec: use multiple of
    page size for page aligned buffers" was merged.
    
    Fixes: acb0885 ("teec: use multiple of page size for page aligned buffers")
    Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
    Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
    ldts committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    f412bac View commit details
    Browse the repository at this point in the history