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: 17298 Comm: syz.0.3351 Not tainted 6.11.0-rc1-syzkaller-00062-ge4fc196f5ba3 #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: ffffffff88f9510f RDX: 0000000000000000 RSI: ffffffff8af07196 RDI: ffffc9000431fa78 RBP: fffffffffffffae8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88806b140608 R14: ffffc9000431fa78 R15: ffffc9000431fa78 FS: 00007fd9c4d5a6c0(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2a9f7e CR3: 00000000301fc000 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: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 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:csd_lock_wait kernel/smp.c:312 [inline] RIP: 0010:smp_call_function_many_cond+0x4ec/0x1420 kernel/smp.c:856 Code: 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 4b 39 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 ff 83 e0 01 41 RSP: 0018:ffffc9000431f808 EFLAGS: 00000283 RAX: 0000000000000000 RBX: ffff88806b2467e0 RCX: ffffc90026901000 RDX: 0000000000040000 RSI: ffffffff817e41e5 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed100d648cfd R13: 0000000000000001 R14: ffff88806b2467e8 R15: ffff88806b13ffc0 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023 cpa_flush+0x42e/0x510 arch/x86/mm/pat/set_memory.c:412 change_page_attr_set_clr+0x34a/0x490 arch/x86/mm/pat/set_memory.c:1914 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:0x7fd9c3f773b9 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:00007fd9c4d5a048 EFLAGS: 00000246 ORIG_RAX: 000000000000013d RAX: ffffffffffffffda RBX: 00007fd9c4105f80 RCX: 00007fd9c3f773b9 RDX: 00000000200000c0 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 00007fd9c3fe48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd9c4105f80 R15: 00007fff9a269448 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: ffffffff88f9510f RDX: 0000000000000000 RSI: ffffffff8af07196 RDI: ffffc9000431fa78 RBP: fffffffffffffae8 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88806b140608 R14: ffffc9000431fa78 R15: ffffc9000431fa78 FS: 00007fd9c4d5a6c0(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2a9f7e CR3: 00000000301fc000 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