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: 5837 Comm: syz.4.170 Not tainted 6.10.0-syzkaller-11185-g2c9b3512402e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__xsk_map_flush+0x4c/0x310 net/xdp/xsk.c:392
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 cd 02 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 1e 48 8d ab e8 fa ff ff 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 9b 02 00 00 48 8b 03 49 39 de 4c 8d a8 e8 fa ff
RSP: 0018:ffffc90000a18c90 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff88d6709f
RDX: 0000000000000000 RSI: ffffffff8acd9246 RDI: ffffc900031efa78
RBP: fffffffffffffae9 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880227446c8 R14: ffffc900031efa78 R15: ffffc900031efa78
FS: 00007fed02a936c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000007c26a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
xdp_do_check_flushed+0x175/0x4e0 net/core/filter.c:4308
__napi_poll.constprop.0+0xd1/0x550 net/core/dev.c:6774
napi_poll net/core/dev.c:6840 [inline]
net_rx_action+0xa92/0x1010 net/core/dev.c:6962
handle_softirqs+0x216/0x8f0 kernel/softirq.c:554
do_softirq kernel/softirq.c:455 [inline]
do_softirq+0xb2/0xf0 kernel/softirq.c:442
__local_bh_enable_ip+0x100/0x120 kernel/softirq.c:382
local_bh_enable include/linux/bottom_half.h:33 [inline]
tun_get_user+0x1d9b/0x3c30 drivers/net/tun.c:1936
tun_chr_write_iter+0xe8/0x210 drivers/net/tun.c:2052
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_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fed01d746df
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:00007fed02a93010 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fed01f05f60 RCX: 00007fed01d746df
RDX: 0000000000000e80 RSI: 0000000020000400 RDI: 00000000000000c8
RBP: 00007fed01de4e5d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e80 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000000b R14: 00007fed01f05f60 R15: 00007ffc420e6778
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__xsk_map_flush+0x4c/0x310 net/xdp/xsk.c:392
Code: df 48 c1 ea 03 80 3c 02 00 0f 85 cd 02 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 1e 48 8d ab e8 fa ff ff 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 9b 02 00 00 48 8b 03 49 39 de 4c 8d a8 e8 fa ff
RSP: 0018:ffffc90000a18c90 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff88d6709f
RDX: 0000000000000000 RSI: ffffffff8acd9246 RDI: ffffc900031efa78
RBP: fffffffffffffae9 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880227446c8 R14: ffffc900031efa78 R15: ffffc900031efa78
FS: 00007fed02a936c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000007c26a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 48 c1 ea 03 shr $0x3,%rdx
4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
8: 0f 85 cd 02 00 00 jne 0x2db
e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
15: fc ff df
18: 49 8b 1e mov (%r14),%rbx
1b: 48 8d ab e8 fa ff ff lea -0x518(%rbx),%rbp
22: 48 89 da mov %rbx,%rdx
25: 48 c1 ea 03 shr $0x3,%rdx
* 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2d: 0f 85 9b 02 00 00 jne 0x2ce
33: 48 8b 03 mov (%rbx),%rax
36: 49 39 de cmp %rbx,%r14
39: 4c rex.WR
3a: 8d .byte 0x8d
3b: a8 e8 test $0xe8,%al
3d: fa cli
3e: ff .byte 0xff