diff options
author | Linus Torvalds <[email protected]> | 2023-12-19 15:26:59 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2023-12-20 21:30:27 -0800 |
commit | a4aebe936554dac6a91e5d091179c934f8325708 (patch) | |
tree | 0bce99baa6b14557f097d059b3b32d7cdfe4c7d9 /lib/memory-notifier-error-inject.c | |
parent | eee7f5b48e20c585dc8069b3ab8abdcabd0afded (diff) |
posix-timers: Get rid of [COMPAT_]SYS_NI() uses
Only the posix timer system calls use this (when the posix timer support
is disabled, which does not actually happen in any normal case), because
they had debug code to print out a warning about missing system calls.
Get rid of that special case, and just use the standard COND_SYSCALL
interface that creates weak system call stubs that return -ENOSYS for
when the system call does not exist.
This fixes a kCFI issue with the SYS_NI() hackery:
CFI failure at int80_emulation+0x67/0xb0 (target: sys_ni_posix_timers+0x0/0x70; expected type: 0xb02b34d9)
WARNING: CPU: 0 PID: 48 at int80_emulation+0x67/0xb0
Reported-by: kernel test robot <[email protected]>
Reviewed-by: Sami Tolvanen <[email protected]>
Tested-by: Sami Tolvanen <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Borislav Petkov <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions