------------[ cut here ]------------ WARNING: CPU: 0 PID: 4268 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 4268 Comm: syz.4.5 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:ffffc900000079f0 EFLAGS: 00010246 RAX: ffffffff81aaacec RBX: 0000000000000000 RCX: ffff88801e599dc0 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaabfd R09: ffffed1003cb33b9 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000008 R14: 0000000000000000 R15: ffffc90000007a68 FS: 00007fba6d8156c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fba663f4000 CR3: 000000006138e000 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_compat kernel/trace/bpf_trace.c:281 [inline] bpf_probe_read_compat+0xe4/0x180 kernel/trace/bpf_trace.c:277 bpf_prog_ee60aafa828f4cb7+0x35/0x254 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 __d_free_external+0x44/0x60 fs/dcache.c:279 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:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:106 [inline] RIP: 0010:lock_is_held_type+0x62/0x180 kernel/locking/lockdep.c:5662 Code: 85 f1 00 00 00 65 4c 8b 2d 4b fe cd 75 41 83 bd ec 0a 00 00 00 0f 85 db 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c <8f> 04 24 4c 8b 24 24 fa 48 c7 c7 80 38 8b 8a e8 0a 12 00 00 65 ff RSP: 0018:ffffc90002da75d0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 1ffff920005b4ec4 RCX: 0000000080000000 RDX: ffff88801e599dc0 RSI: 00000000ffffffff RDI: ffffffff8c91fbe0 RBP: 00000000ffffffff R08: ffffffff81c3be90 R09: fffffbfff20ec821 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88801e599dc0 R14: 00000000ffffffff R15: ffffffff8c91fbe0 lock_is_held include/linux/lockdep.h:287 [inline] rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125 task_css include/linux/cgroup.h:496 [inline] blk_cgroup_congested include/linux/blk-cgroup.h:282 [inline] __cgroup_throttle_swaprate+0x149/0x540 mm/swapfile.c:3809 cgroup_throttle_swaprate include/linux/swap.h:728 [inline] shmem_add_to_page_cache+0xd2f/0x17c0 mm/shmem.c:727 shmem_getpage_gfp+0x1aa1/0x3190 mm/shmem.c:1942 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:0x7fba6f39c23f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 c9 8d 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 1c 8e 02 00 48 RSP: 002b:00007fba6d814df0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007fba6f39c23f RDX: 0000000001000000 RSI: 00007fba653f5000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 00000000000050ce R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000003 R13: 00007fba6d814ef0 R14: 00007fba6d814eb0 R15: 00007fba653f5000 ---------------- Code disassembly (best guess): 0: 85 f1 test %esi,%ecx 2: 00 00 add %al,(%rax) 4: 00 65 4c add %ah,0x4c(%rbp) 7: 8b 2d 4b fe cd 75 mov 0x75cdfe4b(%rip),%ebp # 0x75cdfe58 d: 41 83 bd ec 0a 00 00 cmpl $0x0,0xaec(%r13) 14: 00 15: 0f 85 db 00 00 00 jne 0xf6 1b: 41 89 f6 mov %esi,%r14d 1e: 49 89 ff mov %rdi,%r15 21: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 28: 00 29: 9c pushf * 2a: 8f 04 24 pop (%rsp) <-- trapping instruction 2d: 4c 8b 24 24 mov (%rsp),%r12 31: fa cli 32: 48 c7 c7 80 38 8b 8a mov $0xffffffff8a8b3880,%rdi 39: e8 0a 12 00 00 call 0x1248 3e: 65 gs 3f: ff .byte 0xff