------------[ cut here ]------------ WARNING: CPU: 0 PID: 4304 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 4304 Comm: syz.1.23 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:ffffc900000079e8 EFLAGS: 00010246 RAX: ffffffff81aaacec RBX: 0000000000000000 RCX: ffff88802aaa1dc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaabfd R09: fffffbfff20ec821 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffa3000000 R13: 0000000000000008 R14: ffffffffa3000000 R15: ffffc90000007a48 FS: 00007f2765f866c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f45afefca8c CR3: 0000000073239000 CR4: 00000000003506f0 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_b01026b2908340f4+0x3d/0xfd0 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 security_task_free+0x96/0xc0 security/security.c:1691 __put_task_struct+0xf4/0x2b0 kernel/fork.c:757 rcu_do_batch kernel/rcu/tree.c:2523 [inline] rcu_core+0xa15/0x1650 kernel/rcu/tree.c:2763 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 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:check_kcov_mode kernel/kcov.c:183 [inline] RIP: 0010:write_comp_data kernel/kcov.c:227 [inline] RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x30/0x80 kernel/kcov.c:279 Code: 8b 15 b4 f9 81 7e 65 8b 05 b5 f9 81 7e 25 00 01 ff 00 74 10 3d 00 01 00 00 75 5b 83 ba 34 16 00 00 00 74 52 8b 82 10 16 00 00 <83> f8 03 75 47 48 8b 8a 18 16 00 00 44 8b 92 14 16 00 00 49 c1 e2 RSP: 0018:ffffc900012ef648 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffff8880a96e5000 RCX: dffffc0000000000 RDX: ffff88802aaa1dc0 RSI: 000000000000002e RDI: 0000000000000040 RBP: ffffea0000000000 R08: ffffffff81399d36 R09: fffffbfff2d5b639 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffffffff81c9adb1 R14: 00000000296e5000 R15: 000000000000002e phys_addr_valid arch/x86/mm/physaddr.h:7 [inline] __phys_addr+0x86/0x170 arch/x86/mm/physaddr.c:28 virt_to_head_page include/linux/mm.h:900 [inline] ____kasan_slab_free+0x2b/0x120 mm/kasan/common.c:344 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xf1/0x270 mm/slub.c:4559 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 net/core/skbuff.c:756 [inline] consume_skb+0xa3/0x140 net/core/skbuff.c:914 netlink_unicast_kernel net/netlink/af_netlink.c:1327 [inline] netlink_unicast+0x7be/0x980 net/netlink/af_netlink.c:1352 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1920 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2436 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2490 __sys_sendmsg net/socket.c:2519 [inline] __do_sys_sendmsg net/socket.c:2528 [inline] __se_sys_sendmsg+0x19a/0x260 net/socket.c:2526 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:0x7f2767b0e759 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:00007f2765f86038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f2767cc5f80 RCX: 00007f2767b0e759 RDX: 0000000000000000 RSI: 0000000020000940 RDI: 0000000000000005 RBP: 00007f2767b8175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2767cc5f80 R15: 00007ffcbb79d138 ---------------- Code disassembly (best guess): 0: 8b 15 b4 f9 81 7e mov 0x7e81f9b4(%rip),%edx # 0x7e81f9ba 6: 65 8b 05 b5 f9 81 7e mov %gs:0x7e81f9b5(%rip),%eax # 0x7e81f9c2 d: 25 00 01 ff 00 and $0xff0100,%eax 12: 74 10 je 0x24 14: 3d 00 01 00 00 cmp $0x100,%eax 19: 75 5b jne 0x76 1b: 83 ba 34 16 00 00 00 cmpl $0x0,0x1634(%rdx) 22: 74 52 je 0x76 24: 8b 82 10 16 00 00 mov 0x1610(%rdx),%eax * 2a: 83 f8 03 cmp $0x3,%eax <-- trapping instruction 2d: 75 47 jne 0x76 2f: 48 8b 8a 18 16 00 00 mov 0x1618(%rdx),%rcx 36: 44 8b 92 14 16 00 00 mov 0x1614(%rdx),%r10d 3d: 49 rex.WB 3e: c1 .byte 0xc1 3f: e2 .byte 0xe2