[tip:core/entry 20/23] include/linux/entry-common.h:109:undefined reference to `syscall_enter_audit'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core/entry
head:   39109e76c19bcce2041fa1884dbbb8b01f6f38d2
commit: ff2b9a905930db22494690d219724822db443d7a [20/23] entry: Rework syscall_audit_enter()
config: s390-randconfig-001-20260718 (https://download.01.org/0day-ci/archive/20260718/[email protected]/config)
compiler: s390-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   s390-linux-ld: arch/s390/kernel/syscall.o: in function `syscall_trace_enter':
>> include/linux/entry-common.h:109:(.noinstr.text+0x2e6): undefined reference to `syscall_enter_audit'


vim +109 include/linux/entry-common.h

    64	
    65	static __always_inline long syscall_trace_enter(struct pt_regs *regs, unsigned long work,
    66							long syscall)
    67	{
    68		/*
    69		 * Handle Syscall User Dispatch.  This must comes first, since
    70		 * the ABI here can be something that doesn't make sense for
    71		 * other syscall_work features.
    72		 */
    73		if (work & SYSCALL_WORK_SYSCALL_USER_DISPATCH) {
    74			if (syscall_user_dispatch(regs))
    75				return -1L;
    76		}
    77	
    78		/*
    79		 * User space got a time slice extension granted and relinquishes
    80		 * the CPU. The work stops the slice timer to avoid an extra round
    81		 * through hrtimer_interrupt().
    82		 */
    83		if (work & SYSCALL_WORK_SYSCALL_RSEQ_SLICE)
    84			rseq_syscall_enter_work(syscall);
    85	
    86		/* Handle ptrace */
    87		if (work & (SYSCALL_WORK_SYSCALL_TRACE | SYSCALL_WORK_SYSCALL_EMU)) {
    88			if (!arch_ptrace_report_syscall_permit_entry(regs) ||
    89			    (work & SYSCALL_WORK_SYSCALL_EMU))
    90				return -1L;
    91	
    92			/* ptrace might have changed work flags */
    93			work = READ_ONCE(current_thread_info()->syscall_work);
    94		}
    95	
    96		/* Do seccomp after ptrace, to catch any tracer changes. */
    97		if (work & SYSCALL_WORK_SECCOMP) {
    98			if (!__seccomp_permit_syscall())
    99				return -1L;
   100		}
   101	
   102		/* Either of the above might have changed the syscall number */
   103		syscall = syscall_get_nr(current, regs);
   104	
   105		if (unlikely(work & SYSCALL_WORK_SYSCALL_TRACEPOINT))
   106			syscall = trace_syscall_enter(regs, syscall);
   107	
   108		if (unlikely(audit_context()))
 > 109			syscall_enter_audit(regs);
   110	
   111		return syscall;
   112	}
   113	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.