------------[ cut here ]------------ WARNING: CPU: 1 PID: 6453 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 1 PID: 6453 Comm: syz.2.887 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:ffffc90000dd0a08 EFLAGS: 00010246 RAX: ffffffff81aaacec RBX: 0000000000000000 RCX: ffff88805d789dc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaabfd R09: fffffbfff20ec821 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffc90000dd0a68 FS: 00007f0147aa16c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200d5000 CR3: 000000007454b000 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_7e47b8e39696360c+0x32/0xe48 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 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:stack_trace_consume_entry+0x9/0x270 kernel/stacktrace.c:83 Code: 03 38 c1 0f 8c 7b ff ff ff 48 89 df e8 60 42 5c 00 e9 6e ff ff ff e8 56 65 c6 08 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 <53> 48 83 ec 18 48 89 fb 48 ba 00 00 00 00 00 fc ff df 4c 8d 4f 10 RSP: 0018:ffffc900032a6db0 EFLAGS: 00000282 RAX: ffffffff81d53ffd RBX: ffffc900032a6de0 RCX: 0000000080000000 RDX: dffffc0000000000 RSI: ffffffff81d53ffd RDI: ffffc900032a6ec0 RBP: ffffc900032a6e70 R08: ffffc900032a7c90 R09: ffffc900032a6e30 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805d789dc0 R13: ffffffff816e0980 R14: ffffc900032a6ec0 R15: 0000000000000000 arch_stack_walk+0x101/0x140 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 save_stack+0xf6/0x1e0 mm/page_owner.c:119 __set_page_owner+0x37/0x300 mm/page_owner.c:181 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x3b78/0x3d40 mm/page_alloc.c:4192 __alloc_pages+0x272/0x700 mm/page_alloc.c:5464 alloc_pages_vma+0x39a/0x800 mm/mempolicy.c:2146 shmem_alloc_page mm/shmem.c:1588 [inline] shmem_alloc_and_acct_page+0x4d1/0xd10 mm/shmem.c:1613 shmem_getpage_gfp+0x17b1/0x3190 mm/shmem.c:1908 shmem_getpage mm/shmem.c:151 [inline] shmem_write_begin+0xce/0x1a0 mm/shmem.c:2479 generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3785 __generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3912 generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacd/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 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:0x7f0149c29819 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:00007f0147aa1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f0149de0fa0 RCX: 00007f0149c29819 RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f0149c9c75e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0149de0fa0 R15: 00007ffe52669128 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 38 c1 cmp %al,%cl 2: 0f 8c 7b ff ff ff jl 0xffffff83 8: 48 89 df mov %rbx,%rdi b: e8 60 42 5c 00 call 0x5c4270 10: e9 6e ff ff ff jmp 0xffffff83 15: e8 56 65 c6 08 call 0x8c66570 1a: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) 20: 55 push %rbp 21: 41 57 push %r15 23: 41 56 push %r14 25: 41 55 push %r13 27: 41 54 push %r12 * 29: 53 push %rbx <-- trapping instruction 2a: 48 83 ec 18 sub $0x18,%rsp 2e: 48 89 fb mov %rdi,%rbx 31: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 38: fc ff df 3b: 4c 8d 4f 10 lea 0x10(%rdi),%r9