Greeting, FYI, we noticed the following commit (built with gcc-11): commit: 158c3ec956d3881c86df5c0a842f39a2ee0c926b ("jump_label/lockdep: Assert we hold the hotplug lock for _cpuslocked() operations") https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable in testcase: rcutorture version: with following parameters: runtime: 300s test: cpuhotplug torture_type: rcu test-description: rcutorture is rcutorture kernel module load/unload test. test-url: https://www.kernel.org/doc/Documentation/RCU/torture.txt 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): [ 112.591931] ------------[ cut here ]------------ [ 112.595069] WARNING: CPU: 1 PID: 15 at kernel/cpu.c:326 lockdep_assert_cpus_held.cold (cpu.c:?) [ 112.598447] Modules linked in: rcutorture torture [ 112.600090] CPU: 1 PID: 15 Comm: cpuhp/1 Not tainted 4.19.177-00015-g158c3ec956d3 #1 [ 112.602135] RIP: 0010:lockdep_assert_cpus_held.cold (cpu.c:?) [ 112.603510] Code: 26 7e a9 ff e9 65 9c 32 ff 40 0f b6 f5 48 c7 c7 10 09 a4 82 e8 11 7e a9 ff e9 b1 9c 32 ff 48 c7 c7 e0 a7 79 82 e8 c6 a7 00 00 <0f> 0b c3 41 0f b6 f6 48 c7 c7 f0 08 a4 82 e8 ed 7d a9 ff e9 52 a2 All code ======== 0: 26 7e a9 es jle 0xffffffffffffffac 3: ff (bad) 4: e9 65 9c 32 ff jmpq 0xffffffffff329c6e 9: 40 0f b6 f5 movzbl %bpl,%esi d: 48 c7 c7 10 09 a4 82 mov $0xffffffff82a40910,%rdi 14: e8 11 7e a9 ff callq 0xffffffffffa97e2a 19: e9 b1 9c 32 ff jmpq 0xffffffffff329ccf 1e: 48 c7 c7 e0 a7 79 82 mov $0xffffffff8279a7e0,%rdi 25: e8 c6 a7 00 00 callq 0xa7f0 2a:* 0f 0b ud2 <-- trapping instruction 2c: c3 retq 2d: 41 0f b6 f6 movzbl %r14b,%esi 31: 48 c7 c7 f0 08 a4 82 mov $0xffffffff82a408f0,%rdi 38: e8 ed 7d a9 ff callq 0xffffffffffa97e2a 3d: e9 .byte 0xe9 3e: 52 push %rdx 3f: a2 .byte 0xa2 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: c3 retq 3: 41 0f b6 f6 movzbl %r14b,%esi 7: 48 c7 c7 f0 08 a4 82 mov $0xffffffff82a408f0,%rdi e: e8 ed 7d a9 ff callq 0xffffffffffa97e00 13: e9 .byte 0xe9 14: 52 push %rdx 15: a2 .byte 0xa2 [ 112.607938] RSP: 0000:ffffc90000083d00 EFLAGS: 00010282 [ 112.609191] RAX: 0000000000000024 RBX: 0000000000000001 RCX: 0000000000000000 [ 112.610869] RDX: ffff88842fbd9000 RSI: ffff88842fbd09c8 RDI: ffff88842fbd09c8 [ 112.612557] RBP: ffffffff835d2f00 R08: ffff88842fbd09c8 R09: 0000000000000000 [ 112.614253] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 112.615929] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 [ 112.617918] FS: 0000000000000000(0000) GS:ffff88842fa00000(0000) knlGS:0000000000000000 [ 112.620140] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 112.621736] CR2: 000056296b680308 CR3: 00000004063a2000 CR4: 00000000000006a0 [ 112.623725] Call Trace: [ 112.624544] __static_key_slow_dec_cpuslocked (jump_label.c:?) [ 112.626025] sched_cpu_deactivate (??:?) [ 112.627244] ? __call_rcu (??:?) [ 112.628318] ? __call_rcu (??:?) [ 112.629364] ? trace_event_raw_event_rcu_torture_read (??:?) [ 112.631036] ? wait_for_common (completion.c:?) [ 112.632181] ? sched_cpu_activate (??:?) [ 112.633114] cpuhp_invoke_callback (cpu.c:?) [ 112.634168] cpuhp_thread_fun (cpu.c:?) [ 112.635255] ? smpboot_thread_fn (smpboot.c:?) [ 112.636394] ? smpboot_thread_fn (smpboot.c:?) [ 112.637443] smpboot_thread_fn (smpboot.c:?) [ 112.638487] kthread (kthread.c:?) [ 112.639306] ? __smpboot_create_thread (smpboot.c:?) [ 112.640490] ? kthread_unpark (kthread.c:?) [ 112.641490] ret_from_fork (??:?) [ 112.642458] irq event stamp: 384 [ 112.643295] hardirqs last enabled at (383): console_unlock (??:?) [ 112.645443] hardirqs last disabled at (384): trace_hardirqs_off_thunk (??:?) [ 112.647761] softirqs last enabled at (380): __do_softirq (??:?) [ 112.649878] softirqs last disabled at (363): irq_exit (??:?) [ 112.651837] ---[ end trace 3ace9b9d0aaa9a10 ]--- We also test this case on the latest head of linux-4.19-y stable branch, and this issue still exists. ========================================================================================= compiler/kconfig/rootfs/runtime/tbox_group/test/testcase/torture_type: gcc-11/x86_64-randconfig-r033-20220815/debian-11.1-x86_64-20220510.cgz/300s/vm-snb/cpuhotplug/rcutorture/rcu commit: 158c3ec956d38 ("jump_label/lockdep: Assert we hold the hotplug lock for _cpuslocked() operations") c5aefd25d2be3 ("scripts/recordmcount.pl: support big endian for ARCH sh") 5c7ccbe1aade7 ("Linux 4.19.255") 158c3ec956d3881c c5aefd25d2be3a73cec4f3d81d5 v4.19.255 ---------------- --------------------------- --------------------------- fail:runs %reproduction fail:runs %reproduction fail:runs | | | | | 6:6 -100% :6 0% 6:6 dmesg.RIP:lockdep_assert_cpus_held.cold 6:6 -100% :6 0% 6:6 dmesg.WARNING:at_kernel/cpu.c:#lockdep_assert_cpus_held.cold If you fix the issue, kindly add following tag Reported-by: kernel test robot To reproduce: # build kernel cd linux cp config-4.19.177-00015-g158c3ec956d3 .config make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH= modules_install cd 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 -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. -- 0-DAY CI Kernel Test Service https://01.org/lkp