Hello, kernel test robot noticed "canonical_address#:#[##]" on: commit: 37d8a2c4783760dc318664665d94fc9482ec10a2 ("sched/rt: Support multi-criterion fitness search for lowest_rq") https://github.com/qais-yousef/linux rt-thermal-pressure in testcase: locktorture version: with following parameters: runtime: 300s test: default compiler: gcc-12 test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G (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 | Closes: https://lore.kernel.org/oe-lkp/202307191622.c6548121-oliver.sang@intel.com [ 237.911708][ T232] [ 237.914632][ T232] On-line CPU(s) list: 0,1 [ 237.914665][ T232] [ 237.916377][ T232] Thread(s) per core: 1 [ 237.916422][ T232] [ 237.921067][ C1] general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN [ 237.922090][ C1] KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] [ 237.922826][ C1] CPU: 1 PID: 497 Comm: lock_torture_wr Not tainted 6.5.0-rc1-00014-g37d8a2c47837 #1 [ 237.923629][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 [ 237.924515][ C1] RIP: 0010:cpupri_find_fitness (kbuild/src/consumer/include/linux/bitmap.h:266 kbuild/src/consumer/include/linux/cpumask.h:740 kbuild/src/consumer/kernel/sched/cpupri.c:258) [ 237.925091][ C1] Code: c1 ea 03 8a 04 02 84 c0 7f 07 74 05 e8 b4 49 3d 00 31 c0 80 7c 24 48 00 74 48 4c 89 e2 b8 ff ff 37 00 48 c1 ea 03 48 c1 e0 2a <80> 3c 02 00 74 08 4c 89 e7 e8 c9 49 3d 00 48 89 da b8 ff ff 37 00 All code ======== 0: c1 ea 03 shr $0x3,%edx 3: 8a 04 02 mov (%rdx,%rax,1),%al 6: 84 c0 test %al,%al 8: 7f 07 jg 0x11 a: 74 05 je 0x11 c: e8 b4 49 3d 00 callq 0x3d49c5 11: 31 c0 xor %eax,%eax 13: 80 7c 24 48 00 cmpb $0x0,0x48(%rsp) 18: 74 48 je 0x62 1a: 4c 89 e2 mov %r12,%rdx 1d: b8 ff ff 37 00 mov $0x37ffff,%eax 22: 48 c1 ea 03 shr $0x3,%rdx 26: 48 c1 e0 2a shl $0x2a,%rax 2a:* 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 4c 89 e7 mov %r12,%rdi 33: e8 c9 49 3d 00 callq 0x3d4a01 38: 48 89 da mov %rbx,%rdx 3b: b8 ff ff 37 00 mov $0x37ffff,%eax Code starting with the faulting instruction =========================================== 0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 4: 74 08 je 0xe 6: 4c 89 e7 mov %r12,%rdi 9: e8 c9 49 3d 00 callq 0x3d49d7 e: 48 89 da mov %rbx,%rdx 11: b8 ff ff 37 00 mov $0x37ffff,%eax [ 237.926563][ C1] RSP: 0018:ffffc90000198be0 EFLAGS: 00210086 [ 237.927049][ C1] RAX: dffffc0000000000 RBX: ffff8883a8928730 RCX: 0000000000000001 [ 237.927723][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc90000198c28 [ 237.928348][ C1] RBP: ffff88810065a168 R08: 0000000000000000 R09: 0000000000000000 [ 237.928971][ C1] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 237.929595][ C1] R13: ffff88810065a180 R14: ffff888105a78000 R15: 0000000000000000 [ 237.930223][ C1] FS: 0000000000000000(0000) GS:ffff8883a8900000(0000) knlGS:0000000000000000 [ 237.930944][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 237.931535][ C1] CR2: 00000000f6957050 CR3: 0000000159654000 CR4: 00000000000406a0 [ 237.932169][ C1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 237.932768][ C1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 237.933365][ C1] Call Trace: [ 237.933618][ C1] [ 237.933836][ C1] ? __die_body (kbuild/src/consumer/arch/x86/kernel/dumpstack.c:421) [ 237.934212][ C1] ? die_addr (kbuild/src/consumer/arch/x86/kernel/dumpstack.c:462) [ 237.934529][ C1] ? exc_general_protection (kbuild/src/consumer/arch/x86/kernel/traps.c:786 kbuild/src/consumer/arch/x86/kernel/traps.c:728) [ 237.934963][ C1] ? asm_exc_general_protection (kbuild/src/consumer/arch/x86/include/asm/idtentry.h:564) To reproduce: # build kernel cd linux cp config-6.5.0-rc1-00014-g37d8a2c47837 .config make HOSTCC=gcc-12 CC=gcc-12 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=gcc-12 CC=gcc-12 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://github.com/intel/lkp-tests/wiki