lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202502261412.2a25ee21-lkp@intel.com>
Date: Wed, 26 Feb 2025 15:15:04 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Christian Brauner <brauner@...nel.org>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <linux-kernel@...r.kernel.org>,
	Jeff Layton <jlayton@...nel.org>, <oliver.sang@...el.com>
Subject: [linus:master] [selftests]  d3238e8944:
 kernel-selftests.pidfd.make.fail



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@...el.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ