------------[ cut here ]------------ WARNING: CPU: 1 PID: 11154 at kernel/trace/bpf_trace.c:1411 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1483 [inline] WARNING: CPU: 1 PID: 11154 at kernel/trace/bpf_trace.c:1411 bpf_get_stack_raw_tp+0x1d3/0x220 kernel/trace/bpf_trace.c:1480 Modules linked in: CPU: 1 PID: 11154 Comm: syz.4.2779 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:get_bpf_raw_tp_regs kernel/trace/bpf_trace.c:1411 [inline] RIP: 0010:____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1483 [inline] RIP: 0010:bpf_get_stack_raw_tp+0x1d3/0x220 kernel/trace/bpf_trace.c:1480 Code: f1 45 31 c0 e8 ee 97 14 00 65 ff 0d af ce 78 7e 4c 63 e8 4c 89 e8 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 0d 05 f6 ff <0f> 0b 65 ff 0d 8c ce 78 7e 49 c7 c5 f0 ff ff ff eb d7 e8 f6 04 f6 RSP: 0018:ffffc900030b5970 EFLAGS: 00010287 RAX: ffffffff818a6e93 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc9000de41000 RSI: 0000000000002dfb RDI: 0000000000002dfc RBP: ffffc900030b59b0 R08: ffffffff818a6d53 R09: fffffbfff20ec821 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900030b59c8 R13: 0000000000000000 R14: 0000000000000900 R15: ffff8880b9133b30 FS: 00007f1c8d77d6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000d000 CR3: 0000000079743000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff1 DR7: 0000000000000600 Call Trace: bpf_prog_ec3b2eefa702d8d3+0x3a/0x6ec 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_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1917 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline] __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 mm/mmap_lock.c:102 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:137 [inline] stack_map_get_build_id_offset+0x612/0x930 kernel/bpf/stackmap.c:185 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline] bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480 bpf_prog_ec3b2eefa702d8d3+0x3a/0x6ec 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_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1917 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline] __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 mm/mmap_lock.c:102 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:137 [inline] stack_map_get_build_id_offset+0x612/0x930 kernel/bpf/stackmap.c:185 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline] bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480 bpf_prog_ec3b2eefa702d8d3+0x3a/0x6ec 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_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1917 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline] __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 mm/mmap_lock.c:102 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:137 [inline] stack_map_get_build_id_offset+0x612/0x930 kernel/bpf/stackmap.c:185 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline] bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480 bpf_prog_ec3b2eefa702d8d3+0x3a/0x6ec 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_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1917 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline] __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 mm/mmap_lock.c:102 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline] mmap_read_trylock include/linux/mmap_lock.h:137 [inline] do_user_addr_fault arch/x86/mm/fault.c:1298 [inline] handle_page_fault arch/x86/mm/fault.c:1445 [inline] exc_page_fault+0x564/0x700 arch/x86/mm/fault.c:1501 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0010:copy_user_generic_unrolled+0xa0/0xc0 arch/x86/lib/copy_user_64.S:101 Code: 7f 40 ff c9 75 b6 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 4c 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a 06 <88> 07 48 ff c6 48 ff c7 ff c9 75 f2 31 c0 0f 01 ca c3 66 2e 0f 1f RSP: 0018:ffffc900030b6d88 EFLAGS: 00050202 RAX: ffffffff84097366 RBX: 000000002000d004 RCX: 0000000000000004 RDX: 0000000000000007 RSI: ffff88805c7d066f RDI: 000000002000d000 RBP: 000000002000cffd R08: dffffc0000000000 R09: ffffed100b8fa0cf R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000007 R13: 00007ffffffff000 R14: ffff88805c7d066c R15: 000000002000cffd copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0xef/0x130 lib/usercopy.c:40 copy_to_user include/linux/uaccess.h:200 [inline] bpf_verifier_vlog+0x195/0x320 kernel/bpf/verifier.c:303 verbose+0x1f9/0x2a0 kernel/bpf/verifier.c:348 print_verifier_state+0x709/0x22a0 kernel/bpf/verifier.c:662 do_check+0x2998/0xf310 kernel/bpf/verifier.c:11230 do_check_common+0x844/0x1070 kernel/bpf/verifier.c:13482 do_check_main kernel/bpf/verifier.c:13545 [inline] bpf_check+0xcb96/0x12d40 kernel/bpf/verifier.c:14116 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 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:0x7f1c8f905819 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:00007f1c8d77d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f1c8fabcfa0 RCX: 00007f1c8f905819 RDX: 0000000000000048 RSI: 000000002000e000 RDI: 0000000000000005 RBP: 00007f1c8f97875e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1c8fabcfa0 R15: 00007ffcc52795b8 ---------------- Code disassembly (best guess): 0: 7f 40 jg 0x42 2: ff c9 dec %ecx 4: 75 b6 jne 0xffffffbc 6: 89 d1 mov %edx,%ecx 8: 83 e2 07 and $0x7,%edx b: c1 e9 03 shr $0x3,%ecx e: 74 12 je 0x22 10: 4c 8b 06 mov (%rsi),%r8 13: 4c 89 07 mov %r8,(%rdi) 16: 48 8d 76 08 lea 0x8(%rsi),%rsi 1a: 48 8d 7f 08 lea 0x8(%rdi),%rdi 1e: ff c9 dec %ecx 20: 75 ee jne 0x10 22: 21 d2 and %edx,%edx 24: 74 10 je 0x36 26: 89 d1 mov %edx,%ecx 28: 8a 06 mov (%rsi),%al * 2a: 88 07 mov %al,(%rdi) <-- trapping instruction 2c: 48 ff c6 inc %rsi 2f: 48 ff c7 inc %rdi 32: ff c9 dec %ecx 34: 75 f2 jne 0x28 36: 31 c0 xor %eax,%eax 38: 0f 01 ca clac 3b: c3 ret 3c: 66 data16 3d: 2e cs 3e: 0f .byte 0xf 3f: 1f (bad)