aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorXin Li (Intel) <[email protected]>2025-06-09 08:40:54 +0000
committerDave Hansen <[email protected]>2025-06-09 15:52:06 +0000
commitf287822688eeb44ae1cf6ac45701d965efc33218 (patch)
tree3740156e6b6b2b6fd250b6fdbdf7483cd215b59d /lib/crypto/mpi/mpiutil.c
parentx86/fred/signal: Prevent immediate repeat of single step trap on return from ... (diff)
downloadkernel-f287822688eeb44ae1cf6ac45701d965efc33218.tar.gz
kernel-f287822688eeb44ae1cf6ac45701d965efc33218.zip
selftests/x86: Add a test to detect infinite SIGTRAP handler loop
When FRED is enabled, if the Trap Flag (TF) is set without an external debugger attached, it can lead to an infinite loop in the SIGTRAP handler. To avoid this, the software event flag in the augmented SS must be cleared, ensuring that no single-step trap remains pending when ERETU completes. This test checks for that specific scenario—verifying whether the kernel correctly prevents an infinite SIGTRAP loop in this edge case when FRED is enabled. The test should _always_ pass with IDT event delivery, thus no need to disable the test even when FRED is not enabled. Signed-off-by: Xin Li (Intel) <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Tested-by: Sohil Mehta <[email protected]> Cc:[email protected] Link: https://lore.kernel.org/all/20250609084054.2083189-3-xin%40zytor.com
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions