------------[ cut here ]------------ WARNING: CPU: 0 PID: 5329 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 mm/maccess.c:-1 Modules linked in: CPU: 0 PID: 5329 Comm: rm Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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 9b b0 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 84 b0 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:ffffc90000007bd0 EFLAGS: 00010006 RAX: ffffffff81aaec3c RBX: 0000000000000000 RCX: ffff8880268ed940 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaeb4d R09: ffffed1004d1db29 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000020a50000 R13: 0000000000000008 R14: 0000000020a50000 R15: ffffc90000007c48 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd4264d23b0 CR3: 000000001bbc8000 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_2dbf287f85779254+0x3d/0xfc4 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 trace_hrtimer_start include/trace/events/timer.h:199 [inline] debug_activate kernel/time/hrtimer.c:476 [inline] enqueue_hrtimer+0x324/0x390 kernel/time/hrtimer.c:1084 __run_hrtimer kernel/time/hrtimer.c:1705 [inline] __hrtimer_run_queues+0x6b6/0xcf0 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline] __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:lock_is_held_type+0x137/0x180 arch/x86/include/asm/irqflags.h:-1 Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f RSP: 0018:ffffc9000134f558 EFLAGS: 00000206 RAX: a063626c71323a00 RBX: 0000000000000001 RCX: ffff8880268ed940 RDX: 0000000000000000 RSI: ffffffff8aab3d00 RDI: ffffffff8af9fa80 RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffed100ba557de R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff8880268ed940 R14: 00000000ffffffff R15: ffffffff8cb1f540 lock_is_held include/linux/lockdep.h:287 [inline] ___might_sleep+0xa2/0x6a0 kernel/sched/core.c:9604 down_read+0x21/0x2e0 kernel/locking/rwsem.c:1497 anon_vma_lock_read include/linux/rmap.h:129 [inline] validate_mm+0xa9/0x990 mm/mmap.c:403 __vma_adjust+0x2cde/0x3150 mm/mmap.c:1020 __split_vma+0x34f/0x420 mm/mmap.c:-1 __do_munmap+0x38e/0x1710 mm/mmap.c:2844 do_munmap mm/mmap.c:2898 [inline] munmap_vma_range mm/mmap.c:602 [inline] __mmap_region mm/mmap.c:1745 [inline] mmap_region+0x9f9/0x1870 mm/mmap.c:2921 do_mmap+0x78d/0xe00 mm/mmap.c:1574 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:551 ksys_mmap_pgoff+0x559/0x780 mm/mmap.c:1623 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:0x7fd426745b74 Code: 63 08 44 89 e8 5b 41 5c 41 5d c3 41 89 ca 41 f7 c1 ff 0f 00 00 74 0c c7 05 f5 46 01 00 16 00 00 00 eb 17 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 dc 46 01 00 48 83 c8 ff c3 0f RSP: 002b:00007ffe8cb3ade8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007ffe8cb3ae98 RCX: 00007fd426745b74 RDX: 0000000000000003 RSI: 0000000000002000 RDI: 00007fd4264b0000 RBP: 00007ffe8cb3b1c0 R08: 0000000000000003 R09: 000000000000b000 R10: 0000000000000812 R11: 0000000000000246 R12: 00007fd426728ac0 R13: 00007ffe8cb3b248 R14: 000000000000b278 R15: 0000000000000000 irq event stamp: 2702 hardirqs last enabled at (2701): [] syscall_enter_from_user_mode+0x2e/0x240 kernel/entry/common.c:113 hardirqs last disabled at (2702): [] sysvec_apic_timer_interrupt+0xa/0xc0 arch/x86/kernel/apic/apic.c:1108 softirqs last enabled at (1416): [] local_bh_enable+0x5/0x20 include/linux/bottom_half.h:31 softirqs last disabled at (1414): [] local_bh_disable+0x5/0x20 include/linux/bottom_half.h:18 ---[ end trace 0e47fdf0da8a9b37 ]--- ---------------- Code disassembly (best guess): 0: 75 40 jne 0x42 2: 48 c7 04 24 00 00 00 movq $0x0,(%rsp) 9: 00 a: 9c pushf b: 8f 04 24 pop (%rsp) e: f7 04 24 00 02 00 00 testl $0x200,(%rsp) 15: 75 46 jne 0x5d 17: 41 f7 c4 00 02 00 00 test $0x200,%r12d 1e: 74 01 je 0x21 20: fb sti 21: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax 28: 00 00 * 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction 2f: 75 3c jne 0x6d 31: 89 e8 mov %ebp,%eax 33: 48 83 c4 10 add $0x10,%rsp 37: 5b pop %rbx 38: 41 5c pop %r12 3a: 41 5d pop %r13 3c: 41 5e pop %r14 3e: 41 5f pop %r15