bisecting fixing commit since 811218eceeaa7618652e1b8d11caeff67ab42072 building syzkaller on 98682e5e2aefc9aad61354f4f3ac93be96002a2a testing commit 811218eceeaa7618652e1b8d11caeff67ab42072 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 72c55fd027db2109bd501a88389ba8e79f16a6ce42e46e7171108b6f347f8de7 all runs: crashed: general protection fault in fq_codel_enqueue testing current HEAD 3f8a27f9e27bd78604c0709224cec0ec85a8b106 testing commit 3f8a27f9e27bd78604c0709224cec0ec85a8b106 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 6b2e284c94f677e2631c40667a2559f42b897af01f5caa810879c7bfb04bb5ad all runs: crashed: general protection fault in fq_codel_enqueue revisions tested: 2, total time: 28m23.648744477s (build: 20m56.556211278s, test: 6m51.482940164s) the crash still happens on HEAD commit msg: Linux 4.19.211 crash: general protection fault in fq_codel_enqueue IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 general protection fault: 0000 [#1] PREEMPT SMP KASAN batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! CPU: 1 PID: 9813 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 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 RSP: 0018:ffff8880981c7540 EFLAGS: 00010246 RAX: ffff88808dbe08c0 RBX: ffff8880994a4d80 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffed1011b7c118 RBP: ffff8880981c7630 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880994a5068 R12: 0000000000000000 R13: 1ffff11013038eb4 R14: ffff8880981c7780 R15: 0000000000000000 FS: 00007f96a5827700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff23d51fe0 CR3: 0000000099791000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! __dev_xmit_skb net/core/dev.c:3494 [inline] __dev_queue_xmit+0x1098/0x2900 net/core/dev.c:3807 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 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+0xb1d/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 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! 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 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 __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 batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! RIP: 0033:0x465d99 batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 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:00007f96a5827188 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: 00007fff6d782f1f R14: 00007f96a5827300 R15: 0000000000022000 Modules linked in: batman_adv: It is strongly recommended to keep mac addresses unique to avoid problems! ---[ end trace a7f65c338c125cba ]--- IPv6: ADDRCONF(NETDEV_UP): batadv_slave_0: link is not ready 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 batman_adv: batadv0: Interface activated: batadv_slave_0 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:ffff8880981c7540 EFLAGS: 00010246 RAX: ffff88808dbe08c0 RBX: ffff8880994a4d80 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffed1011b7c118 RBP: ffff8880981c7630 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880994a5068 R12: 0000000000000000 R13: 1ffff11013038eb4 R14: ffff8880981c7780 R15: 0000000000000000 FS: 00007f96a5827700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff23d51fe0 CR3: 0000000099791000 CR4: 00000000003406e0 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)