linux/arch
H. Peter Anvin (Intel) ad41a14cc2 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) <hpa@zytor.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Shan Kang <shan.kang@intel.com>
Link: https://lore.kernel.org/r/20231205105030.8698-21-xin3.li@intel.com
2024-01-31 22:02:00 +01:00
..
alpha RTC for 6.8 2024-01-18 17:25:39 -08:00
arc IOMMU Updates for Linux v6.8 2024-01-18 15:16:57 -08:00
arm vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
arm64 arm64 fixes for -rc1 2024-01-19 13:36:15 -08:00
csky vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
hexagon asm-generic cleanups for 6.8 2024-01-10 18:13:44 -08:00
loongarch LoongArch changes for v6.8 2024-01-19 13:30:49 -08:00
m68k percpu: 2024-01-18 15:01:28 -08:00
microblaze Microblaze patches for 6.8-rc1 2024-01-17 11:27:23 -08:00
mips vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
nios2 percpu: 2024-01-18 15:01:28 -08:00
openrisc
parisc percpu: 2024-01-18 15:01:28 -08:00
powerpc powerpc fixes for 6.8 #2 2024-01-21 11:04:29 -08:00
riscv RISC-V Patches for the 6.8 Merge Window, Part 4 2024-01-20 11:06:04 -08:00
s390 vfs-6.8.netfs 2024-01-19 09:10:23 -08:00
sh sh updates for v6.8 2024-01-20 09:24:06 -08:00
sparc sparc: Use device_get_match_data() 2024-01-19 08:08:53 -06:00
um TTY/Serial changes for 6.8-rc1 2024-01-18 11:37:24 -08:00
x86 x86/fred: Allow single-step trap and NMI when starting a new task 2024-01-31 22:02:00 +01:00
xtensa percpu: 2024-01-18 15:01:28 -08:00
.gitignore
Kconfig IOMMU Updates for Linux v6.8 2024-01-18 15:16:57 -08:00