-
Notifications
You must be signed in to change notification settings - Fork 194
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
getting PR_SET_VMA_ANON_NAME is not supported
even though Linux 5.17+
#129
Comments
I guess this may be the same issue as #127, except that the Linux version in my case actually meets the stated requirement. |
My guess is that your kernel has |
The error can be worked around by simply commenting out these lines: let is_supported = crate::syscall::pr_set_vma_anon_name( pointer, 4096, b"test\0" );
crate::syscall::munmap( pointer, 4096 );
if !is_supported {
warn!( "PR_SET_VMA_ANON_NAME is not supported (Linux 5.17+ required); will try to emulate in userspace" );
PR_SET_VMA_ANON_NAME_SUPPORTED = false;
} I'm not sure if there are any ill effects, but the program seems to work as before otherwise. |
How can I tell if this config is enabled or not on my kernel? Also, |
Often there's a config file in
Yes, it's possible they disabled it (maybe because they thought no one needs it). |
OS (
uname -r
): 6.1.0-30-amd64Running the following:
$ export MEMORY_PROFILER_LOG=warn $ LD_PRELOAD=./libbytehound.so ./your_application
This results in the error:
bytehound: 15ad0e 15ad0e WRN PR_SET_VMA_ANON_NAME is not supported (Linux 5.17+ required); will try to emulate in userspace
Note:
bytebound
was working on the same machine a few months ago. In the meantime, the kernel version was updated. I needed to run it again, and noticed it no longer works.The text was updated successfully, but these errors were encountered: