context icon indicating copy to clipboard operation
context copied to clipboard

Fix shadowstack syscall number redefinition

Open Lastique opened this issue 1 year ago • 0 comments

__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 https://github.com/boostorg/context/issues/263. Fixes https://github.com/boostorg/context/issues/269.

Lastique avatar Sep 12 '24 16:09 Lastique