Oops: general protection fault, probably for non-canonical address 0xdffffc0004060000: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: probably user-memory-access in range [0x0000000020300000-0x0000000020300007] CPU: 2 UID: 0 PID: 9510 Comm: syz.2.1394 Not tainted 6.11.0-rc1-syzkaller-00042-g6b5faec9f564 #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:__dev_flush+0x49/0x1e0 kernel/bpf/devmap.c:424 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 2f 48 8d 5d 80 48 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 69 01 00 00 48 8b 45 00 49 39 ef 4c 8d 60 80 0f RSP: 0018:ffffc90000540c80 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 00000000202fff80 RCX: ffffffff88f1131b RDX: 0000000004060000 RSI: ffffffff81b13e16 RDI: ffffc90004a27a58 RBP: 0000000020300000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90004a27a48 R13: ffff88802c240608 R14: ffffc90004a27a58 R15: ffffc90004a27a58 FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f56b6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000057aca4c0 CR3: 000000005b6c0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xdp_do_check_flushed+0x40a/0x4e0 net/core/filter.c:4307 __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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 b6 ad 60 f6 48 89 df e8 ae 2a 61 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 b5 a7 52 f6 65 8b 05 66 53 fb 74 85 c0 74 16 5b RSP: 0018:ffffc90004a27500 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffff88805afcf090 RCX: 1ffffffff28bab23 RDX: 0000000000000000 RSI: ffffffff8b4cd060 RDI: ffffffff8bb048e0 RBP: 0000000000000292 R08: 0000000000000001 R09: fffffbfff28b60e3 R10: ffffffff945b071f R11: 0000000000000000 R12: 000000000000001e R13: dffffc0000000000 R14: ffff88802c237f90 R15: ffff88802c238088 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] unlock_page_lruvec_irqrestore include/linux/memcontrol.h:1524 [inline] folio_lruvec_relock_irqsave include/linux/memcontrol.h:1557 [inline] folio_batch_move_lru+0xec/0x3b0 mm/swap.c:214 folio_batch_add_and_move+0xe5/0x160 mm/swap.c:231 folio_add_lru+0x37d/0x7f0 mm/swap.c:526 shmem_alloc_and_add_folio+0x53e/0xcd0 mm/shmem.c:1847 shmem_get_folio_gfp+0xa62/0x15e0 mm/shmem.c:2192 shmem_fault+0x205/0xaf0 mm/shmem.c:2392 __do_fault+0x10a/0x490 mm/memory.c:4655 do_read_fault mm/memory.c:5061 [inline] do_fault mm/memory.c:5191 [inline] do_pte_missing mm/memory.c:3947 [inline] handle_pte_fault mm/memory.c:5522 [inline] __handle_mm_fault+0x3980/0x5360 mm/memory.c:5665 handle_mm_fault+0x44e/0x7b0 mm/memory.c:5833 faultin_page mm/gup.c:1194 [inline] __get_user_pages+0x475/0x15c0 mm/gup.c:1493 populate_vma_page_range+0x27f/0x3a0 mm/gup.c:1932 __mm_populate+0x1d6/0x380 mm/gup.c:2035 mm_populate include/linux/mm.h:3415 [inline] vm_mmap_pgoff+0x293/0x360 mm/util.c:593 ksys_mmap_pgoff+0x7d/0x5d0 mm/mmap.c:1514 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf739e579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f56b657c EFLAGS: 00000292 ORIG_RAX: 00000000000000c0 RAX: ffffffffffffffda RBX: 0000000020000000 RCX: 0000000000b36000 RDX: 0000000007ebbeef RSI: 0000000000008031 RDI: 00000000ffffffff RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__dev_flush+0x49/0x1e0 kernel/bpf/devmap.c:424 Code: 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 2f 48 8d 5d 80 48 89 ea 48 c1 ea 03 <80> 3c 02 00 0f 85 69 01 00 00 48 8b 45 00 49 39 ef 4c 8d 60 80 0f RSP: 0018:ffffc90000540c80 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: 00000000202fff80 RCX: ffffffff88f1131b RDX: 0000000004060000 RSI: ffffffff81b13e16 RDI: ffffc90004a27a58 RBP: 0000000020300000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90004a27a48 R13: ffff88802c240608 R14: ffffc90004a27a58 R15: ffffc90004a27a58 FS: 0000000000000000(0000) GS:ffff88802c200000(0063) knlGS:00000000f56b6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000057aca4c0 CR3: 000000005b6c0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 4 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 8: 0f 85 98 01 00 00 jne 0x1a6 e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 49 8b 2f mov (%r15),%rbp 1b: 48 8d 5d 80 lea -0x80(%rbp),%rbx 1f: 48 89 ea mov %rbp,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx * 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2a: 0f 85 69 01 00 00 jne 0x199 30: 48 8b 45 00 mov 0x0(%rbp),%rax 34: 49 39 ef cmp %rbp,%r15 37: 4c 8d 60 80 lea -0x80(%rax),%r12 3b: 0f .byte 0xf