mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	x86@kernel.org, Jinjie Ruan <ruanjinjie@huawei.com>
Subject: [tip:core/entry 20/23] include/linux/entry-common.h:109:undefined reference to `syscall_enter_audit'
Date: Sat, 18 Jul 2026 15:19:56 +0800	[thread overview]
Message-ID: <202607181530.2nx8zb3J-lkp@intel.com> (raw)

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/202607181530.2nx8zb3J-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/202607181530.2nx8zb3J-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202607181530.2nx8zb3J-lkp@intel.com/

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

                 reply	other threads:[~2026-07-18  7:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202607181530.2nx8zb3J-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ruanjinjie@huawei.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®