bisecting fixing commit since afc997898ece86b15214a5872f21a3011aa2b23d building syzkaller on 44068e196185e2f5a7c94629b6245cdde008b140 testing commit afc997898ece86b15214a5872f21a3011aa2b23d compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6698c30e4b3a56448c28387744e0aedc9e873c5515c2a3762fe563ed40b893d1 all runs: crashed: general protection fault in reweight_entity testing current HEAD d605f2f30d54ba268170b3982f79c770b5a50329 testing commit d605f2f30d54ba268170b3982f79c770b5a50329 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 4543030342d130824b5840911a1fc1b76fc614747c5f4b2950dbefee1125c3e0 all runs: crashed: general protection fault in reweight_entity revisions tested: 2, total time: 16m38.464510192s (build: 9m43.755942688s, test: 6m21.584935664s) the crash still happens on HEAD commit msg: Merge 5.10.91 into android12-5.10-lts crash: general protection fault in reweight_entity general protection fault, probably for non-canonical address 0xdffffc0000000014: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000a0-0x00000000000000a7] CPU: 1 PID: 1961 Comm: syz-executor742 Not tainted 5.10.91-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:dequeue_load_avg kernel/sched/fair.c:3095 [inline] RIP: 0010:reweight_entity+0x125/0x580 kernel/sched/fair.c:3114 Code: 80 3c 11 00 0f 85 3b 04 00 00 49 8d bc 24 a0 00 00 00 4c 8b b3 a0 01 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 e4 03 00 00 49 8b 94 24 a0 00 00 00 b9 00 00 00 RSP: 0018:ffffc900062a7cd8 EFLAGS: 00010006 RAX: 0000000000003c00 RBX: ffff888119c74e80 RCX: 0000000000000014 RDX: dffffc0000000000 RSI: ffff888119c74e80 RDI: 00000000000000a0 RBP: ffffc900062a7d18 R08: ffff888119d2a700 R09: ffff888119c74e78 R10: ffff888119c751f0 R11: 1ffff1102338e9cf R12: 0000000000000000 R13: ffff888119c74eb8 R14: 0000000000000400 R15: ffff888119c74e68 FS: 00007fb114908700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb1149aba98 CR3: 000000010fcb0000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: reweight_task+0x9a/0x170 kernel/sched/fair.c:3139 set_load_weight kernel/sched/core.c:902 [inline] set_user_nice+0x964/0x1450 kernel/sched/core.c:5255 set_one_prio+0x1ad/0x220 kernel/sys.c:202 __do_sys_setpriority+0x201/0x680 kernel/sys.c:243 __se_sys_setpriority kernel/sys.c:207 [inline] __x64_sys_setpriority+0x6e/0xb0 kernel/sys.c:207 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fb1149568b9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb114908318 EFLAGS: 00000246 ORIG_RAX: 000000000000008d RAX: ffffffffffffffda RBX: 00007fb1149de3e8 RCX: 00007fb1149568b9 RDX: 0000000000008f82 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 00007fb1149de3e0 R08: 00007fb114908700 R09: 0000000000000000 R10: 00007fb114908700 R11: 0000000000000246 R12: 00007fb1149de3ec R13: 00007ffd79afcabf R14: 00007fb114908400 R15: 0000000000022000 Modules linked in: ---[ end trace d6cf036f8bad9187 ]--- RIP: 0010:dequeue_load_avg kernel/sched/fair.c:3095 [inline] RIP: 0010:reweight_entity+0x125/0x580 kernel/sched/fair.c:3114 Code: 80 3c 11 00 0f 85 3b 04 00 00 49 8d bc 24 a0 00 00 00 4c 8b b3 a0 01 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 e4 03 00 00 49 8b 94 24 a0 00 00 00 b9 00 00 00 RSP: 0018:ffffc900062a7cd8 EFLAGS: 00010006 RAX: 0000000000003c00 RBX: ffff888119c74e80 RCX: 0000000000000014 RDX: dffffc0000000000 RSI: ffff888119c74e80 RDI: 00000000000000a0 RBP: ffffc900062a7d18 R08: ffff888119d2a700 R09: ffff888119c74e78 R10: ffff888119c751f0 R11: 1ffff1102338e9cf R12: 0000000000000000 R13: ffff888119c74eb8 R14: 0000000000000400 R15: ffff888119c74e68 FS: 00007fb114908700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb1149aba98 CR3: 000000010fcb0000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) 4: 0f 85 3b 04 00 00 jne 0x445 a: 49 8d bc 24 a0 00 00 lea 0xa0(%r12),%rdi 11: 00 12: 4c 8b b3 a0 01 00 00 mov 0x1a0(%rbx),%r14 19: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 20: fc ff df 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2e: 0f 85 e4 03 00 00 jne 0x418 34: 49 8b 94 24 a0 00 00 mov 0xa0(%r12),%rdx 3b: 00 3c: b9 .byte 0xb9 3d: 00 00 add %al,(%rax)