Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 10776 Comm: syz.2.1859 Not tainted 6.10.0-rc6-syzkaller-00223-gc6653f49e4fd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:dev_map_generic_redirect+0x95/0x650 kernel/bpf/devmap.c:681 Code: f1 00 f2 f2 f2 4b 89 44 35 00 43 c7 44 35 0f f3 f3 f3 f3 43 c6 44 35 13 f3 e8 97 86 d7 ff 48 89 d8 48 c1 e8 03 48 89 44 24 48 <42> 80 3c 30 00 74 08 48 89 df e8 2c f2 39 00 48 89 5c 24 20 4c 8b RSP: 0018:ffffc9001254f6a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000f032000 RSI: 0000000000001a73 RDI: 0000000000001a74 RBP: ffffc9001254f7f0 R08: ffffffff8958f637 R09: ffffffff8958f550 R10: 0000000000000004 R11: ffff888058b09e00 R12: ffff88802a6ab140 R13: 1ffff920024a9ee0 R14: dffffc0000000000 R15: 000000000000000e FS: 00007fdf5ce806c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020011000 CR3: 0000000065e88000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xdp_do_generic_redirect_map net/core/filter.c:4490 [inline] xdp_do_generic_redirect+0x439/0x7a0 net/core/filter.c:4549 do_xdp_generic+0x882/0xb80 net/core/dev.c:5108 tun_get_user+0x2801/0x4560 drivers/net/tun.c:1924 tun_chr_write_iter+0x113/0x1f0 drivers/net/tun.c:2048 new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa72/0xc90 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdf5c17475f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 29 8c 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 7c 8c 02 00 48 RSP: 002b:00007fdf5ce80010 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fdf5c303f60 RCX: 00007fdf5c17475f RDX: 000000000000fdef RSI: 0000000020001540 RDI: 00000000000000c8 RBP: 00007fdf5c1e4aa1 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fdef R11: 0000000000000293 R12: 0000000000000000 R13: 000000000000000b R14: 00007fdf5c303f60 R15: 00007fff361fd518 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dev_map_generic_redirect+0x95/0x650 kernel/bpf/devmap.c:681 Code: f1 00 f2 f2 f2 4b 89 44 35 00 43 c7 44 35 0f f3 f3 f3 f3 43 c6 44 35 13 f3 e8 97 86 d7 ff 48 89 d8 48 c1 e8 03 48 89 44 24 48 <42> 80 3c 30 00 74 08 48 89 df e8 2c f2 39 00 48 89 5c 24 20 4c 8b RSP: 0018:ffffc9001254f6a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000f032000 RSI: 0000000000001a73 RDI: 0000000000001a74 RBP: ffffc9001254f7f0 R08: ffffffff8958f637 R09: ffffffff8958f550 R10: 0000000000000004 R11: ffff888058b09e00 R12: ffff88802a6ab140 R13: 1ffff920024a9ee0 R14: dffffc0000000000 R15: 000000000000000e FS: 00007fdf5ce806c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020011000 CR3: 0000000065e88000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f1 int1 1: 00 f2 add %dh,%dl 3: f2 f2 4b 89 44 35 00 repnz repnz mov %rax,0x0(%r13,%r14,1) a: 43 c7 44 35 0f f3 f3 movl $0xf3f3f3f3,0xf(%r13,%r14,1) 11: f3 f3 13: 43 c6 44 35 13 f3 movb $0xf3,0x13(%r13,%r14,1) 19: e8 97 86 d7 ff call 0xffd786b5 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 48 mov %rax,0x48(%rsp) * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 2c f2 39 00 call 0x39f265 39: 48 89 5c 24 20 mov %rbx,0x20(%rsp) 3e: 4c rex.WR 3f: 8b .byte 0x8b