Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 0 UID: 0 PID: 15246 Comm: syz.1.2331 Not tainted 6.10.0-rc7-next-20240712-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:xskq_prod_submit net/xdp/xsk_queue.h:436 [inline] RIP: 0010:xsk_flush net/xdp/xsk.c:331 [inline] RIP: 0010:__xsk_map_flush+0x95/0x2b0 net/xdp/xsk.c:393 Code: 24 10 49 8d 5f e8 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 d9 ea 81 f6 48 8b 1b 48 8d 7b 08 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 72 01 00 00 8b 6b 08 48 83 c3 10 48 89 RSP: 0018:ffffc90000007ae8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff888027470000 RDX: 0000000000000100 RSI: 0000000000000010 RDI: 0000000000000008 RBP: dffffc0000000000 R08: ffffffff896d0c9a R09: 1ffffffff1f5ffad R10: dffffc0000000000 R11: fffffbfff1f5ffae R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: ffffffff8e445c40 FS: 00007f17d66fa6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c392684 CR3: 000000006c37c000 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:4308 __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:__sanitizer_cov_trace_pc+0x43/0x70 kernel/kcov.c:212 Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 1c 16 00 00 00 74 2c 8b 91 f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 <48> 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 cf 73 08 48 89 3a 48 RSP: 0018:ffffc90003816860 EFLAGS: 00000246 RAX: ffffffff8b8a439a RBX: ffff8880186ae490 RCX: ffff888027470000 RDX: ffffc9001a014000 RSI: 0000000000000c52 RDI: 0000000000000c53 RBP: 0000000000000002 R08: ffffffff8b8a434d R09: ffffffff8b8a3ff1 R10: 0000000000000004 R11: ffff888027470000 R12: 000000000000000c R13: ffff8880186ae480 R14: dffffc0000000000 R15: ffffc90003816c02 mas_leaf_max_gap+0x40a/0x680 lib/maple_tree.c:1531 mab_set_b_end lib/maple_tree.c:2409 [inline] mast_fill_bnode+0x600/0xbb0 lib/maple_tree.c:3193 mas_push_data+0xb15/0xff0 lib/maple_tree.c:3302 mas_split lib/maple_tree.c:3375 [inline] mas_commit_b_node+0x10f5/0x2440 lib/maple_tree.c:3446 mas_wr_bnode lib/maple_tree.c:4158 [inline] mas_wr_modify+0x72e/0x2830 lib/maple_tree.c:4196 mas_store_prealloc+0x278/0x5f0 lib/maple_tree.c:5482 vma_complete+0x21d/0xb60 mm/mmap.c:576 __split_vma+0xaca/0xc30 mm/mmap.c:2511 split_vma mm/mmap.c:2537 [inline] vma_modify+0x268/0x350 mm/mmap.c:2578 vma_modify_flags_name include/linux/mm.h:3327 [inline] madvise_update_vma+0x312/0xbf0 mm/madvise.c:151 madvise_vma_behavior mm/madvise.c:1102 [inline] madvise_walk_vmas mm/madvise.c:1271 [inline] do_madvise+0x1879/0x4760 mm/madvise.c:1467 __do_sys_madvise mm/madvise.c:1484 [inline] __se_sys_madvise mm/madvise.c:1482 [inline] __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:1482 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:0x7f17d5975bd9 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:00007f17d66fa048 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f17d5b03f60 RCX: 00007f17d5975bd9 RDX: 000000000000000c RSI: 0000000000600000 RDI: 0000000020000000 RBP: 00007f17d59e4e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f17d5b03f60 R15: 00007ffc09087858 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:xskq_prod_submit net/xdp/xsk_queue.h:436 [inline] RIP: 0010:xsk_flush net/xdp/xsk.c:331 [inline] RIP: 0010:__xsk_map_flush+0x95/0x2b0 net/xdp/xsk.c:393 Code: 24 10 49 8d 5f e8 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 d9 ea 81 f6 48 8b 1b 48 8d 7b 08 48 89 f8 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 72 01 00 00 8b 6b 08 48 83 c3 10 48 89 RSP: 0018:ffffc90000007ae8 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff888027470000 RDX: 0000000000000100 RSI: 0000000000000010 RDI: 0000000000000008 RBP: dffffc0000000000 R08: ffffffff896d0c9a R09: 1ffffffff1f5ffad R10: dffffc0000000000 R11: fffffbfff1f5ffae R12: 0000000000000000 R13: dffffc0000000000 R14: 0000000000000010 R15: ffffffff8e445c40 FS: 00007f17d66fa6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c392684 CR3: 000000006c37c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 24 10 and $0x10,%al 2: 49 8d 5f e8 lea -0x18(%r15),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 d9 ea 81 f6 call 0xf681eaf5 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 8d 7b 08 lea 0x8(%rbx),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 0f 85 72 01 00 00 jne 0x1a9 37: 8b 6b 08 mov 0x8(%rbx),%ebp 3a: 48 83 c3 10 add $0x10,%rbx 3e: 48 rex.W 3f: 89 .byte 0x89