Re: [PATCH v6 0/2] x86/fred: Prevent immediate repeat of single step trap on return from SIGTRAP handler

From: Sohil Mehta
Date: Mon Jun 09 2025 - 12:34:41 EST


On 6/9/2025 1:40 AM, Xin Li (Intel) wrote:
>
> Xin Li (Intel) (2):
> x86/fred/signal: Prevent immediate repeat of single step trap on
> return from SIGTRAP handler
> selftests/x86: Add a test to detect infinite SIGTRAP handler loop
>

I see that Dave just applied the patches. Sending this out anyway since
I was done reviewing them.

Reviewed-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>


> arch/x86/include/asm/sighandling.h | 22 +++++
> arch/x86/kernel/signal_32.c | 4 +
> arch/x86/kernel/signal_64.c | 4 +
> tools/testing/selftests/x86/Makefile | 2 +-
> tools/testing/selftests/x86/sigtrap_loop.c | 101 +++++++++++++++++++++
> 5 files changed, 132 insertions(+), 1 deletion(-)
> create mode 100644 tools/testing/selftests/x86/sigtrap_loop.c
>
>
> base-commit: dd2922dcfaa3296846265e113309e5f7f138839f