Code: ff 92 48 c7 c6 10 bc 6f 81 e8 8f 04 0a 00 e8 fa 18 0a 00 e9 e5 fb ff ff e8 c0 62 21 0a 41 f7 c7 00 02 00 00 74 d0 fb 45 84 f6 <75> cf eb e0 90 0f 0b 90 45 31 f6 e9 62 ff ff ff 90 0f 0b 90 e9 a1
RSP: bb46:ffffc900001077d8 EFLAGS: 00000a03 ORIG_RAX: ffffc90000107740
RAX: dffffc0000000000 RBX: 1ffff92000020ee8 RCX: ffffffff947f4803
RDX: 0000000000000001 RSI: ffffffff8bcad5e0 RDI: 1ffff92000020ee8
==================================================================
BUG: KASAN: stack-out-of-bounds in __show_regs+0x172/0x610 arch/x86/kernel/process_64.c:87
Read of size 8 at addr ffffc90000107678 by task udevd/5582
CPU: 0 UID: 0 PID: 5582 Comm: udevd Not tainted 6.10.0-rc6-next-20240703-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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+0x172/0x610 arch/x86/kernel/process_64.c:87
show_trace_log_lvl+0x3d4/0x520 arch/x86/kernel/dumpstack.c:301
sched_show_task+0x506/0x6d0 kernel/sched/core.c:7509
report_rtnl_holders+0x320/0x3f0 net/core/rtnetlink.c:110
call_timer_fn+0x18e/0x650 kernel/time/timer.c:1792
expire_timers kernel/time/timer.c:1843 [inline]
__run_timers kernel/time/timer.c:2417 [inline]
__run_timer_base+0x66a/0x8e0 kernel/time/timer.c:2428
run_timer_base kernel/time/timer.c:2437 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2447
handle_softirqs+0x2c4/0x970 kernel/softirq.c:554
__do_softirq kernel/softirq.c:588 [inline]
invoke_softirq kernel/softirq.c:428 [inline]
__irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637
irq_exit_rcu+0x9/0x30 kernel/softirq.c:649
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:tomoyo_profile+0x2c/0x50 security/tomoyo/common.c:530
Code: 1f 00 41 56 53 89 f3 49 89 fe e8 1f f9 2f fd 89 d8 49 8d 1c c6 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 48 89 df e8 0a c4 96 fd 48 8b 0b 48 85 c9 48 c7 c0 80 6a 99
RSP: 0018:ffffc9000364f550 EFLAGS: 00000246
RAX: 1ffffffff2933018 RBX: ffffffff949980c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff949980c0
RBP: 0000000000000001 R08: ffffffff8466e320 R09: 0000000000000000
R10: ffffc9000364f620 R11: fffff520006c9ece R12: ffffc9000364f620
R13: 0000000000000000 R14: ffffffff949980c0 R15: 0000000000000001
tomoyo_get_mode security/tomoyo/util.c:1000 [inline]
tomoyo_init_request_info+0x107/0x350 security/tomoyo/util.c:1031
tomoyo_check_open_permission+0x23e/0x500 security/tomoyo/file.c:769
security_file_open+0x6a/0x750 security/security.c:2991
do_dentry_open+0x38e/0x1440 fs/open.c:946
vfs_open+0x3e/0x330 fs/open.c:1089
do_open fs/namei.c:3684 [inline]
path_openat+0x2b3e/0x3470 fs/namei.c:3843
do_filp_open+0x235/0x490 fs/namei.c:3870
do_sys_openat2+0x13e/0x1d0 fs/open.c:1416
do_sys_open fs/open.c:1431 [inline]
__do_sys_openat fs/open.c:1447 [inline]
__se_sys_openat fs/open.c:1442 [inline]
__x64_sys_openat+0x247/0x2a0 fs/open.c:1442
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
RIP: 0033:0x7fef4f51a477
Code: 10 00 00 00 44 8b 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 82 69 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fffc91b2d98 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fffc91b31d8 RCX: 00007fef4f51a477
RDX: 0000000000090800 RSI: 00007fffc91b31d8 RDI: 00000000ffffff9c
RBP: 00007fffc91b35d8 R08: 0000000000090800 R09: 00007fffc91b31d8
R10: 0000000000000000 R11: 0000000000000287 R12: 00007fffc91b2dd8
R13: 0000563531ce32a0 R14: 0000563531cf2970 R15: 0000000000000001
The buggy address belongs to the virtual mapping at
[ffffc90000100000, ffffc90000109000) created by:
copy_process+0x5d1/0x3d90 kernel/fork.c:2206
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17293
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 2802795760, free_ts 0
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1493
prep_new_page mm/page_alloc.c:1501 [inline]
get_page_from_freelist+0x2ccb/0x2d80 mm/page_alloc.c:3480
__alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4738
alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263
vm_area_alloc_pages mm/vmalloc.c:3584 [inline]
__vmalloc_area_node mm/vmalloc.c:3660 [inline]
__vmalloc_node_range_noprof+0x971/0x1460 mm/vmalloc.c:3841
alloc_thread_stack_node kernel/fork.c:314 [inline]
dup_task_struct+0x444/0x8c0 kernel/fork.c:1115
copy_process+0x5d1/0x3d90 kernel/fork.c:2206
kernel_clone+0x226/0x8f0 kernel/fork.c:2788
kernel_thread+0x1bc/0x240 kernel/fork.c:2850
create_kthread kernel/kthread.c:412 [inline]
kthreadd+0x60d/0x810 kernel/kthread.c:765
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
page_owner free stack trace missing
Memory state around the buggy address:
ffffc90000107500: f2 f2 00 f2 f2 f2 00 00 00 00 00 00 f2 f2 f2 f2
ffffc90000107580: 00 00 00 00 00 f3 f3 f3 f3 f3 f3 f3 00 00 00 00
>ffffc90000107600: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2
^
ffffc90000107680: 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90000107700: 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 f3 f3 f3
==================================================================
----------------
Code disassembly (best guess), 1 bytes skipped:
0: 92 xchg %eax,%edx
1: 48 c7 c6 10 bc 6f 81 mov $0xffffffff816fbc10,%rsi
8: e8 8f 04 0a 00 call 0xa049c
d: e8 fa 18 0a 00 call 0xa190c
12: e9 e5 fb ff ff jmp 0xfffffbfc
17: e8 c0 62 21 0a call 0xa2162dc
1c: 41 f7 c7 00 02 00 00 test $0x200,%r15d
23: 74 d0 je 0xfffffff5
25: fb sti
26: 45 84 f6 test %r14b,%r14b
* 29: 75 cf jne 0xfffffffa <-- trapping instruction
2b: eb e0 jmp 0xd
2d: 90 nop
2e: 0f 0b ud2
30: 90 nop
31: 45 31 f6 xor %r14d,%r14d
34: e9 62 ff ff ff jmp 0xffffff9b
39: 90 nop
3a: 0f 0b ud2
3c: 90 nop
3d: e9 .byte 0xe9
3e: a1 .byte 0xa1