------------[ cut here ]------------ WARNING: CPU: 1 PID: 4506 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 1 PID: 4506 Comm: syz.0.95 Not tainted 5.15.177-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/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 ab ba d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 94 ba 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: ffffffff81aacafc RBX: 0000000000000000 RCX: ffff888022a48000 RDX: 0000000000010000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aaca0d R09: ffffed1004549001 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000020000000 R13: 0000000000000008 R14: 0000000020000000 R15: ffffc90000dd0da8 FS: 00007f37a30406c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000002c02b000 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_bcff4640d6a7c5a9+0x5e/0xb28 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:__should_failslab+0x8d/0xd0 mm/failslab.c:33 Code: 48 c1 e8 03 42 0f b6 04 30 84 c0 75 49 f6 45 03 02 75 07 31 c0 5b 41 5e 5d c3 48 83 c3 1c 48 89 d8 48 c1 e8 03 42 0f b6 04 30 <84> c0 75 12 8b 33 48 c7 c7 20 60 bf 8c 5b 41 5e 5d e9 cd 15 67 02 RSP: 0018:ffffc90002e2fa58 EFLAGS: 00000a07 RAX: 0000000000000000 RBX: ffff88801744151c RCX: ffff888022a48000 RDX: ffff888022a48000 RSI: 0000000000000d40 RDI: ffff888017441500 RBP: 0000000000000d40 R08: dffffc0000000000 R09: fffffbfff1c150de R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888017441500 R13: ffff888017441500 R14: dffffc0000000000 R15: 0000000000000001 should_failslab+0x5/0x20 mm/slab_common.c:1344 slab_pre_alloc_hook+0x53/0xc0 mm/slab.h:494 slab_alloc_node mm/slub.c:3134 [inline] slab_alloc mm/slub.c:3228 [inline] __kmalloc+0x6e/0x300 mm/slub.c:4403 kmalloc include/linux/slab.h:596 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_encode2 security/tomoyo/realpath.c:45 [inline] tomoyo_encode+0x26b/0x530 security/tomoyo/realpath.c:80 tomoyo_realpath_from_path+0x5a2/0x5e0 security/tomoyo/realpath.c:288 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:0x7f37a51d692b 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:00007f37a3040060 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f37a51d692b RDX: 0000000000000000 RSI: 0000000000006364 RDI: 00000000000000d8 RBP: 00007f37a53effa0 R08: 00007ffcb83c4fc7 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f37a53effac R13: 0000000000000001 R14: 00007ffcb83c4ee0 R15: 00007ffcb83c4fc8 ---------------- Code disassembly (best guess): 0: 48 c1 e8 03 shr $0x3,%rax 4: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 9: 84 c0 test %al,%al b: 75 49 jne 0x56 d: f6 45 03 02 testb $0x2,0x3(%rbp) 11: 75 07 jne 0x1a 13: 31 c0 xor %eax,%eax 15: 5b pop %rbx 16: 41 5e pop %r14 18: 5d pop %rbp 19: c3 ret 1a: 48 83 c3 1c add $0x1c,%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 75 12 jne 0x40 2e: 8b 33 mov (%rbx),%esi 30: 48 c7 c7 20 60 bf 8c mov $0xffffffff8cbf6020,%rdi 37: 5b pop %rbx 38: 41 5e pop %r14 3a: 5d pop %rbp 3b: e9 cd 15 67 02 jmp 0x267160d