------------[ cut here ]------------ WARNING: CPU: 1 PID: 5092 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 1 PID: 5092 Comm: syz.3.271 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:copy_from_user_nofault+0x15c/0x1c0 mm/maccess.c:226 Code: db 48 c7 c0 f2 ff ff ff 48 0f 44 c5 eb 0c e8 cb c6 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 b4 c6 d5 ff <0f> 0b e9 1e ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ef fe ff RSP: 0018:ffffc90000dcf8c8 EFLAGS: 00010246 RAX: ffffffff81aaacec RBX: 0000000000000000 RCX: ffff88801de99dc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaabfd R09: fffffbfff20ec821 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffc90000dcf928 FS: 00007fe962f2e6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c27c803 CR3: 00000000735d1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_probe_read_user_common kernel/trace/bpf_trace.c:157 [inline] ____bpf_probe_read_user kernel/trace/bpf_trace.c:166 [inline] bpf_probe_read_user+0x26/0x70 kernel/trace/bpf_trace.c:163 bpf_prog_690f12e098ef46de+0x32/0x6c bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline] __bpf_prog_run include/linux/filter.h:628 [inline] bpf_prog_run include/linux/filter.h:635 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1878 [inline] bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1915 __bpf_trace_kfree+0x6e/0x90 include/trace/events/kmem.h:118 trace_kfree include/trace/events/kmem.h:118 [inline] kfree+0x22f/0x270 mm/slub.c:4549 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x73a/0x8a0 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb+0x4c/0x60 net/core/skbuff.c:756 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3395 [inline] tcp_ack+0x2326/0x6ab0 net/ipv4/tcp_input.c:3952 tcp_rcv_established+0xf2d/0x1e20 net/ipv4/tcp_input.c:5965 tcp_v4_do_rcv+0x423/0x960 net/ipv4/tcp_ipv4.c:1731 tcp_v4_rcv+0x2740/0x2d80 net/ipv4/tcp_ipv4.c:2143 ip_protocol_deliver_rcu+0x381/0x730 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x1db/0x320 net/ipv4/ip_input.c:231 NF_HOOK+0x364/0x410 include/linux/netfilter.h:302 dst_input include/net/dst.h:453 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:577 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:628 [inline] ip_sublist_rcv+0xb0f/0xe50 net/ipv4/ip_input.c:636 ip_list_rcv+0x422/0x470 net/ipv4/ip_input.c:671 __netif_receive_skb_list_ptype net/core/dev.c:5536 [inline] __netif_receive_skb_list_core+0x6b1/0x890 net/core/dev.c:5584 __netif_receive_skb_list net/core/dev.c:5636 [inline] netif_receive_skb_list_internal+0x9ed/0xdf0 net/core/dev.c:5727 gro_normal_list net/core/dev.c:5881 [inline] napi_complete_done+0x352/0x820 net/core/dev.c:6619 virtqueue_napi_complete drivers/net/virtio_net.c:357 [inline] virtnet_poll+0xbd1/0x1260 drivers/net/virtio_net.c:1592 __napi_poll+0xc7/0x440 net/core/dev.c:7043 napi_poll net/core/dev.c:7110 [inline] net_rx_action+0x617/0xda0 net/core/dev.c:7200 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 common_interrupt+0xb3/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:667 RIP: 0010:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627 Code: 2b 00 74 08 4c 89 f7 e8 fc 8c 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc900047e74c0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff920008fcea4 RCX: ffffffff81637932 RDX: dffffc0000000000 RSI: ffffffff8a8b3d20 RDI: ffffffff8ad90540 RBP: ffffc900047e7618 R08: dffffc0000000000 R09: fffffbfff20ec821 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920008fcea0 R13: dffffc0000000000 R14: ffffc900047e7520 R15: 0000000000000246 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] filemap_map_pages+0xbc5/0x15c0 mm/filemap.c:3324 do_fault_around mm/memory.c:4241 [inline] do_read_fault mm/memory.c:4256 [inline] do_fault mm/memory.c:4390 [inline] handle_pte_fault mm/memory.c:4648 [inline] __handle_mm_fault mm/memory.c:4783 [inline] handle_mm_fault+0x341b/0x5960 mm/memory.c:4881 faultin_page mm/gup.c:976 [inline] __get_user_pages+0x4ed/0x11d0 mm/gup.c:1197 populate_vma_page_range+0x215/0x2a0 mm/gup.c:1529 __mm_populate+0x2a5/0x4a0 mm/gup.c:1638 mm_populate include/linux/mm.h:2632 [inline] vm_mmap_pgoff+0x22b/0x2d0 mm/util.c:556 ksys_mmap_pgoff+0x13e/0x780 mm/mmap.c:1624 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe964ab6759 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:00007fe962f2e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fe964c6df80 RCX: 00007fe964ab6759 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007fe964b2975e R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe964c6df80 R15: 00007ffe71195f08 ---------------- Code disassembly (best guess): 0: 2b 00 sub (%rax),%eax 2: 74 08 je 0xc 4: 4c 89 f7 mov %r14,%rdi 7: e8 fc 8c 67 00 call 0x678d08 c: f6 44 24 61 02 testb $0x2,0x61(%rsp) 11: 0f 85 84 01 00 00 jne 0x19b 17: 41 f7 c7 00 02 00 00 test $0x200,%r15d 1e: 74 01 je 0x21 20: fb sti 21: 48 c7 44 24 40 0e 36 movq $0x45e0360e,0x40(%rsp) 28: e0 45 * 2a: 4b c7 44 25 00 00 00 movq $0x0,0x0(%r13,%r12,1) <-- trapping instruction 31: 00 00 33: 43 c7 44 25 09 00 00 movl $0x0,0x9(%r13,%r12,1) 3a: 00 00 3c: 43 rex.XB 3d: c7 .byte 0xc7 3e: 44 rex.R 3f: 25 .byte 0x25