mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [linus:master] [selftests]  d3238e8944: kernel-selftests.pidfd.make.fail
@ 2025-02-26  7:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-26  7:15 UTC (permalink / raw)
  To: Christian Brauner; +Cc: oe-lkp, lkp, linux-kernel, Jeff Layton, oliver.sang



Hello,

kernel test robot noticed "kernel-selftests.pidfd.make.fail" on:

commit: d3238e8944e2bd1d6a006d35850e86fa80469751 ("selftests: remove unneeded include")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: kernel-selftests
version: kernel-selftests-x86_64-7ff71e6d9239-1_20250215
with following parameters:

	group: pidfd



config: x86_64-dcg_x86_64_defconfig-kselftests
compiler: gcc-12
test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz (Cascade Lake) with 32G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)




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 <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202502261412.2a25ee21-lkp@intel.com

KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751
2025-02-23 19:26:51 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh
2025-02-23 19:26:51 make -j36 -C pidfd
make: Entering directory '/usr/src/perf_selftests-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751/tools/testing/selftests/pidfd'
  CC       pidfd_fdinfo_test
  CC       pidfd_test
  CC       pidfd_open_test
  CC       pidfd_poll_test
  CC       pidfd_wait
  CC       pidfd_setns_test
  CC       pidfd_getfd_test
pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’:
pidfd_fdinfo_test.c:230:13: warning: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration]
  230 |         r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
      |             ^~~~~
pidfd_fdinfo_test.c:230:36: error: ‘MS_REC’ undeclared (first use in this function)
  230 |         r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
      |                                    ^~~~~~
pidfd_fdinfo_test.c:230:36: note: each undeclared identifier is reported only once for each function it appears in
pidfd_fdinfo_test.c:230:45: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’?
  230 |         r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
      |                                             ^~~~~~~~~~
      |                                             MAP_PRIVATE
pidfd_fdinfo_test.c:236:15: warning: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration]
  236 |         (void)umount2("/proc", MNT_DETACH);
      |               ^~~~~~~
      |               SYS_umount2
pidfd_fdinfo_test.c:236:32: error: ‘MNT_DETACH’ undeclared (first use in this function)
  236 |         (void)umount2("/proc", MNT_DETACH);
      |                                ^~~~~~~~~~
make: *** [../lib.mk:222: /usr/src/perf_selftests-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751/tools/testing/selftests/pidfd/pidfd_fdinfo_test] Error 1
make: *** Waiting for unfinished jobs....
pidfd_setns_test.c: In function ‘current_nsset_setup’:
pidfd_setns_test.c:211:54: warning: implicit declaration of function ‘ioctl’ [-Wimplicit-function-declaration]
  211 |                 self->child_pidfd_derived_nsfds[i] = ioctl(self->pidfd, info->pidfd_ioctl, 0);
      |                                                      ^~~~~
make: Leaving directory '/usr/src/perf_selftests-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751/tools/testing/selftests/pidfd'
2025-02-23 19:26:51 make quicktest=1 run_tests -C pidfd
make: Entering directory '/usr/src/perf_selftests-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751/tools/testing/selftests/pidfd'
  CC       pidfd_fdinfo_test
pidfd_fdinfo_test.c: In function ‘child_fdinfo_nspid_test’:
pidfd_fdinfo_test.c:230:13: warning: implicit declaration of function ‘mount’ [-Wimplicit-function-declaration]
  230 |         r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
      |             ^~~~~
pidfd_fdinfo_test.c:230:36: error: ‘MS_REC’ undeclared (first use in this function)
  230 |         r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
      |                                    ^~~~~~
pidfd_fdinfo_test.c:230:36: note: each undeclared identifier is reported only once for each function it appears in
pidfd_fdinfo_test.c:230:45: error: ‘MS_PRIVATE’ undeclared (first use in this function); did you mean ‘MAP_PRIVATE’?
  230 |         r = mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, 0);
      |                                             ^~~~~~~~~~
      |                                             MAP_PRIVATE
pidfd_fdinfo_test.c:236:15: warning: implicit declaration of function ‘umount2’; did you mean ‘SYS_umount2’? [-Wimplicit-function-declaration]
  236 |         (void)umount2("/proc", MNT_DETACH);
      |               ^~~~~~~
      |               SYS_umount2
pidfd_fdinfo_test.c:236:32: error: ‘MNT_DETACH’ undeclared (first use in this function)
  236 |         (void)umount2("/proc", MNT_DETACH);
      |                                ^~~~~~~~~~
make: *** [../lib.mk:222: /usr/src/perf_selftests-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751/tools/testing/selftests/pidfd/pidfd_fdinfo_test] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-dcg_x86_64_defconfig-kselftests-d3238e8944e2bd1d6a006d35850e86fa80469751/tools/testing/selftests/pidfd'



The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250226/202502261412.2a25ee21-lkp@intel.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:[~2025-02-26  7:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-26  7:15 [linus:master] [selftests] d3238e8944: kernel-selftests.pidfd.make.fail 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®