Oops: general protection fault, maybe for address 0xffffffff8155a349: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 UID: 0 PID: 5370 Comm: syz.0.14 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:__sanitizer_cov_trace_pc+0x5d/0x70 kernel/kcov.c:235 Code: f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 RSP: 6e86:ffffc900040b7350 EFLAGS: 00010083 ORIG_RAX: 61454b5764ac9600 ================================================================== BUG: KASAN: stack-out-of-bounds in __show_regs+0xa6/0x610 arch/x86/kernel/process_64.c:83 Read of size 8 at addr ffffc900040b72f8 by task syz.0.14/5370 CPU: 1 UID: 0 PID: 5370 Comm: syz.0.14 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 __show_regs+0xa6/0x610 arch/x86/kernel/process_64.c:83 show_regs arch/x86/kernel/dumpstack.c:472 [inline] __die_body+0x3c/0xb0 arch/x86/kernel/dumpstack.c:420 die_addr+0xb0/0xe0 arch/x86/kernel/dumpstack.c:460 __exc_general_protection arch/x86/kernel/traps.c:748 [inline] exc_general_protection+0x3dd/0x5d0 arch/x86/kernel/traps.c:693 The buggy address belongs to stack of task syz.0.14/5370 and is located at offset 56 in frame: kvm_wait+0x0/0x2c0 This frame has 2 objects: [32, 40) 'flags.i.i.i' [64, 72) 'flags.i.i' The buggy address belongs to the virtual mapping at [ffffc900040b0000, ffffc900040b9000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2206 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888079bfbe58 pfn:0x79bfb memcg:ffff888029e18302 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff888079bfbe58 0000000000000000 00000001ffffffff ffff888029e18302 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5365, tgid 5365 (dhcpcd-run-hook), ts 66054950916, free_ts 66050931298 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3004/0x30c0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3600 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0xa40/0x1400 mm/vmalloc.c:3850 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2206 kernel_clone+0x226/0x8f0 kernel/fork.c:2787 __do_sys_clone kernel/fork.c:2930 [inline] __se_sys_clone kernel/fork.c:2914 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2914 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5365 tgid 5365 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page+0xc07/0xd90 mm/page_alloc.c:2651 discard_slab mm/slub.c:2630 [inline] __put_partials+0xeb/0x130 mm/slub.c:3098 put_cpu_partial+0x17c/0x250 mm/slub.c:3173 __slab_free+0x2ea/0x3d0 mm/slub.c:4391 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4085 [inline] __do_kmalloc_node mm/slub.c:4205 [inline] __kmalloc_noprof+0x1a6/0x400 mm/slub.c:4218 kmalloc_noprof include/linux/slab.h:685 [inline] tomoyo_realpath_from_path+0xcf/0x5e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x2b7/0x740 security/tomoyo/file.c:822 security_inode_getattr+0xd8/0x130 security/security.c:2282 vfs_getattr+0x45/0x430 fs/stat.c:242 vfs_fstat fs/stat.c:267 [inline] vfs_fstatat+0xe4/0x190 fs/stat.c:376 __do_sys_newfstatat fs/stat.c:543 [inline] __se_sys_newfstatat fs/stat.c:537 [inline] __x64_sys_newfstatat+0x11d/0x1a0 fs/stat.c:537 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc900040b7180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900040b7200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900040b7280: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 ^ ffffc900040b7300: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900040b7380: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f2 01 f2 ================================================================== ---------------- Code disassembly (best guess): 0: f8 clc 1: 15 00 00 83 fa adc $0xfa830000,%eax 6: 02 75 21 add 0x21(%rbp),%dh 9: 48 8b 91 00 16 00 00 mov 0x1600(%rcx),%rdx 10: 48 8b 32 mov (%rdx),%rsi 13: 48 8d 7e 01 lea 0x1(%rsi),%rdi 17: 8b 89 fc 15 00 00 mov 0x15fc(%rcx),%ecx 1d: 48 39 cf cmp %rcx,%rdi 20: 73 08 jae 0x2a 22: 48 89 3a mov %rdi,(%rdx) 25: 48 89 44 f2 08 mov %rax,0x8(%rdx,%rsi,8) * 2a: c3 ret <-- trapping instruction 2b: cc int3 2c: cc int3 2d: cc int3 2e: cc int3 2f: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 36: 00 00 00 39: 0f 1f 40 00 nopl 0x0(%rax) 3d: 90 nop 3e: 90 nop 3f: 90 nop