==================================================================
BUG: KASAN: stack-out-of-bounds in profile_pc+0x186/0x1a0 arch/x86/kernel/time.c:44
Read of size 8 at addr ffffc9000329f9a0 by task syz-executor137/5202
CPU: 2 PID: 5202 Comm: syz-executor137 Not tainted 6.10.0-rc1-syzkaller-00021-ge0cce98fe279 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
print_address_description mm/kasan/report.c:377 [inline]
print_report+0xc3/0x620 mm/kasan/report.c:488
kasan_report+0xd9/0x110 mm/kasan/report.c:601
profile_pc+0x186/0x1a0 arch/x86/kernel/time.c:44
profile_tick+0xd3/0x140 kernel/profile.c:339
tick_sched_handle kernel/time/tick-sched.c:277 [inline]
tick_nohz_handler+0x380/0x530 kernel/time/tick-sched.c:297
__run_hrtimer kernel/time/hrtimer.c:1687 [inline]
__hrtimer_run_queues+0x657/0xcc0 kernel/time/hrtimer.c:1751
hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1813
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
__sysvec_apic_timer_interrupt+0x10f/0x450 arch/x86/kernel/apic/apic.c:1049
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1043
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:queued_read_lock_slowpath+0x131/0x2b1 kernel/locking/qrwlock.c:51
Code: 85 45 01 00 00 8b 03 84 c0 74 36 48 b8 00 00 00 00 00 fc ff df 49 89 de 48 89 dd 49 c1 ee 03 83 e5 07 49 01 c6 83 c5 03 f3 90 <41> 0f b6 06 40 38 c5 7c 08 84 c0 0f 85 1f 01 00 00 8b 03 84 c0 75
RSP: 0018:ffffc9000329f998 EFLAGS: 00000286
RAX: 00000000000002ff RBX: ffff88802683a0b0 RCX: ffffffff8aeb79db
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff88802683a0b0
RBP: 0000000000000003 R08: 0000000000000001 R09: ffffed1004d07416
R10: ffff88802683a0b3 R11: 0000000000000003 R12: 1ffff92000653f34
R13: ffff88802683a0b4 R14: ffffed1004d07416 R15: ffff88802683a000
start_this_handle+0x249/0x15e0 fs/jbd2/transaction.c:383
jbd2__journal_start+0x394/0x6a0 fs/jbd2/transaction.c:520
__ext4_journal_start_sb+0x358/0x660 fs/ext4/ext4_jbd2.c:112
__ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
__ext4_unlink+0x418/0xcb0 fs/ext4/namei.c:3262
ext4_unlink+0x422/0x610 fs/ext4/namei.c:3321
vfs_unlink+0x2fb/0x9b0 fs/namei.c:4343
do_unlinkat+0x5c0/0x750 fs/namei.c:4407
__do_sys_unlink fs/namei.c:4455 [inline]
__se_sys_unlink fs/namei.c:4453 [inline]
__x64_sys_unlink+0xc7/0x110 fs/namei.c:4453
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb3ebca6fc7
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd5a228b08 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb3ebca6fc7
RDX: 00007ffd5a228b30 RSI: 00007ffd5a228bc0 RDI: 00007ffd5a228bc0
RBP: 00007ffd5a228bc0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffd5a229c30
R13: 0000555573ab17d0 R14: 00007ffd5a229c30 R15: 0000000000000eda
The buggy address belongs to stack of task syz-executor137/5202
and is located at offset 0 in frame:
queued_read_lock_slowpath+0x0/0x2b1 arch/x86/include/asm/paravirt.h:584
This frame has 1 object:
[32, 36) 'val'
The buggy address belongs to the virtual mapping at
[ffffc90003298000, ffffc900032a1000) created by:
kernel_clone+0xfd/0x980 kernel/fork.c:2797
The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1fbfb
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 4912, tgid 4912 (dhcpcd), ts 71817495197, free_ts 68910505176
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1468
prep_new_page mm/page_alloc.c:1476 [inline]
get_page_from_freelist+0x136a/0x2df0 mm/page_alloc.c:3402
__alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4660
alloc_pages_mpol_noprof+0x275/0x610 mm/mempolicy.c:2265
vm_area_alloc_pages mm/vmalloc.c:3566 [inline]
__vmalloc_area_node mm/vmalloc.c:3642 [inline]
__vmalloc_node_range_noprof+0xa6a/0x1520 mm/vmalloc.c:3823
alloc_thread_stack_node kernel/fork.c:309 [inline]
dup_task_struct kernel/fork.c:1115 [inline]
copy_process+0x2f38/0x8f10 kernel/fork.c:2220
kernel_clone+0xfd/0x980 kernel/fork.c:2797
__do_sys_clone3+0x1f5/0x270 kernel/fork.c:3098
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5089 tgid 5089 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1088 [inline]
free_unref_page+0x64a/0xe40 mm/page_alloc.c:2565
__put_partials+0x14c/0x170 mm/slub.c:2994
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook mm/slub.c:3940 [inline]
slab_alloc_node mm/slub.c:4000 [inline]
kmem_cache_alloc_noprof+0x121/0x2f0 mm/slub.c:4007
mt_alloc_one lib/maple_tree.c:162 [inline]
mas_alloc_nodes+0x176/0x860 lib/maple_tree.c:1242
mas_node_count_gfp+0x105/0x130 lib/maple_tree.c:1322
mas_preallocate+0x3bb/0x1020 lib/maple_tree.c:5556
vma_iter_prealloc mm/internal.h:1361 [inline]
vma_expand+0x6f3/0x1310 mm/mmap.c:661
mmap_region+0x153d/0x2760 mm/mmap.c:2859
do_mmap+0xbc7/0xf60 mm/mmap.c:1397
vm_mmap_pgoff+0x1ba/0x360 mm/util.c:573
ksys_mmap_pgoff+0x332/0x5d0 mm/mmap.c:1443
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:79 [inline]
__x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:79
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
Memory state around the buggy address:
ffffc9000329f880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc9000329f900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc9000329f980: 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00
^
ffffc9000329fa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc9000329fa80: 00 00 00 00 f1 f1 f1 f1 f1 f1 00 00 00 00 00 f3
==================================================================
----------------
Code disassembly (best guess):
0: 85 45 01 test %eax,0x1(%rbp)
3: 00 00 add %al,(%rax)
5: 8b 03 mov (%rbx),%eax
7: 84 c0 test %al,%al
9: 74 36 je 0x41
b: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
12: fc ff df
15: 49 89 de mov %rbx,%r14
18: 48 89 dd mov %rbx,%rbp
1b: 49 c1 ee 03 shr $0x3,%r14
1f: 83 e5 07 and $0x7,%ebp
22: 49 01 c6 add %rax,%r14
25: 83 c5 03 add $0x3,%ebp
28: f3 90 pause
* 2a: 41 0f b6 06 movzbl (%r14),%eax <-- trapping instruction
2e: 40 38 c5 cmp %al,%bpl
31: 7c 08 jl 0x3b
33: 84 c0 test %al,%al
35: 0f 85 1f 01 00 00 jne 0x15a
3b: 8b 03 mov (%rbx),%eax
3d: 84 c0 test %al,%al
3f: 75 .byte 0x75