RSP: 0018:ffffc90004357838 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff9200086af10 RCX: ffffffff94f2f903
RDX: 0000000000000001 RSI: ffffffff8c0ae240 RDI: ffffffff8c607c40
RBP: ffffc90004357918 R08: ffffffff94f25fe7 R09: 1ffffffff29e4bfc
==================================================================
BUG: KASAN: stack-out-of-bounds in __show_regs+0x1f3/0x610 arch/x86/kernel/process_64.c:89
Read of size 8 at addr ffffc900043577b8 by task syz.1.1597/11842
CPU: 0 UID: 0 PID: 11842 Comm: syz.1.1597 Not tainted 6.11.0-rc1-next-20240729-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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+0x1f3/0x610 arch/x86/kernel/process_64.c:89
show_trace_log_lvl+0x3d4/0x520 arch/x86/kernel/dumpstack.c:301
sched_show_task+0x506/0x6d0 kernel/sched/core.c:7512
report_rtnl_holders+0x327/0x400 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:check_kcov_mode kernel/kcov.c:175 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:236 [inline]
RIP: 0010:__sanitizer_cov_trace_switch+0xbc/0x120 kernel/kcov.c:341
Code: c2 49 39 d2 74 71 4c 8b 74 d6 10 65 8b 05 c4 05 70 7e a9 00 01 ff 00 74 11 a9 00 01 00 00 74 de 41 83 bb 1c 16 00 00 00 74 d4 <41> 8b 83 f8 15 00 00 83 f8 03 75 c8 49 8b 8b 00 16 00 00 45 8b bb
RSP: 0018:ffffc90009767038 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 0000000000000000 RCX: 0000000000040000
RDX: 0000000000000013 RSI: ffffffff8e715df0 RDI: 0000000000000000
RBP: ffffc90009767238 R08: 0000000000000001 R09: ffffffff81168f1f
R10: 000000000000001b R11: ffff88801b378000 R12: 1ffff11003e21afc
R13: ffff88801f10d7e1 R14: 000000000000004f R15: 0000000000000008
x86_decode_insn+0x63f/0x4a10 arch/x86/kvm/emulate.c:4782
x86_decode_emulated_instruction arch/x86/kvm/x86.c:9161 [inline]
x86_emulate_instruction+0x2b5/0x1ad0 arch/x86/kvm/x86.c:9199
kvm_mmu_page_fault+0x371/0x8e0 arch/x86/kvm/mmu/mmu.c:6045
__vmx_handle_exit arch/x86/kvm/vmx/vmx.c:6609 [inline]
vmx_handle_exit+0x11f1/0x1f80 arch/x86/kvm/vmx/vmx.c:6626
vcpu_enter_guest arch/x86/kvm/x86.c:11208 [inline]
vcpu_run+0x6b9b/0x88b0 arch/x86/kvm/x86.c:11314
kvm_arch_vcpu_ioctl_run+0xa73/0x19d0 arch/x86/kvm/x86.c:11540
kvm_vcpu_ioctl+0x91d/0xea0 virt/kvm/kvm_main.c:4485
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:907 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893
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:0x7faf2b3779f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007faf2c1d2048 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007faf2b506058 RCX: 00007faf2b3779f9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000007
RBP: 00007faf2b3e58ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007faf2b506058 R15: 00007ffd54516458
The buggy address belongs to the virtual mapping at
[ffffc90004350000, ffffc90004359000) 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:0xe pfn:0x42b24
memcg:ffff88807b934482
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: 000000000000000e 0000000000000000 00000001ffffffff ffff88807b934482
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 11568, tgid 11568 (syz.3.1530), ts 479590689262, free_ts 479183388047
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+0x2e4c/0x2f10 mm/page_alloc.c:3442
__alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4700
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
__do_sys_clone3 kernel/fork.c:3092 [inline]
__se_sys_clone3+0x2cb/0x350 kernel/fork.c:3071
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 10178 tgid 10178 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1094 [inline]
free_unref_folios+0x103a/0x1b00 mm/page_alloc.c:2660
folios_put_refs+0x76e/0x860 mm/swap.c:1039
folio_batch_release include/linux/pagevec.h:101 [inline]
truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:346
kill_bdev block/bdev.c:90 [inline]
blkdev_flush_mapping+0x108/0x250 block/bdev.c:664
blkdev_put_whole block/bdev.c:671 [inline]
bdev_release+0x466/0x700 block/bdev.c:1096
blkdev_release+0x15/0x20 block/fops.c:638
__fput+0x24a/0x8a0 fs/file_table.c:422
task_work_run+0x24f/0x310 kernel/task_work.c:222
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffffc90004357680: 00 00 00 00 f2 f2 f2 f2 00 00 00 00 00 f3 f3 f3
ffffc90004357700: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90004357780: f1 f1 f1 f1 00 f2 f2 f2 00 f3 f3 f3 00 00 00 00
^
ffffc90004357800: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
ffffc90004357880: 00 f2 f2 f2 00 f3 f3 f3 00 00 00 00 00 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: c2 49 39 ret $0x3949
3: d2 74 71 4c shlb %cl,0x4c(%rcx,%rsi,2)
7: 8b 74 d6 10 mov 0x10(%rsi,%rdx,8),%esi
b: 65 8b 05 c4 05 70 7e mov %gs:0x7e7005c4(%rip),%eax # 0x7e7005d6
12: a9 00 01 ff 00 test $0xff0100,%eax
17: 74 11 je 0x2a
19: a9 00 01 00 00 test $0x100,%eax
1e: 74 de je 0xfffffffe
20: 41 83 bb 1c 16 00 00 cmpl $0x0,0x161c(%r11)
27: 00
28: 74 d4 je 0xfffffffe
* 2a: 41 8b 83 f8 15 00 00 mov 0x15f8(%r11),%eax <-- trapping instruction
31: 83 f8 03 cmp $0x3,%eax
34: 75 c8 jne 0xfffffffe
36: 49 8b 8b 00 16 00 00 mov 0x1600(%r11),%rcx
3d: 45 rex.RB
3e: 8b .byte 0x8b
3f: bb .byte 0xbb