------------[ cut here ]------------ WARNING: CPU: 0 PID: 13 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 13 Comm: kworker/0:1 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: ffff888017e48000 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aa90fd R09: ffffed1002fc9001 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffffc90000007c88 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31f2ce5130 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_f3c4d654356a1293+0x34/0x194 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:arch_test_and_set_bit arch/x86/include/asm/bitops.h:138 [inline] RIP: 0010:test_and_set_bit include/asm-generic/bitops/instrumented-atomic.h:71 [inline] RIP: 0010:queue_work_on+0x1f4/0x250 kernel/workqueue.c:1558 Code: 11 e8 60 a3 2d 00 4d 85 e4 75 16 e8 56 a3 2d 00 eb 15 e8 4f a3 2d 00 e8 ba 66 e1 08 4d 85 e4 74 ea e8 40 a3 2d 00 fb 45 84 ed <0f> 94 c0 48 c7 44 24 20 0e 36 e0 45 48 b9 00 00 00 00 00 fc ff df RSP: 0018:ffffc90000d27b20 EFLAGS: 00000246 RAX: ffffffff8152b6c0 RBX: 0000000000000000 RCX: ffff888017e48000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90000d27bf8 R08: ffffffff8152b696 R09: fffffbfff20e2230 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000200 R13: 0000000000000000 R14: 0000000000000046 R15: 1ffff920001a4f68 __bpf_free_used_maps kernel/bpf/core.c:2238 [inline] bpf_free_used_maps kernel/bpf/core.c:2244 [inline] bpf_prog_free_deferred+0x135/0x6a0 kernel/bpf/core.c:2276 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), 1 bytes skipped: 0: e8 60 a3 2d 00 call 0x2da365 5: 4d 85 e4 test %r12,%r12 8: 75 16 jne 0x20 a: e8 56 a3 2d 00 call 0x2da365 f: eb 15 jmp 0x26 11: e8 4f a3 2d 00 call 0x2da365 16: e8 ba 66 e1 08 call 0x8e166d5 1b: 4d 85 e4 test %r12,%r12 1e: 74 ea je 0xa 20: e8 40 a3 2d 00 call 0x2da365 25: fb sti 26: 45 84 ed test %r13b,%r13b * 29: 0f 94 c0 sete %al <-- trapping instruction 2c: 48 c7 44 24 20 0e 36 movq $0x45e0360e,0x20(%rsp) 33: e0 45 35: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 3c: fc ff df