------------[ cut here ]------------ WARNING: CPU: 0 PID: 2963 at mm/maccess.c:226 copy_from_user_nofault+0x15c/0x1c0 Modules linked in: CPU: 0 PID: 2963 Comm: udevd Not tainted 5.15.137-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 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 e7 d5 ff 48 c7 c0 f2 ff ff ff 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 14 e7 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:ffffc90000007ec8 EFLAGS: 00010046 RAX: ffffffff81aa3b3c RBX: 0000000000000000 RCX: ffff88807d120000 RDX: 0000000080010001 RSI: 0000000000000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81aa3a4d R09: ffffed100fa24001 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 0000000000000005 R14: 0000000000000000 R15: ffffc90000007f40 FS: 00007f8182436c80(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa4e16506be CR3: 000000001d699000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 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_eaa6c3274495767e+0x35/0xbc8 bpf_dispatcher_nop_func include/linux/bpf.h:776 [inline] __bpf_prog_run include/linux/filter.h:618 [inline] bpf_prog_run include/linux/filter.h:632 [inline] __bpf_prog_test_run_raw_tp+0x225/0x2c0 net/bpf/test_run.c:331 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:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:65 Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 RSP: 0018:ffffc90002bcf420 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffc90002bcf530 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc90002bcf540 RBP: ffffffff8e811c12 R08: dffffc0000000000 R09: ffffc90002bcf530 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1d02382 R13: 1ffffffff1d02382 R14: ffffffff8e811c0e R15: ffffc90002bcf4e0 unwind_next_frame+0xbc8/0x1fa0 arch/x86/kernel/unwind_orc.c:547 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 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] 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_perm+0x273/0x6b0 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x120 security/security.c:1348 vfs_getattr+0x26/0x360 fs/stat.c:157 vfs_statx+0x18f/0x3b0 fs/stat.c:225 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:411 [inline] __se_sys_newfstatat fs/stat.c:405 [inline] __x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f81825615f4 Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffe18e16c78 EFLAGS: 00000206 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 00007f8182639460 RCX: 00007f81825615f4 RDX: 00007ffe18e16c80 RSI: 00007f81825fe130 RDI: 000000000000000c RBP: 000055e55a3d74b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000003fff R14: 00007ffe18e17218 R15: 000000000000000a ---------------- Code disassembly (best guess): 0: 03 40 0f add 0xf(%rax),%eax 3: b6 f6 mov $0xf6,%dh 5: 48 b8 01 01 01 01 01 movabs $0x101010101010101,%rax c: 01 01 01 f: 48 0f af c6 imul %rsi,%rax 13: f3 48 ab rep stos %rax,%es:(%rdi) 16: 89 d1 mov %edx,%ecx 18: f3 aa rep stos %al,%es:(%rdi) 1a: 4c 89 c8 mov %r9,%rax 1d: c3 ret 1e: 90 nop 1f: 49 89 f9 mov %rdi,%r9 22: 40 88 f0 mov %sil,%al 25: 48 89 d1 mov %rdx,%rcx 28: f3 aa rep stos %al,%es:(%rdi) * 2a: 4c 89 c8 mov %r9,%rax <-- trapping instruction 2d: c3 ret 2e: 90 nop 2f: 49 89 fa mov %rdi,%r10 32: 40 0f b6 ce movzbl %sil,%ecx 36: 48 b8 01 01 01 01 01 movabs $0x101010101010101,%rax 3d: 01 01 01