* Re: [PATCH 3/7] tracing: Have syscall trace events read user space string
[not found] <20250805193235.080757106@kernel.org>
@ 2025-08-06 14:39 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-06 14:39 UTC (permalink / raw)
To: Steven Rostedt, linux-kernel, linux-trace-kernel
Cc: oe-kbuild-all, Masami Hiramatsu, Mark Rutland, Mathieu Desnoyers,
Andrew Morton, Linux Memory Management List, Peter Zijlstra,
Namhyung Kim, Takaya Saeki, Tom Zanussi, Thomas Gleixner,
Ian Rogers, aahringo, Douglas Raillard
Hi Steven,
kernel test robot noticed the following build errors:
[auto build test ERROR on trace/for-next]
[also build test ERROR on linus/master v6.16 next-20250806]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Steven-Rostedt/tracing-Replace-syscall-RCU-pointer-assignment-with-READ-WRITE_ONCE/20250806-122312
base: https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace for-next
patch link: https://lore.kernel.org/r/20250805193235.080757106%40kernel.org
patch subject: [PATCH 3/7] tracing: Have syscall trace events read user space string
config: parisc-randconfig-r071-20250806 (https://download.01.org/0day-ci/archive/20250806/202508062230.puMRaDdE-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250806/202508062230.puMRaDdE-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/202508062230.puMRaDdE-lkp@intel.com/
All errors (new ones prefixed by >>):
kernel/trace/trace_syscalls.c: In function 'check_faultable_syscall':
>> kernel/trace/trace_syscalls.c:886:14: error: '__NR_newfstatat' undeclared (first use in this function); did you mean 'sys_newfstatat'?
886 | case __NR_newfstatat:
| ^~~~~~~~~~~~~~~
| sys_newfstatat
kernel/trace/trace_syscalls.c:886:14: note: each undeclared identifier is reported only once for each function it appears in
vim +886 kernel/trace/trace_syscalls.c
802
803 /*
804 * For system calls that reference user space memory that can
805 * be recorded into the event, set the system call meta data's user_mask
806 * to the "args" index that points to the user space memory to retrieve.
807 */
808 static void check_faultable_syscall(struct trace_event_call *call, int nr)
809 {
810 struct syscall_metadata *sys_data = call->data;
811
812 /* Only work on entry */
813 if (sys_data->enter_event != call)
814 return;
815
816 switch (nr) {
817 /* user arg at position 0 */
818 case __NR_access:
819 case __NR_acct:
820 case __NR_add_key: /* Just _type. TODO add _description */
821 case __NR_chdir:
822 case __NR_chown:
823 case __NR_chmod:
824 case __NR_chroot:
825 case __NR_creat:
826 case __NR_delete_module:
827 case __NR_execve:
828 case __NR_fsopen:
829 case __NR_getxattr: /* Just pathname, TODO add name */
830 case __NR_lchown:
831 case __NR_lgetxattr: /* Just pathname, TODO add name */
832 case __NR_lremovexattr: /* Just pathname, TODO add name */
833 case __NR_link: /* Just oldname. TODO add newname */
834 case __NR_listxattr: /* Just pathname, TODO add list */
835 case __NR_llistxattr: /* Just pathname, TODO add list */
836 case __NR_lsetxattr: /* Just pathname, TODO add list */
837 case __NR_open:
838 case __NR_memfd_create:
839 case __NR_mount: /* Just dev_name, TODO add dir_name and type */
840 case __NR_mkdir:
841 case __NR_mknod:
842 case __NR_mq_open:
843 case __NR_mq_unlink:
844 case __NR_pivot_root: /* Just new_root, TODO add old_root */
845 case __NR_readlink:
846 case __NR_removexattr: /* Just pathname, TODO add name */
847 case __NR_rename: /* Just oldname. TODO add newname */
848 case __NR_request_key: /* Just _type. TODO add _description */
849 case __NR_rmdir:
850 case __NR_setxattr: /* Just pathname, TODO add list */
851 case __NR_shmdt:
852 case __NR_statfs:
853 case __NR_swapon:
854 case __NR_swapoff:
855 case __NR_symlink: /* Just oldname. TODO add newname */
856 case __NR_truncate:
857 case __NR_unlink:
858 case __NR_umount2:
859 case __NR_utime:
860 case __NR_utimes:
861 sys_data->user_mask = BIT(0);
862 break;
863 /* user arg at position 1 */
864 case __NR_execveat:
865 case __NR_faccessat:
866 case __NR_faccessat2:
867 case __NR_finit_module:
868 case __NR_fchmodat:
869 case __NR_fchmodat2:
870 case __NR_fchownat:
871 case __NR_fgetxattr:
872 case __NR_flistxattr:
873 case __NR_fsetxattr:
874 case __NR_fspick:
875 case __NR_fremovexattr:
876 case __NR_futimesat:
877 case __NR_getxattrat: /* Just pathname, TODO add name */
878 case __NR_inotify_add_watch:
879 case __NR_linkat: /* Just oldname. TODO add newname */
880 case __NR_listxattrat: /* Just pathname, TODO add list */
881 case __NR_mkdirat:
882 case __NR_mknodat:
883 case __NR_mount_setattr:
884 case __NR_move_mount: /* Just from_pathname, TODO add to_pathname */
885 case __NR_name_to_handle_at:
> 886 case __NR_newfstatat:
887 case __NR_openat:
888 case __NR_openat2:
889 case __NR_open_tree:
890 case __NR_open_tree_attr:
891 case __NR_readlinkat:
892 case __NR_renameat: /* Just oldname. TODO add newname */
893 case __NR_renameat2: /* Just oldname. TODO add newname */
894 case __NR_removexattrat: /* Just pathname, TODO add name */
895 case __NR_quotactl:
896 case __NR_setxattrat: /* Just pathname, TODO add list */
897 case __NR_syslog:
898 case __NR_symlinkat: /* Just oldname. TODO add newname */
899 case __NR_statx:
900 case __NR_unlinkat:
901 case __NR_utimensat:
902 sys_data->user_mask = BIT(1);
903 break;
904 /* user arg at position 2 */
905 case __NR_init_module:
906 case __NR_fsconfig:
907 sys_data->user_mask = BIT(2);
908 break;
909 /* user arg at position 4 */
910 case __NR_fanotify_mark:
911 sys_data->user_mask = BIT(4);
912 break;
913 default:
914 sys_data->user_mask = 0;
915 }
916 }
917
--
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:[~2025-08-06 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250805193235.080757106@kernel.org>
2025-08-06 14:39 ` [PATCH 3/7] tracing: Have syscall trace events read user space string 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;
as well as URLs for NNTP newsgroup(s).