Skip to content

test/libc: fix cachestat() test on recent Linux kernels. #1411

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

debrouxl
Copy link

@debrouxl debrouxl commented May 4, 2025

On Linux kernels which contain the fix for CVE-2025-21691, i.e. 5f537664e705b0bf8b7e329861f20128534f6a83 or its backports such as 780ab8329672464984cf1344bd5c3993af0226c7 , cachestat() requires that the file is writable or owned.
Use /proc/self/comm instead of /proc/version and /proc.

On Linux kernels which contain the fix for CVE-2025-21691, i.e.
5f537664e705b0bf8b7e329861f20128534f6a83 or its backports such as
780ab8329672464984cf1344bd5c3993af0226c7 , cachestat() requires
that the file is writable or owned.
Use /proc/self/comm instead of /proc/version and /proc.

Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant