------------[ cut here ]------------ WARNING: CPU: 0 PID: 3637 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 3637 Comm: kworker/0:7 Not tainted 5.15.166-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: events bpf_prog_free_deferred 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 2b c8 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 14 c8 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:ffffc90000007c08 EFLAGS: 00010006 RAX: ffffffff81aa91ec RBX: 0000000000000000 RCX: ffff88801f72bb80 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aa90fd R09: ffffed1003ee5771 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000002 R14: 0000000000000000 R15: ffffc90000007c88 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000000c68e000 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_4c951443d905a12d+0x37/0xa54 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:1880 [inline] bpf_trace_run2+0x19e/0x340 kernel/trace/bpf_trace.c:1917 __traceiter_tlb_flush+0x6c/0xc0 include/trace/events/tlb.h:38 trace_tlb_flush+0xed/0x110 include/trace/events/tlb.h:38 switch_mm_irqs_off+0x748/0xa30 flush_tlb_func+0x208/0x590 arch/x86/mm/tlb.c:769 flush_smp_call_function_queue+0x2b5/0x760 kernel/smp.c:628 __sysvec_call_function_single+0x9a/0x250 arch/x86/kernel/smp.c:248 sysvec_call_function_single+0x89/0xb0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x16/0x20 arch/x86/include/asm/idtentry.h:646 RIP: 0010:merge_or_add_vmap_area mm/vmalloc.c:1126 [inline] RIP: 0010:free_vmap_area_noflush+0x42d/0x910 mm/vmalloc.c:1759 Code: b0 01 89 44 24 10 48 8b 44 24 08 48 89 04 24 eb 19 e8 17 81 c1 ff b0 01 89 44 24 10 48 8b 44 24 08 48 89 04 24 48 8b 6c 24 38 <48> 83 c5 08 48 89 e8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 ef e8 RSP: 0018:ffffc900026c7af0 EFLAGS: 00000293 RAX: ffff8880253352a0 RBX: ffff8880253351f8 RCX: ffff88801f72bb80 RDX: 0000000000000000 RSI: ffffc90002330000 RDI: ffffffffa002e000 RBP: ffffffff8c9def00 R08: ffffffff81bed747 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8880253351f0 R13: dffffc0000000000 R14: ffffffffa002c000 R15: ffffffffa002e000 free_unmap_vmap_area mm/vmalloc.c:1778 [inline] remove_vm_area+0x1ae/0x1d0 mm/vmalloc.c:2517 vm_remove_mappings mm/vmalloc.c:2546 [inline] __vunmap+0x325/0xa20 mm/vmalloc.c:2611 bpf_jit_binary_free kernel/bpf/core.c:914 [inline] bpf_jit_free+0x92/0x180 kernel/bpf/core.c:927 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ---------------- Code disassembly (best guess): 0: b0 01 mov $0x1,%al 2: 89 44 24 10 mov %eax,0x10(%rsp) 6: 48 8b 44 24 08 mov 0x8(%rsp),%rax b: 48 89 04 24 mov %rax,(%rsp) f: eb 19 jmp 0x2a 11: e8 17 81 c1 ff call 0xffc1812d 16: b0 01 mov $0x1,%al 18: 89 44 24 10 mov %eax,0x10(%rsp) 1c: 48 8b 44 24 08 mov 0x8(%rsp),%rax 21: 48 89 04 24 mov %rax,(%rsp) 25: 48 8b 6c 24 38 mov 0x38(%rsp),%rbp * 2a: 48 83 c5 08 add $0x8,%rbp <-- trapping instruction 2e: 48 89 e8 mov %rbp,%rax 31: 48 c1 e8 03 shr $0x3,%rax 35: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 3a: 74 08 je 0x44 3c: 48 89 ef mov %rbp,%rdi 3f: e8 .byte 0xe8