From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:rseq/perf 12/19] fs/exec.c:1759:2: error: call to undeclared function 'rseq_execve'; ISO C99 and later do not support implicit function declarations
Date: Thu, 14 Aug 2025 07:41:48 +0800 [thread overview]
Message-ID: <202508140702.KMYT7USe-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rseq/perf
head: c3f9d97d82881880460dacf48da60a280f4797cd
commit: e1783910d069f5b08f5eb850dd59377c90fafca6 [12/19] rseq: Replace the pointless event mask bit fiddling
config: x86_64-buildonly-randconfig-001-20250814 (https://download.01.org/0day-ci/archive/20250814/202508140702.KMYT7USe-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508140702.KMYT7USe-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/202508140702.KMYT7USe-lkp@intel.com/
All errors (new ones prefixed by >>):
>> fs/exec.c:1759:2: error: call to undeclared function 'rseq_execve'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1759 | rseq_execve(current);
| ^
fs/exec.c:1759:2: note: did you mean 'ksm_execve'?
include/linux/ksm.h:115:19: note: 'ksm_execve' declared here
115 | static inline int ksm_execve(struct mm_struct *mm)
| ^
1 error generated.
vim +/rseq_execve +1759 fs/exec.c
5d1baf3b63bfc8 Oleg Nesterov 2013-09-11 1729
978ffcbf00d82b Linus Torvalds 2024-01-08 1730 static int bprm_execve(struct linux_binprm *bprm)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1731 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 1732 int retval;
0f2122045b9462 Jens Axboe 2020-09-13 1733
a2a8474c3fff88 Oleg Nesterov 2009-09-05 1734 retval = prepare_bprm_creds(bprm);
a2a8474c3fff88 Oleg Nesterov 2009-09-05 1735 if (retval)
b6043501289ebf Eric W. Biederman 2020-11-20 1736 return retval;
498052bba55eca Al Viro 2009-03-30 1737
275498a98b1fe7 Kees Cook 2022-10-18 1738 /*
275498a98b1fe7 Kees Cook 2022-10-18 1739 * Check for unsafe execution states before exec_binprm(), which
275498a98b1fe7 Kees Cook 2022-10-18 1740 * will call back into begin_new_exec(), into bprm_creds_from_file(),
275498a98b1fe7 Kees Cook 2022-10-18 1741 * where setuid-ness is evaluated.
275498a98b1fe7 Kees Cook 2022-10-18 1742 */
9e00cdb091b008 Oleg Nesterov 2014-01-23 1743 check_unsafe_exec(bprm);
a2a8474c3fff88 Oleg Nesterov 2009-09-05 1744 current->in_execve = 1;
af7f588d8f7355 Mathieu Desnoyers 2022-11-22 1745 sched_mm_cid_before_execve(current);
a6f76f23d297f7 David Howells 2008-11-14 1746
^1da177e4c3f41 Linus Torvalds 2005-04-16 1747 sched_exec();
^1da177e4c3f41 Linus Torvalds 2005-04-16 1748
b8bff599261c93 Eric W. Biederman 2020-03-22 1749 /* Set the unchanging part of bprm->cred */
b8bff599261c93 Eric W. Biederman 2020-03-22 1750 retval = security_bprm_creds_for_exec(bprm);
a5874fde3c0884 Mickaël Salaün 2024-12-12 1751 if (retval || bprm->is_check)
^1da177e4c3f41 Linus Torvalds 2005-04-16 1752 goto out;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1753
5d1baf3b63bfc8 Oleg Nesterov 2013-09-11 1754 retval = exec_binprm(bprm);
a6f76f23d297f7 David Howells 2008-11-14 1755 if (retval < 0)
a6f76f23d297f7 David Howells 2008-11-14 1756 goto out;
a6f76f23d297f7 David Howells 2008-11-14 1757
af7f588d8f7355 Mathieu Desnoyers 2022-11-22 1758 sched_mm_cid_after_execve(current);
169eae7711ea4b Mathieu Desnoyers 2025-03-27 @1759 rseq_execve(current);
a6f76f23d297f7 David Howells 2008-11-14 1760 /* execve succeeded */
f9ce1f1cda8b73 Kentaro Takeda 2009-02-05 1761 current->in_execve = 0;
fd593511cdfc0b Beau Belgrave 2023-03-28 1762 user_events_execve(current);
^1da177e4c3f41 Linus Torvalds 2005-04-16 1763 acct_update_integrals(current);
16d51a590a8ce3 Jann Horn 2019-07-16 1764 task_numa_free(current, false);
^1da177e4c3f41 Linus Torvalds 2005-04-16 1765 return retval;
^1da177e4c3f41 Linus Torvalds 2005-04-16 1766
^1da177e4c3f41 Linus Torvalds 2005-04-16 1767 out:
8890b29341f30f Eric W. Biederman 2020-04-04 1768 /*
3d742d4b6ebb33 Randy Dunlap 2021-02-24 1769 * If past the point of no return ensure the code never
8890b29341f30f Eric W. Biederman 2020-04-04 1770 * returns to the userspace process. Use an existing fatal
8890b29341f30f Eric W. Biederman 2020-04-04 1771 * signal if present otherwise terminate the process with
8890b29341f30f Eric W. Biederman 2020-04-04 1772 * SIGSEGV.
8890b29341f30f Eric W. Biederman 2020-04-04 1773 */
8890b29341f30f Eric W. Biederman 2020-04-04 1774 if (bprm->point_of_no_return && !fatal_signal_pending(current))
e21294a7aaae32 Eric W. Biederman 2021-10-25 1775 force_fatal_sig(SIGSEGV);
^1da177e4c3f41 Linus Torvalds 2005-04-16 1776
af7f588d8f7355 Mathieu Desnoyers 2022-11-22 1777 sched_mm_cid_after_execve(current);
169eae7711ea4b Mathieu Desnoyers 2025-03-27 1778 rseq_set_notify_resume(current);
f9ce1f1cda8b73 Kentaro Takeda 2009-02-05 1779 current->in_execve = 0;
a6f76f23d297f7 David Howells 2008-11-14 1780
0c9cdff054aec0 Eric W. Biederman 2020-07-12 1781 return retval;
0c9cdff054aec0 Eric W. Biederman 2020-07-12 1782 }
0c9cdff054aec0 Eric W. Biederman 2020-07-12 1783
:::::: The code at line 1759 was first introduced by commit
:::::: 169eae7711ea4b745e2d33d53e7b88689b10e1a0 rseq: Eliminate useless task_work on execve
:::::: TO: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-08-13 23:43 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=202508140702.KMYT7USe-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.