aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <[email protected]>2023-12-05 02:50:09 -0800
committerBorislav Petkov (AMD) <[email protected]>2024-01-31 22:02:00 +0100
commitad41a14cc2d66229479d73e4a7dc1fda26827666 (patch)
tree47a8181b9090d52ee7c493679e93b5c1fa1c5fe2 /lib/test_fortify/write_overflow-strncpy-src.c
parentdf8838737b3612eea024fce5ffce0b23dafe5058 (diff)
x86/fred: Allow single-step trap and NMI when starting a new task
Entering a new task is logically speaking a return from a system call (exec, fork, clone, etc.). As such, if ptrace enables single stepping a single step exception should be allowed to trigger immediately upon entering user space. This is not optional. NMI should *never* be disabled in user space. As such, this is an optional, opportunistic way to catch errors. Allow single-step trap and NMI when starting a new task, thus once the new task enters user space, single-step trap and NMI are both enabled immediately. Signed-off-by: H. Peter Anvin (Intel) <[email protected]> Signed-off-by: Xin Li <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Shan Kang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions