Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 2 PID: 15191 Comm: syz.1.3642 Not tainted 6.10.0-syzkaller-01155-gd67978318827 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:dev_map_generic_redirect+0xb9/0x5f0 kernel/bpf/devmap.c:681 Code: 48 c1 e8 03 42 0f b6 04 20 84 c0 74 08 3c 03 0f 8e 50 04 00 00 48 89 ea 44 8b 73 70 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 89 04 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffffc9000404f868 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888000f71cc0 RCX: ffffc90025c66000 RDX: 0000000000000000 RSI: ffffffff81b4c106 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 1ffff92000809f13 R14: 000000000000fdef R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f5cebb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000006512a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: xdp_do_generic_redirect_map net/core/filter.c:4490 [inline] xdp_do_generic_redirect+0x309/0x720 net/core/filter.c:4549 do_xdp_generic+0x77f/0xc30 net/core/dev.c:5108 tun_get_user+0x1d1b/0x3c20 drivers/net/tun.c:1924 tun_chr_write_iter+0xe8/0x210 drivers/net/tun.c:2048 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6b6/0x1140 fs/read_write.c:590 ksys_write+0x12f/0x260 fs/read_write.c:643 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf73d3579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f5ceb540 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00000000000000c8 RCX: 00000000200000c0 RDX: 000000000000fdef RSI: 00000000f73bdff4 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dev_map_generic_redirect+0xb9/0x5f0 kernel/bpf/devmap.c:681 Code: 48 c1 e8 03 42 0f b6 04 20 84 c0 74 08 3c 03 0f 8e 50 04 00 00 48 89 ea 44 8b 73 70 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 89 04 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b RSP: 0018:ffffc9000404f868 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888000f71cc0 RCX: ffffc90025c66000 RDX: 0000000000000000 RSI: ffffffff81b4c106 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 1ffff92000809f13 R14: 000000000000fdef R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f5cebb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002000f000 CR3: 000000006512a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 c1 e8 03 shr $0x3,%rax 4: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax 9: 84 c0 test %al,%al b: 74 08 je 0x15 d: 3c 03 cmp $0x3,%al f: 0f 8e 50 04 00 00 jle 0x465 15: 48 89 ea mov %rbp,%rdx 18: 44 8b 73 70 mov 0x70(%rbx),%r14d 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 89 04 00 00 jne 0x4bd 34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 3b: fc ff df 3e: 4c rex.WR 3f: 8b .byte 0x8b