Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: c272d5f23c2fa36042842bb5ed7654c8764efd5d ("kernel/sysctl.c: use
DECLARE_SYSCTL_BASE()")
https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git
20211123-sysctl-cleanups
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+---------------------------+------------+------------+
| | cd7ce8f202 | c272d5f23c |
+---------------------------+------------+------------+
| sysctl_duplicate_entry | 0 | 18 |
+---------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang(a)intel.com>
[ 0.454587][ T0] Calibrating delay loop (skipped) preset value.. 4191.74 BogoMIPS
(lpj=6983593)
[ 0.456024][ T0] pid_max: default: 32768 minimum: 301
[ 0.457946][ T0] LSM: Security Framework initializing
[ 0.458865][ T0] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes,
linear)
[ 0.460223][ T0] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes,
linear)
[ 0.461890][ T0] sysctl duplicate entry: //exception-trace
[ 0.462838][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted
5.16.0-rc2-next-20211123-00037-gc272d5f23c2f #1
[ 0.464578][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.12.0-1 04/01/2014
[ 0.465936][ T0] Call Trace:
[ 0.466422][ T0] <TASK>
[ 0.466916][ T0] dump_stack (kbuild/src/consumer/lib/dump_stack.c:114)
[ 0.467913][ T0] __register_sysctl_table (kbuild/src/consumer/fs/proc/proc_sysctl.c:1385)
[ 0.468737][ T0] register_leaf_sysctl_tables
(kbuild/src/consumer/fs/proc/proc_sysctl.c:1507)
[ 0.469560][ T0] __register_sysctl_paths (kbuild/src/consumer/fs/proc/proc_sysctl.c:1593)
To reproduce:
# build kernel
cd linux
cp config-5.16.0-rc2-next-20211123-00037-gc272d5f23c2f .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage
modules
make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir>
modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached
in this email
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation
Thanks,
Oliver Sang