Greeting, FYI, we noticed WARNING:at_kernel/rcu/update.c:#rcutorture_sched_setaffinity due to commit (built with gcc-11): commit: 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 ("sched: Always preserve the user requested cpumask") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git sched/core [test failed on linux-next/master 0cdb3579f1ee4c1e55acf8dfb0697b660067b1f8] in testcase: rcutorture version: with following parameters: runtime: 300s test: cpuhotplug torture_type: trivial 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): [ 82.605945][ T465] ------------[ cut here ]------------ [ 82.607046][ T465] rcutorture_sched_setaffinity: sched_setaffinity() returned -22 [ 82.608499][ T465] WARNING: CPU: 0 PID: 465 at kernel/rcu/update.c:495 rcutorture_sched_setaffinity (??:?) [ 82.610400][ T465] Modules linked in: rcutorture torture [ 82.611509][ T465] CPU: 0 PID: 465 Comm: rcu_torture_fak Tainted: G W 6.1.0-rc2-00013-g8f9ea86fdf99 #1 [ 82.613518][ T465] EIP: rcutorture_sched_setaffinity (??:?) [ 82.614702][ T465] Code: 59 fc ff 85 c0 74 2b 80 3d a2 90 14 83 00 75 22 50 68 78 29 c5 81 68 a7 cf 2d 82 89 45 fc c6 05 a2 90 14 83 01 e8 a3 48 b5 00 <0f> 0b 8b 45 fc 83 c4 0c c9 c3 3e 8d 74 26 00 55 31 d2 80 3d fc 43 All code ======== 0: 59 pop %rcx 1: fc cld 2: ff 85 c0 74 2b 80 incl -0x7fd48b40(%rbp) 8: 3d a2 90 14 83 cmp $0x831490a2,%eax d: 00 75 22 add %dh,0x22(%rbp) 10: 50 push %rax 11: 68 78 29 c5 81 pushq $0xffffffff81c52978 16: 68 a7 cf 2d 82 pushq $0xffffffff822dcfa7 1b: 89 45 fc mov %eax,-0x4(%rbp) 1e: c6 05 a2 90 14 83 01 movb $0x1,-0x7ceb6f5e(%rip) # 0xffffffff831490c7 25: e8 a3 48 b5 00 callq 0xb548cd 2a:* 0f 0b ud2 <-- trapping instruction 2c: 8b 45 fc mov -0x4(%rbp),%eax 2f: 83 c4 0c add $0xc,%esp 32: c9 leaveq 33: c3 retq 34: 3e 8d 74 26 00 lea %ds:0x0(%rsi,%riz,1),%esi 39: 55 push %rbp 3a: 31 d2 xor %edx,%edx 3c: 80 .byte 0x80 3d: 3d .byte 0x3d 3e: fc cld 3f: 43 rex.XB Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 8b 45 fc mov -0x4(%rbp),%eax 5: 83 c4 0c add $0xc,%esp 8: c9 leaveq 9: c3 retq a: 3e 8d 74 26 00 lea %ds:0x0(%rsi,%riz,1),%esi f: 55 push %rbp 10: 31 d2 xor %edx,%edx 12: 80 .byte 0x80 13: 3d .byte 0x3d 14: fc cld 15: 43 rex.XB [ 82.618297][ T465] EAX: 0000003e EBX: 00000001 ECX: e8cb7fd4 EDX: 0100144e [ 82.619690][ T465] ESI: 00000002 EDI: eeabb900 EBP: edc07f50 ESP: edc07f40 [ 82.621136][ T465] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010292 [ 82.622326][ T465] CR0: 80050033 CR2: 74906004 CR3: 05741620 CR4: 000006f0 [ 82.623602][ T465] Call Trace: [ 82.624335][ T465] synchronize_rcu_trivial (rcutorture.c:?) rcutorture [ 82.625480][ T465] rcu_torture_fakewriter (rcutorture.c:?) rcutorture [ 82.626595][ T465] ? __kthread_parkme (kthread.c:?) [ 82.627564][ T465] kthread (kthread.c:?) [ 82.628316][ T465] ? rcu_torture_read_unlock (rcutorture.c:?) rcutorture [ 82.629545][ T465] ? kthread_complete_and_exit (kthread.c:?) [ 82.630643][ T465] ret_from_fork (??:?) [ 82.631594][ T465] irq event stamp: 140123 [ 82.632458][ T465] hardirqs last enabled at (140133): __up_console_sem (printk.c:?) [ 82.634121][ T465] hardirqs last disabled at (140142): __up_console_sem (printk.c:?) [ 82.635690][ T465] softirqs last enabled at (139932): __do_softirq (??:?) [ 82.637361][ T465] softirqs last disabled at (140161): do_softirq_own_stack (??:?) [ 82.639123][ T465] ---[ end trace 0000000000000000 ]--- If you fix the issue, kindly add following tag | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-lkp/202211072243.f6b8c13b-yujie.liu@intel.com To reproduce: # build kernel cd linux cp config-6.1.0-rc2-00013-g8f9ea86fdf99 .config make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=gcc-11 CC=gcc-11 ARCH=i386 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