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: 0 UID: 0 PID: 7363 Comm: syz.2.720 Not tainted 6.10.0-syzkaller-12708-g2f8c4f506285 #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:__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:ffffc90000007c90 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff88f8fe0f
RDX: 0000000000000000 RSI: ffffffff8af01e86 RDI: ffffc900034efa78
RBP: fffffffffffffae9 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88806b040648 R14: ffffc900034efa78 R15: ffffc900034efa78
FS: 00007fceb91576c0(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000001eff4000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
xdp_do_check_flushed+0x175/0x4e0 net/core/filter.c:4315
__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:0x7fceb8375e1f
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:00007fceb9157010 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fceb8506130 RCX: 00007fceb8375e1f
RDX: 0000000000011dc0 RSI: 0000000020000100 RDI: 00000000000000c8
RBP: 00007fceb83e48e6 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000011dc0 R11: 0000000000000293 R12: 0000000000000000
R13: 000000000000006e R14: 00007fceb8506130 R15: 00007ffe50f80588
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:ffffc90000007c90 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffffff88f8fe0f
RDX: 0000000000000000 RSI: ffffffff8af01e86 RDI: ffffc900034efa78
RBP: fffffffffffffae9 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88806b040648 R14: ffffc900034efa78 R15: ffffc900034efa78
FS: 00007fceb91576c0(0000) GS:ffff88806b000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000001eff4000 CR4: 0000000000350ef0
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