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

Fix shadowstack syscall number redefinition #270

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Lastique
Copy link
Member

__NR_map_shadow_stack is defined to 453 (not 451) on Ubuntu 24.04 with Linux kernel 6.8.0-44, gcc 13.2.0 and glibc 2.39. This causes warnings about macro redefinition when Boost.Fiber is compiled.

Change the syscall number to 453 and only define the macro if it has not been defined already. Also include unistd.h for syscall() and __NR_* constants.

Also convert tabs to spaces and trim trailing spaces.

Fixes #263.
Fixes #269.

__NR_map_shadow_stack is defined to 453 (not 451) on Ubuntu 24.04 with
Linux kernel 6.8.0-44, gcc 13.2.0 and glibc 2.39. This causes warnings
about macro redefinition when Boost.Fiber is compiled.

Change the syscall number to 453 and only define the macro if it has
not been defined already. Also include unistd.h for syscall() and
__NR_* constants.

Fixes boostorg#263.
Fixes boostorg#269.
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.

__NR_map_shadow_stack redefinition gcc-14: map_shadow_stack incorrect syscall number
1 participant