------------[ cut here ]------------ WARNING: CPU: 1 PID: 5205 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 1 PID: 5205 Comm: syz.4.324 Not tainted 5.15.176-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/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 ba d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 b4 ba 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:ffffc90000dd0968 EFLAGS: 00010246 RAX: ffffffff81aaca2c RBX: 0000000000000000 RCX: ffff8880756f8000 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aac93d R09: fffffbfff2131421 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000020000000 R13: 0000000000000008 R14: 0000000020000000 R15: ffffc90000dd09c8 FS: 00007fb7005ef6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001580 CR3: 00000000419f5000 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_078a3568a35342ea+0x38/0x1f0 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_run3+0x1d1/0x380 kernel/trace/bpf_trace.c:1916 __bpf_trace_kmem_cache_free+0x99/0xc0 include/trace/events/kmem.h:138 trace_kmem_cache_free include/trace/events/kmem.h:138 [inline] kmem_cache_free+0x1ce/0x1f0 mm/slub.c:3516 mac80211_hwsim_beacon_tx+0x48f/0x8a0 drivers/net/wireless/mac80211_hwsim.c:1842 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0xaf/0x140 net/mac80211/util.c:829 mac80211_hwsim_beacon+0xa7/0x180 drivers/net/wireless/mac80211_hwsim.c:1865 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1752 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1769 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:__should_failslab+0x8d/0xd0 mm/failslab.c:33 Code: 48 c1 e8 03 42 0f b6 04 30 84 c0 75 49 f6 45 03 02 75 07 31 c0 5b 41 5e 5d c3 48 83 c3 1c 48 89 d8 48 c1 e8 03 42 0f b6 04 30 <84> c0 75 12 8b 33 48 c7 c7 e0 5f bf 8c 5b 41 5e 5d e9 5d 13 67 02 RSP: 0018:ffffc9000322fc20 EFLAGS: 00000a07 RAX: 0000000000000000 RBX: ffff88814cc0115c RCX: ffff8880756f8000 RDX: ffff8880756f8000 RSI: 0000000000000cc0 RDI: ffff88814cc01140 RBP: 0000000000000cc0 R08: dffffc0000000000 R09: fffffbfff1c14d56 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88814cc01140 R13: 0000000000000dc0 R14: dffffc0000000000 R15: 0000000000000001 should_failslab+0x5/0x20 mm/slab_common.c:1344 slab_pre_alloc_hook+0x53/0xc0 mm/slab.h:494 slab_alloc_node mm/slub.c:3134 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x3f/0x280 mm/slub.c:3233 sk_prot_alloc+0x58/0x200 net/core/sock.c:1860 sk_alloc+0x35/0x310 net/core/sock.c:1919 inet6_create+0x669/0x10c0 net/ipv6/af_inet6.c:191 __sock_create+0x460/0x8f0 net/socket.c:1486 sock_create net/socket.c:1542 [inline] __sys_socket+0x132/0x370 net/socket.c:1584 __do_sys_socket net/socket.c:1593 [inline] __se_sys_socket net/socket.c:1591 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1591 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:0x7fb70277ed29 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:00007fb7005ef038 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007fb70296efa0 RCX: 00007fb70277ed29 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 000000000000000a RBP: 00007fb7027fab08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb70296efa0 R15: 00007fff5c425038 ---------------- Code disassembly (best guess): 0: 48 c1 e8 03 shr $0x3,%rax 4: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 9: 84 c0 test %al,%al b: 75 49 jne 0x56 d: f6 45 03 02 testb $0x2,0x3(%rbp) 11: 75 07 jne 0x1a 13: 31 c0 xor %eax,%eax 15: 5b pop %rbx 16: 41 5e pop %r14 18: 5d pop %rbp 19: c3 ret 1a: 48 83 c3 1c add $0x1c,%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 75 12 jne 0x40 2e: 8b 33 mov (%rbx),%esi 30: 48 c7 c7 e0 5f bf 8c mov $0xffffffff8cbf5fe0,%rdi 37: 5b pop %rbx 38: 41 5e pop %r14 3a: 5d pop %rbp 3b: e9 5d 13 67 02 jmp 0x267139d