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: 1 UID: 0 PID: 14436 Comm: syz.3.2842 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:ffffc900008b0c80 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff88f8fe0f RDX: 0000000000000000 RSI: ffffffff8af01e86 RDI: ffffc90003347a78 RBP: fffffffffffffae8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888023840fb0 R14: ffffc90003347a78 R15: ffffc90003347a78 FS: 00007fe60c7ff6c0(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b338f9ff8 CR3: 000000001b89a000 CR4: 0000000000350ef0 DR0: 0000000000000007 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:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:csd_lock_wait kernel/smp.c:312 [inline] RIP: 0010:smp_call_function_many_cond+0x4e7/0x1420 kernel/smp.c:856 Code: 0c 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 9b 3a 0c 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 f7 0c 00 00 8b 43 08 31 RSP: 0018:ffffc90003347798 EFLAGS: 00000287 RAX: 00000000000381cc RBX: ffff88806b046820 RCX: ffffc90005ca1000 RDX: 0000000000040000 RSI: ffffffff817e5835 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed100d608d05 R13: 0000000000000001 R14: ffff88806b046828 R15: ffff88806b140000 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023 __purge_vmap_area_lazy+0x4f5/0xc10 mm/vmalloc.c:2270 _vm_unmap_aliases+0x286/0x880 mm/vmalloc.c:2885 change_page_attr_set_clr+0x24c/0x490 arch/x86/mm/pat/set_memory.c:1881 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1929 [inline] set_memory_ro+0x7c/0xb0 arch/x86/mm/pat/set_memory.c:2115 bpf_prog_lock_ro include/linux/filter.h:1036 [inline] bpf_prog_select_runtime+0x59d/0x6f0 kernel/bpf/core.c:2421 bpf_migrate_filter+0x2eb/0x390 net/core/filter.c:1306 bpf_prepare_filter+0x183/0x380 net/core/filter.c:1354 bpf_prog_create_from_user+0x1e4/0x2d0 net/core/filter.c:1448 seccomp_prepare_filter kernel/seccomp.c:693 [inline] seccomp_prepare_user_filter kernel/seccomp.c:730 [inline] seccomp_set_mode_filter kernel/seccomp.c:1953 [inline] do_seccomp+0x7b6/0x2660 kernel/seccomp.c:2073 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:0x7fe60cd77299 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe60c7ff048 EFLAGS: 00000246 ORIG_RAX: 000000000000013d RAX: ffffffffffffffda RBX: 00007fe60cf05f80 RCX: 00007fe60cd77299 RDX: 00000000200000c0 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 00007fe60cde48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fe60cf05f80 R15: 00007fffd3a48c78 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:ffffc900008b0c80 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff88f8fe0f RDX: 0000000000000000 RSI: ffffffff8af01e86 RDI: ffffc90003347a78 RBP: fffffffffffffae8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888023840fb0 R14: ffffc90003347a78 R15: ffffc90003347a78 FS: 00007fe60c7ff6c0(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b338f9ff8 CR3: 000000001b89a000 CR4: 0000000000350ef0 DR0: 0000000000000007 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