* [tip:WIP.core/entry 1/1] arch/riscv/kernel/ptrace.c:162:6: error: too few arguments to function 'secure_computing'
@ 2020-07-26 23:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-26 23:41 UTC (permalink / raw)
To: Ingo Molnar; +Cc: kbuild-all, linux-kernel, x86
[-- Attachment #1: Type: text/plain, Size: 3846 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.core/entry
head: 85546baab915492f05f29b91c4003bf15891e89b
commit: 85546baab915492f05f29b91c4003bf15891e89b [1/1] entry: Fix !CONFIG_SECCOMP stub
config: riscv-allnoconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 85546baab915492f05f29b91c4003bf15891e89b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/riscv/kernel/ptrace.c:151:15: warning: no previous prototype for 'do_syscall_trace_enter' [-Wmissing-prototypes]
151 | __visible int do_syscall_trace_enter(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/riscv/kernel/ptrace.c: In function 'do_syscall_trace_enter':
>> arch/riscv/kernel/ptrace.c:162:6: error: too few arguments to function 'secure_computing'
162 | if (secure_computing() == -1)
| ^~~~~~~~~~~~~~~~
In file included from include/linux/sched.h:21,
from arch/riscv/include/asm/syscall.h:14,
from arch/riscv/kernel/ptrace.c:11:
include/linux/seccomp.h:64:19: note: declared here
64 | static inline int secure_computing(const struct seccomp_data *sd) { return 0; }
| ^~~~~~~~~~~~~~~~
arch/riscv/kernel/ptrace.c: At top level:
arch/riscv/kernel/ptrace.c:174:16: warning: no previous prototype for 'do_syscall_trace_exit' [-Wmissing-prototypes]
174 | __visible void do_syscall_trace_exit(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~
vim +/secure_computing +162 arch/riscv/kernel/ptrace.c
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 146
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 147 /*
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 148 * Allows PTRACE_SYSCALL to work. These are called from entry.S in
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 149 * {handle,ret_from}_syscall.
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 150 */
af33d2433b03d6 Tycho Andersen 2020-02-08 151 __visible int do_syscall_trace_enter(struct pt_regs *regs)
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 152 {
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 153 if (test_thread_flag(TIF_SYSCALL_TRACE))
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 154 if (tracehook_report_syscall_entry(regs))
af33d2433b03d6 Tycho Andersen 2020-02-08 155 return -1;
e2c0cdfba7f699 Palmer Dabbelt 2017-07-10 156
5340627e3fe080 David Abdurachmanov 2019-10-04 157 /*
5340627e3fe080 David Abdurachmanov 2019-10-04 158 * Do the secure computing after ptrace; failures should be fast.
5340627e3fe080 David Abdurachmanov 2019-10-04 159 * If this fails we might have return value in a0 from seccomp
5340627e3fe080 David Abdurachmanov 2019-10-04 160 * (via SECCOMP_RET_ERRNO/TRACE).
5340627e3fe080 David Abdurachmanov 2019-10-04 161 */
af33d2433b03d6 Tycho Andersen 2020-02-08 @162 if (secure_computing() == -1)
af33d2433b03d6 Tycho Andersen 2020-02-08 163 return -1;
5340627e3fe080 David Abdurachmanov 2019-10-04 164
:::::: The code at line 162 was first introduced by commit
:::::: af33d2433b03d63ed31fcfda842f46676a5e1afc riscv: fix seccomp reject syscall code path
:::::: TO: Tycho Andersen <tycho@tycho.ws>
:::::: CC: Palmer Dabbelt <palmerdabbelt@google.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 5369 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-26 23:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-26 23:41 [tip:WIP.core/entry 1/1] arch/riscv/kernel/ptrace.c:162:6: error: too few arguments to function 'secure_computing' kernel test robot
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®