bisecting fixing commit since 811218eceeaa7618652e1b8d11caeff67ab42072 building syzkaller on 98682e5e2aefc9aad61354f4f3ac93be96002a2a testing commit 811218eceeaa7618652e1b8d11caeff67ab42072 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 15ec4ac972b542f2297674bd5c678817fb1d92b886882ff664693afa85aa4da3 all runs: crashed: general protection fault in fq_codel_enqueue testing current HEAD addba38e7c3bc19036a05c83bcce7878dc644d87 testing commit addba38e7c3bc19036a05c83bcce7878dc644d87 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 5e5f576bcee4c38efe5ecad47a7ace624401a6f5f23e6a1cc34bc183f787aec6 all runs: crashed: general protection fault in fq_codel_enqueue revisions tested: 2, total time: 27m17.143244755s (build: 20m1.580298449s, test: 6m48.239964061s) the crash still happens on HEAD commit msg: Linux 4.19.203 crash: general protection fault in fq_codel_enqueue wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 kasan: CONFIG_KASAN_INLINE enabled ieee80211 phy7: Selected rate control algorithm 'minstrel_ht' kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9838 Comm: syz-executor.2 Not tainted 4.19.203-syzkaller #0 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:126 [inline] RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:174 [inline] RIP: 0010:fq_codel_enqueue+0x865/0x12e0 net/sched/sch_fq_codel.c:236 Code: 48 89 7c 24 48 eb 0b 44 39 7c 24 58 0f 86 bb 00 00 00 48 8b 7c 24 50 80 3f 00 0f 85 82 06 00 00 4c 8b 20 4c 89 e2 48 c1 ea 03 <80> 3c 0a 00 0f 85 64 05 00 00 49 8b 14 24 49 8d 7c 24 28 48 89 10 IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready RSP: 0018:ffff88809ac97540 EFLAGS: 00010246 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 RAX: ffff88808bcc08c0 RBX: ffff8880aeee8dc0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffed1011798118 RBP: ffff88809ac97630 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880aeee90a8 R12: 0000000000000000 R13: 1ffff11013592eb4 R14: ffff88809ac97780 R15: 0000000000000000 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 FS: 00007faa6ef81700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558f98e5ee9f CR3: 000000009841b000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 ieee80211 phy8: Selected rate control algorithm 'minstrel_ht' DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready __dev_xmit_skb net/core/dev.c:3494 [inline] __dev_queue_xmit+0x1098/0x2900 net/core/dev.c:3807 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 dev_queue_xmit+0xb/0x10 net/core/dev.c:3871 __bpf_tx_skb net/core/filter.c:2015 [inline] __bpf_redirect_common net/core/filter.c:2054 [inline] __bpf_redirect+0x619/0xb60 net/core/filter.c:2061 ____bpf_clone_redirect net/core/filter.c:2094 [inline] bpf_clone_redirect+0x29b/0x3f0 net/core/filter.c:2066 bpf_prog_cc75667d52cf7bb0+0x9e7/0x1000 bpf_test_run_one net/bpf/test_run.c:22 [inline] bpf_test_run+0xce/0x330 net/bpf/test_run.c:43 bpf_prog_test_run_skb+0x537/0xa90 net/bpf/test_run.c:147 bpf_prog_test_run kernel/bpf/syscall.c:1796 [inline] __do_sys_bpf kernel/bpf/syscall.c:2441 [inline] __se_sys_bpf+0x9af/0x2bf0 kernel/bpf/syscall.c:2384 __x64_sys_bpf+0x6e/0xb0 kernel/bpf/syscall.c:2384 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465d99 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faa6ef81188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465d99 RDX: 0000000000000048 RSI: 0000000020000140 RDI: 000000000000000a RBP: 00000000004bcf27 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffe76167dbf R14: 00007faa6ef81300 R15: 0000000000022000 Modules linked in: ---[ end trace aae58799a409a9c6 ]--- RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:126 [inline] RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:174 [inline] RIP: 0010:fq_codel_enqueue+0x865/0x12e0 net/sched/sch_fq_codel.c:236 Code: 48 89 7c 24 48 eb 0b 44 39 7c 24 58 0f 86 bb 00 00 00 48 8b 7c 24 50 80 3f 00 0f 85 82 06 00 00 4c 8b 20 4c 89 e2 48 c1 ea 03 <80> 3c 0a 00 0f 85 64 05 00 00 49 8b 14 24 49 8d 7c 24 28 48 89 10 RSP: 0018:ffff88809ac97540 EFLAGS: 00010246 RAX: ffff88808bcc08c0 RBX: ffff8880aeee8dc0 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffed1011798118 RBP: ffff88809ac97630 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880aeee90a8 R12: 0000000000000000 R13: 1ffff11013592eb4 R14: ffff88809ac97780 R15: 0000000000000000 FS: 00007faa6ef81700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558f98e5ee9f CR3: 000000009841b000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 7c 24 48 mov %rdi,0x48(%rsp) 5: eb 0b jmp 0x12 7: 44 39 7c 24 58 cmp %r15d,0x58(%rsp) c: 0f 86 bb 00 00 00 jbe 0xcd 12: 48 8b 7c 24 50 mov 0x50(%rsp),%rdi 17: 80 3f 00 cmpb $0x0,(%rdi) 1a: 0f 85 82 06 00 00 jne 0x6a2 20: 4c 8b 20 mov (%rax),%r12 23: 4c 89 e2 mov %r12,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx 2a: 80 3c 0a 00 cmpb $0x0,(%rdx,%rcx,1) <-- trapping instruction 2e: 0f 85 64 05 00 00 jne 0x598 34: 49 8b 14 24 mov (%r12),%rdx 38: 49 8d 7c 24 28 lea 0x28(%r12),%rdi 3d: 48 89 10 mov %rdx,(%rax)