------------[ cut here ]------------
WARNING: CPU: 1 PID: 12626 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0
Modules linked in:
CPU: 1 PID: 12626 Comm: syz.0.2979 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:ffffc90000dd0d28 EFLAGS: 00010006
RAX: ffffffff81aaacec RBX: 0000000000000000 RCX: ffff88805de01dc0
RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff81aaabfd R09: ffffed100bbc03b9
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffffc90000dd0da8
FS: 00007f46791116c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556f8e75c8 CR3: 0000000023160000 CR4: 00000000003506e0
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/0xd94
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_tlb_flush+0xed/0x110 include/trace/events/tlb.h:38
flush_tlb_func+0x480/0x590 arch/x86/mm/tlb.c:851
flush_smp_call_function_queue+0x2b5/0x760 kernel/smp.c:628
__sysvec_call_function_single+0x9a/0x250 arch/x86/kernel/smp.c:248
instr_sysvec_call_function_single arch/x86/kernel/smp.c:243 [inline]
sysvec_call_function_single+0x98/0xc0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x16/0x20 arch/x86/include/asm/idtentry.h:684
RIP: 0010:unwind_next_frame+0x9d/0x1fa0
Code: 00 fc ff df 4d 8b 67 38 4c 89 fb 48 c1 eb 03 0f b6 04 03 84 c0 0f 85 68 17 00 00 41 8b 07 85 c0 0f 84 4e 16 00 00 89 44 24 74 <48> 89 6c 24 40 4c 89 64 24 78 4c 89 74 24 50 48 89 5c 24 38 bf 01
RSP: 0018:ffffc90002de7648 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 1ffff920005bceec RCX: 1ffff920005bcef3
RDX: dffffc0000000000 RSI: ffffc90002de7750 RDI: ffffc90002de7760
RBP: ffffc90002de7798 R08: ffffc90002de7750 R09: ffffc90002de77b0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002de7760
R13: ffffc90002de7770 R14: ffffffff812fe18b R15: ffffc90002de7760
__unwind_start+0x59d/0x720 arch/x86/kernel/unwind_orc.c:704
unwind_start arch/x86/include/asm/unwind.h:60 [inline]
arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xba/0xf0 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:264 [inline]
__kmalloc+0x168/0x300 mm/slub.c:4407
kmalloc include/linux/slab.h:596 [inline]
tomoyo_realpath_from_path+0xd8/0x5e0 security/tomoyo/realpath.c:254
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_number_perm+0x225/0x810 security/tomoyo/file.c:723
security_file_ioctl+0x6d/0xa0 security/security.c:1555
__do_sys_ioctl fs/ioctl.c:868 [inline]
__se_sys_ioctl+0x47/0x160 fs/ioctl.c:860
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:0x7f467b29941b
Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007f4679111060 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f467b29941b
RDX: 0000000000000000 RSI: 0000000000006364 RDI: 00000000000000d8
RBP: 00007f467b450fa0 R08: 00007ffce0aed627 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f467b450fac
R13: 0000000000000001 R14: 00007ffce0aed540 R15: 00007ffce0aed628
----------------
Code disassembly (best guess), 3 bytes skipped:
0: df 4d 8b fisttps -0x75(%rbp)
3: 67 38 4c 89 fb cmp %cl,-0x5(%ecx,%ecx,4)
8: 48 c1 eb 03 shr $0x3,%rbx
c: 0f b6 04 03 movzbl (%rbx,%rax,1),%eax
10: 84 c0 test %al,%al
12: 0f 85 68 17 00 00 jne 0x1780
18: 41 8b 07 mov (%r15),%eax
1b: 85 c0 test %eax,%eax
1d: 0f 84 4e 16 00 00 je 0x1671
23: 89 44 24 74 mov %eax,0x74(%rsp)
* 27: 48 89 6c 24 40 mov %rbp,0x40(%rsp) <-- trapping instruction
2c: 4c 89 64 24 78 mov %r12,0x78(%rsp)
31: 4c 89 74 24 50 mov %r14,0x50(%rsp)
36: 48 89 5c 24 38 mov %rbx,0x38(%rsp)
3b: bf .byte 0xbf
3c: 01 .byte 0x1