Re: [PATCH] m68k: Fix seccomp filtering on ColdFire and 68000
From: Andreas Schwab
Date: Sun Sep 13 2026 - 06:08:27 EST
On Sep 12 2026, Christopher Lusk wrote:
> diff --git a/arch/m68k/68000/entry.S b/arch/m68k/68000/entry.S
> index c257cc415..093be0a66 100644
> --- a/arch/m68k/68000/entry.S
> +++ b/arch/m68k/68000/entry.S
> @@ -81,6 +81,8 @@ ENTRY(system_call)
> getthreadinfo
> btst #(TIF_SYSCALL_TRACE%8),%a2@(TINFO_FLAGS+(31-TIF_SYSCALL_TRACE)/8)
> jne do_trace
> + btst #(TIF_SECCOMP%8),%a2@(TINFO_FLAGS+(31-TIF_SECCOMP)/8)
> + jne do_trace
Perhaps it would be faster to combine the two conditions (which jump to
the same target) with a single AND?
--
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."