syzkaller0: entered promiscuous mode syzkaller0: entered allmulticast mode Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] CPU: 3 UID: 0 PID: 6257 Comm: syz.0.18 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:bpf_net_ctx_get_ri include/linux/filter.h:841 [inline] RIP: 0010:____bpf_redirect net/core/filter.c:2555 [inline] RIP: 0010:bpf_redirect+0x5d/0x180 net/core/filter.c:2553 Code: 48 c1 ea 03 80 3c 02 00 0f 85 1c 01 00 00 48 8b 9b 08 19 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 73 38 4c 89 f2 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e cf 00 00 00 44 8b 6b 38 31 ff RSP: 0018:ffffc9000432f3c8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff92000736a09 RDX: 0000000000000007 RSI: ffffffff89760137 RDI: ffff88802f0a9908 RBP: 00000080ffffffff R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffff88803a98bd41 R12: ffff88803a98bcc0 R13: ffffc900039b5000 R14: 0000000000000038 R15: ffff88802e6676c0 FS: 00007ff2d52b16c0(0000) GS:ffff8880d6632000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a4ada84000 CR3: 0000000025329000 CR4: 0000000000352ef0 Call Trace: bpf_prog_6338e008a91e2d10+0x23/0x29 bpf_dispatcher_nop_func include/linux/bpf.h:1454 [inline] __bpf_prog_run include/linux/filter.h:723 [inline] bpf_prog_run include/linux/filter.h:730 [inline] bpf_prog_run_data_pointers include/linux/filter.h:939 [inline] cls_bpf_classify+0x533/0x1320 net/sched/cls_bpf.c:103 tc_classify include/net/tc_wrapper.h:198 [inline] __tcf_classify net/sched/cls_api.c:1764 [inline] tcf_classify+0x7ef/0x1250 net/sched/cls_api.c:1860 drr_classify net/sched/sch_drr.c:315 [inline] drr_enqueue+0x2f4/0xac0 net/sched/sch_drr.c:344 dev_qdisc_enqueue net/core/dev.c:4176 [inline] __dev_xmit_skb net/core/dev.c:4291 [inline] __dev_queue_xmit+0x2fd8/0x4940 net/core/dev.c:4833 dev_queue_xmit include/linux/netdevice.h:3436 [inline] packet_xmit+0x243/0x310 net/packet/af_packet.c:276 packet_snd net/packet/af_packet.c:3082 [inline] packet_sendmsg+0x319a/0x5100 net/packet/af_packet.c:3114 sock_sendmsg_nosec net/socket.c:775 [inline] __sock_sendmsg net/socket.c:790 [inline] ____sys_sendmsg+0x9e1/0xb70 net/socket.c:2684 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2738 __sys_sendmsg+0x160/0x210 net/socket.c:2770 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff2d439ce59 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff2d52b1028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff2d4615fa0 RCX: 00007ff2d439ce59 RDX: 0000000000000005 RSI: 0000200000000280 RDI: 0000000000000007 RBP: 00007ff2d4432d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff2d4616038 R14: 00007ff2d4615fa0 R15: 00007fff52e37ec8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bpf_net_ctx_get_ri include/linux/filter.h:841 [inline] RIP: 0010:____bpf_redirect net/core/filter.c:2555 [inline] RIP: 0010:bpf_redirect+0x5d/0x180 net/core/filter.c:2553 Code: 48 c1 ea 03 80 3c 02 00 0f 85 1c 01 00 00 48 8b 9b 08 19 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 73 38 4c 89 f2 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e cf 00 00 00 44 8b 6b 38 31 ff RSP: 0018:ffffc9000432f3c8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff92000736a09 RDX: 0000000000000007 RSI: ffffffff89760137 RDI: ffff88802f0a9908 RBP: 00000080ffffffff R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffff88803a98bd41 R12: ffff88803a98bcc0 R13: ffffc900039b5000 R14: 0000000000000038 R15: ffff88802e6676c0 FS: 00007ff2d52b16c0(0000) GS:ffff8880d6632000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a4ada84000 CR3: 0000000025329000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 1c 01 00 00 jne 0x12a e: 48 8b 9b 08 19 00 00 mov 0x1908(%rbx),%rbx 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 4c 8d 73 38 lea 0x38(%rbx),%r14 23: 4c 89 f2 mov %r14,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e cf 00 00 00 jle 0x109 3a: 44 8b 6b 38 mov 0x38(%rbx),%r13d 3e: 31 ff xor %edi,%edi