mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 22:19:30 +02:00
Merge tag 'core-urgent-2026-09-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull entry code fix from Ingo Molnar: - Fix generic entry code cross-build failure on !CONFIG_AUDITSYSCALL kernels using older RISCV64 and S390 cross-compilers (Thomas Gleixner) * tag 'core-urgent-2026-09-13' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: entry: Guard syscall_enter_audit() invocation with CONFIG_AUDITSYSCALL
This commit is contained in:
@@ -102,7 +102,14 @@ static __always_inline long syscall_trace_enter(struct pt_regs *regs, unsigned l
|
||||
if (unlikely(work & SYSCALL_WORK_SYSCALL_TRACEPOINT))
|
||||
trace_syscall_enter(regs);
|
||||
|
||||
if (unlikely(audit_context()))
|
||||
/*
|
||||
* The config check works around broken compilers which fail to
|
||||
* eliminate the dead code in case of CONFIG_AUDITSYSCALL=n as they
|
||||
* insist on creating a always false runtime condition based on
|
||||
* audit_context() which returns NULL in that case. The explicit
|
||||
* IS_ENABLED() check makes that madness go away.
|
||||
*/
|
||||
if (IS_ENABLED(CONFIG_AUDITSYSCALL) && unlikely(audit_context()))
|
||||
syscall_enter_audit(regs);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user