Oops: general protection fault, probably for non-canonical address 0xe3fffb24004255e5: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: maybe wild-memory-access in range [0x1ffff9200212af28-0x1ffff9200212af2f] CPU: 1 UID: 0 PID: 9696 Comm: syz.3.1166 Not tainted 6.11.0-rc1-syzkaller-00062-ge4fc196f5ba3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:__xsk_map_flush+0x56/0x2b0 Code: 80 3c 28 00 74 08 48 89 df e8 16 54 65 f6 4c 8b 3b 49 39 df 0f 84 43 02 00 00 48 89 1c 24 4c 89 f8 48 c1 e8 03 48 89 44 24 08 <42> 80 3c 28 00 74 08 4c 89 ff e8 eb 53 65 f6 49 8b 07 48 89 44 24 RSP: 0018:ffffc90000a18ae8 EFLAGS: 00010202 RAX: 03ffff24004255e5 RBX: ffffc90010957820 RCX: ffff888021411e00 RDX: 0000000000000100 RSI: 0000000000000010 RDI: ffffc90010957820 RBP: dffffc0000000000 R08: ffffffff8985904a R09: 1ffffffff1fecf15 R10: dffffc0000000000 R11: fffffbfff1fecf16 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: 1ffff9200212af28 FS: 00007f35cd22a6c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000611d0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xdp_do_check_flushed+0x18e/0x240 net/core/filter.c:4315 __napi_poll+0xe4/0x490 net/core/dev.c:6774 napi_poll net/core/dev.c:6840 [inline] net_rx_action+0x89b/0x1240 net/core/dev.c:6962 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 common_interrupt+0xaa/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:87 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:104 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x86/0x290 mm/kasan/generic.c:189 Code: 00 fc ff df 4f 8d 3c 31 4c 89 fd 4c 29 dd 48 83 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c 89 cd 48 f7 d5 48 01 dd 41 80 3b 00 <0f> 85 c9 01 00 00 49 ff c3 48 ff c5 75 ee e9 1e 01 00 00 45 89 dc RSP: 0018:ffffc900109577b0 EFLAGS: 00000202 RAX: 0000000000000001 RBX: 1ffffffff2a1f1ec RCX: ffffffff8ba23e42 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffffff950f8f60 RBP: ffffffffffffffff R08: ffffffff950f8f63 R09: 1ffffffff2a1f1ec R10: dffffc0000000000 R11: fffffbfff2a1f1ec R12: ffff888077e51e88 R13: dffffc0000000000 R14: dffffc0000000001 R15: fffffbfff2a1f1ed instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_inc include/linux/atomic/atomic-instrumented.h:435 [inline] mt_find+0x602/0x850 lib/maple_tree.c:6955 find_vma+0xf9/0x170 mm/mmap.c:2019 lock_mm_and_find_vma+0x5f/0x2f0 mm/memory.c:5933 do_user_addr_fault arch/x86/mm/fault.c:1361 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x1bf/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:do_strncpy_from_user lib/strncpy_from_user.c:41 [inline] RIP: 0010:strncpy_from_user+0x110/0x2e0 lib/strncpy_from_user.c:139 Code: 00 00 00 4c 89 e6 e8 2f a9 b2 fc 49 83 fc 07 0f 86 9a 00 00 00 48 89 6c 24 08 48 c7 44 24 10 f8 ff ff ff 45 31 ed 4c 89 3c 24 <4f> 8b 3c 2f 48 b8 ff fe fe fe fe fe fe fe 49 8d 1c 07 4c 89 fd 48 RSP: 0018:ffffc90010957b10 EFLAGS: 00050246 RAX: 0000000000000002 RBX: ffffc90010957db0 RCX: ffff888021411e00 RDX: ffffc9000a206000 RSI: 000000000000007f RDI: 0000000000000007 RBP: 000000000000007f R08: ffffffff84e0c181 R09: ffffffff820567e7 R10: 0000000000000003 R11: ffff888021411e00 R12: 000000000000007f R13: 0000000000000000 R14: ffffc90010957c50 R15: 0000000000000000 bpf_prog_load+0xd65/0x20f0 kernel/bpf/syscall.c:2849 __sys_bpf+0x4ee/0x810 kernel/bpf/syscall.c:5710 __do_sys_bpf kernel/bpf/syscall.c:5817 [inline] __se_sys_bpf kernel/bpf/syscall.c:5815 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5815 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:0x7f35cc3773b9 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:00007f35cd22a048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f35cc505f80 RCX: 00007f35cc3773b9 RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007f35cc3e48e6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f35cc505f80 R15: 00007ffcf4515b98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__xsk_map_flush+0x56/0x2b0 Code: 80 3c 28 00 74 08 48 89 df e8 16 54 65 f6 4c 8b 3b 49 39 df 0f 84 43 02 00 00 48 89 1c 24 4c 89 f8 48 c1 e8 03 48 89 44 24 08 <42> 80 3c 28 00 74 08 4c 89 ff e8 eb 53 65 f6 49 8b 07 48 89 44 24 RSP: 0018:ffffc90000a18ae8 EFLAGS: 00010202 RAX: 03ffff24004255e5 RBX: ffffc90010957820 RCX: ffff888021411e00 RDX: 0000000000000100 RSI: 0000000000000010 RDI: ffffc90010957820 RBP: dffffc0000000000 R08: ffffffff8985904a R09: 1ffffffff1fecf15 R10: dffffc0000000000 R11: fffffbfff1fecf16 R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: 1ffff9200212af28 FS: 00007f35cd22a6c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000611d0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) 4: 74 08 je 0xe 6: 48 89 df mov %rbx,%rdi 9: e8 16 54 65 f6 call 0xf6655424 e: 4c 8b 3b mov (%rbx),%r15 11: 49 39 df cmp %rbx,%r15 14: 0f 84 43 02 00 00 je 0x25d 1a: 48 89 1c 24 mov %rbx,(%rsp) 1e: 4c 89 f8 mov %r15,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 48 89 44 24 08 mov %rax,0x8(%rsp) * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 eb 53 65 f6 call 0xf6655424 39: 49 8b 07 mov (%r15),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 44 rex.R 3f: 24 .byte 0x24