* [pcmoore:dev-staging 19/19] arch/alpha/kernel/ptrace.c:500:21: error: passing argument 2 of 'audit_syscall_entry' makes pointer from integer without a cast
@ 2026-10-04 10:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-04 10:29 UTC (permalink / raw)
To: Ricardo Robaina; +Cc: oe-kbuild-all, Paul Moore, Oleg Nesterov
tree: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git dev-staging
head: de903b3126651c6a97cfb7786e535de974368708
commit: de903b3126651c6a97cfb7786e535de974368708 [19/19] audit: rename audit_syscall_entry_regs() to audit_syscall_entry()
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20261004/202610041836.6TatRQSm-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261004/202610041836.6TatRQSm-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/202610041836.6TatRQSm-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/alpha/kernel/ptrace.c: In function 'syscall_trace_enter':
>> arch/alpha/kernel/ptrace.c:500:21: error: passing argument 2 of 'audit_syscall_entry' makes pointer from integer without a cast [-Wint-conversion]
500 | regs->r16, regs->r17, regs->r18, regs->r19);
| ~~~~^~~~~
| |
| long unsigned int
In file included from arch/alpha/kernel/ptrace.c:18:
include/linux/audit.h:375:67: note: expected 'struct pt_regs *' but argument is of type 'long unsigned int'
375 | static inline void audit_syscall_entry(int major, struct pt_regs *regs)
| ~~~~~~~~~~~~~~~~^~~~
>> arch/alpha/kernel/ptrace.c:499:9: error: too many arguments to function 'audit_syscall_entry'; expected 2, have 5
499 | audit_syscall_entry(syscall_get_nr(current, regs),
| ^~~~~~~~~~~~~~~~~~~
500 | regs->r16, regs->r17, regs->r18, regs->r19);
| ~~~~~~~~~
include/linux/audit.h:375:20: note: declared here
375 | static inline void audit_syscall_entry(int major, struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~
vim +/audit_syscall_entry +500 arch/alpha/kernel/ptrace.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 473
12f79be93d9469 Al Viro 2012-05-26 474 asmlinkage unsigned long syscall_trace_enter(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 475 {
a9302e84394457 蔡正龙 2013-12-20 476 struct pt_regs *regs = current_pt_regs();
55b22075f7840e Magnus Lindholm 2026-04-09 477
12f79be93d9469 Al Viro 2012-05-26 478 if (test_thread_flag(TIF_SYSCALL_TRACE) &&
622f04e97415e6 Thomas Gleixner 2026-07-07 479 !ptrace_report_syscall_permit_entry(regs)) {
55b22075f7840e Magnus Lindholm 2026-04-09 480 syscall_set_nr(current, regs, -1);
55b22075f7840e Magnus Lindholm 2026-04-09 481 if (regs->r19 == 0 && regs->r0 == (unsigned long)-1)
55b22075f7840e Magnus Lindholm 2026-04-09 482 syscall_set_return_value(current, regs, -ENOSYS, 0);
55b22075f7840e Magnus Lindholm 2026-04-09 483 return -1UL;
55b22075f7840e Magnus Lindholm 2026-04-09 484 }
55b22075f7840e Magnus Lindholm 2026-04-09 485
55b22075f7840e Magnus Lindholm 2026-04-09 486 /*
55b22075f7840e Magnus Lindholm 2026-04-09 487 * Do the secure computing after ptrace; failures should be fast.
55b22075f7840e Magnus Lindholm 2026-04-09 488 * If this fails, seccomp may already have set up the return value
55b22075f7840e Magnus Lindholm 2026-04-09 489 * (e.g. SECCOMP_RET_ERRNO / TRACE).
55b22075f7840e Magnus Lindholm 2026-04-09 490 */
7ba2ba74713c83 Jinjie Ruan 2026-07-07 491 if (!seccomp_permit_syscall()) {
55b22075f7840e Magnus Lindholm 2026-04-09 492 if (regs->r19 == 0 && regs->r0 == (unsigned long)-1)
55b22075f7840e Magnus Lindholm 2026-04-09 493 syscall_set_return_value(current, regs, -ENOSYS, 0);
55b22075f7840e Magnus Lindholm 2026-04-09 494 syscall_set_nr(current, regs, -1);
55b22075f7840e Magnus Lindholm 2026-04-09 495 return -1UL;
55b22075f7840e Magnus Lindholm 2026-04-09 496 }
55b22075f7840e Magnus Lindholm 2026-04-09 497
55b22075f7840e Magnus Lindholm 2026-04-09 498 #ifdef CONFIG_AUDITSYSCALL
55b22075f7840e Magnus Lindholm 2026-04-09 @499 audit_syscall_entry(syscall_get_nr(current, regs),
55b22075f7840e Magnus Lindholm 2026-04-09 @500 regs->r16, regs->r17, regs->r18, regs->r19);
55b22075f7840e Magnus Lindholm 2026-04-09 501 #endif
55b22075f7840e Magnus Lindholm 2026-04-09 502 return syscall_get_nr(current, regs);
^1da177e4c3f41 Linus Torvalds 2005-04-16 503 }
12f79be93d9469 Al Viro 2012-05-26 504
:::::: The code at line 500 was first introduced by commit
:::::: 55b22075f7840ef48254886758976531fe146609 alpha: add support for SECCOMP and SECCOMP_FILTER
:::::: TO: Magnus Lindholm <linmag7@gmail.com>
:::::: CC: Magnus Lindholm <linmag7@gmail.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-04 10:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-04 10:29 [pcmoore:dev-staging 19/19] arch/alpha/kernel/ptrace.c:500:21: error: passing argument 2 of 'audit_syscall_entry' makes pointer from integer without a cast kernel test robot
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.