==================================================================
BUG: KASAN: stack-out-of-bounds in profile_pc+0x186/0x1a0 arch/x86/kernel/time.c:44
Read of size 8 at addr ffffc90004507ba0 by task syz-executor/29896
CPU: 0 PID: 29896 Comm: syz-executor Not tainted 6.10.0-rc5-syzkaller-00021-g24ca36a562d6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
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+0x65a/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+0x112/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+0x135/0x2b1 kernel/locking/qrwlock.c:51
Code: 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 e7 48 c7 c0
RSP: 0018:ffffc90004507b98 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffffffff8d80a080 RCX: ffffffff8aec0e9b
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff8d80a080
RBP: 0000000000000003 R08: 0000000000000001 R09: fffffbfff1b01410
R10: ffffffff8d80a083 R11: 0000000000000000 R12: 1ffff920008a0f74
R13: ffffffff8d80a084 R14: fffffbfff1b01410 R15: ffffffff8152e4d9
__do_wait+0x105/0x890 kernel/exit.c:1583
do_wait+0x219/0x570 kernel/exit.c:1627
kernel_wait4+0x16c/0x280 kernel/exit.c:1786
__do_sys_wait4+0x15f/0x170 kernel/exit.c:1814
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:0x7f7a8d76be17
Code: 89 7c 24 10 48 89 4c 24 18 e8 85 14 03 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 d5 14 03 00 8b 44
RSP: 002b:00007fffeae60700 EFLAGS: 00000293 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 000000000000009b RCX: 00007f7a8d76be17
RDX: 0000000040000001 RSI: 00007fffeae6077c RDI: 00000000ffffffff
RBP: 00007fffeae6077c R08: 0000000000000000 R09: 00007f7a8e585080
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 0000000000371d93 R14: 0000000000371cf7 R15: 00007fffeae607e0
The buggy address belongs to stack of task syz-executor/29896
and is located at offset 0 in frame:
queued_read_lock_slowpath+0x0/0x2b1
This frame has 1 object:
[32, 36) 'val'
The buggy address belongs to the virtual mapping at
[ffffc90004500000, ffffc90004509000) 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:0xffff88802d7f0ba0 pfn:0x2d7f0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffff88802d7f0ba0 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 29857, tgid 29857 (syz.1.7049), ts 3519148734044, free_ts 3509164542276
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/0x2e50 mm/page_alloc.c:3420
__alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4678
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 29725 tgid 29722 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1088 [inline]
free_unref_folios+0x991/0x1310 mm/page_alloc.c:2632
folios_put_refs+0x487/0x6d0 mm/swap.c:1024
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:329
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3d1/0xb20 mm/mmap.c:3354
__mmput+0x12a/0x4d0 kernel/fork.c:1346
mmput+0x62/0x70 kernel/fork.c:1368
exit_mm kernel/exit.c:565 [inline]
do_exit+0x9b7/0x2ba0 kernel/exit.c:861
do_group_exit+0xd3/0x2a0 kernel/exit.c:1023
get_signal+0x2616/0x2710 kernel/signal.c:2909
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop kernel/entry/common.c:111 [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+0x14a/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffffc90004507a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90004507b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90004507b80: 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00
^
ffffc90004507c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90004507c80: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00
==================================================================
==================================================================
BUG: KASAN: stack-out-of-bounds in profile_pc+0x186/0x1a0 arch/x86/kernel/time.c:44
Read of size 8 at addr ffffc90004507ba0 by task syz-executor/29896
CPU: 0 PID: 29896 Comm: syz-executor Tainted: G B 6.10.0-rc5-syzkaller-00021-g24ca36a562d6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
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+0x65a/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+0x112/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+0x135/0x2b1 kernel/locking/qrwlock.c:51
Code: 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 e7 48 c7 c0
RSP: 0018:ffffc90004507b98 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffffffff8d80a080 RCX: ffffffff8aec0e9b
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff8d80a080
RBP: 0000000000000003 R08: 0000000000000001 R09: fffffbfff1b01410
R10: ffffffff8d80a083 R11: 0000000000000000 R12: 1ffff920008a0f74
R13: ffffffff8d80a084 R14: fffffbfff1b01410 R15: ffffffff8152e4d9
__do_wait+0x105/0x890 kernel/exit.c:1583
do_wait+0x219/0x570 kernel/exit.c:1627
kernel_wait4+0x16c/0x280 kernel/exit.c:1786
__do_sys_wait4+0x15f/0x170 kernel/exit.c:1814
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:0x7f7a8d76be17
Code: 89 7c 24 10 48 89 4c 24 18 e8 85 14 03 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 d5 14 03 00 8b 44
RSP: 002b:00007fffeae60700 EFLAGS: 00000293 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 000000000000009b RCX: 00007f7a8d76be17
RDX: 0000000040000001 RSI: 00007fffeae6077c RDI: 00000000ffffffff
RBP: 00007fffeae6077c R08: 0000000000000000 R09: 00007f7a8e585080
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 0000000000371d93 R14: 0000000000371cf7 R15: 00007fffeae607e0
The buggy address belongs to stack of task syz-executor/29896
and is located at offset 0 in frame:
queued_read_lock_slowpath+0x0/0x2b1
This frame has 1 object:
[32, 36) 'val'
The buggy address belongs to the virtual mapping at
[ffffc90004500000, ffffc90004509000) 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:0xffff88802d7f0ba0 pfn:0x2d7f0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffff88802d7f0ba0 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 29857, tgid 29857 (syz.1.7049), ts 3519148734044, free_ts 3509164542276
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/0x2e50 mm/page_alloc.c:3420
__alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4678
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 29725 tgid 29722 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1088 [inline]
free_unref_folios+0x991/0x1310 mm/page_alloc.c:2632
folios_put_refs+0x487/0x6d0 mm/swap.c:1024
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:329
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3d1/0xb20 mm/mmap.c:3354
__mmput+0x12a/0x4d0 kernel/fork.c:1346
mmput+0x62/0x70 kernel/fork.c:1368
exit_mm kernel/exit.c:565 [inline]
do_exit+0x9b7/0x2ba0 kernel/exit.c:861
do_group_exit+0xd3/0x2a0 kernel/exit.c:1023
get_signal+0x2616/0x2710 kernel/signal.c:2909
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop kernel/entry/common.c:111 [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+0x14a/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffffc90004507a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90004507b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90004507b80: 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00
^
ffffc90004507c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90004507c80: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00
==================================================================
==================================================================
BUG: KASAN: stack-out-of-bounds in profile_pc+0x186/0x1a0 arch/x86/kernel/time.c:44
Read of size 8 at addr ffffc90004507ba0 by task syz-executor/29896
CPU: 0 PID: 29896 Comm: syz-executor Tainted: G B 6.10.0-rc5-syzkaller-00021-g24ca36a562d6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
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+0x65a/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+0x112/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+0x135/0x2b1 kernel/locking/qrwlock.c:51
Code: 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 e7 48 c7 c0
RSP: 0018:ffffc90004507b98 EFLAGS: 00000286
RAX: 0000000000000000 RBX: ffffffff8d80a080 RCX: ffffffff8aec0e9b
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff8d80a080
RBP: 0000000000000003 R08: 0000000000000001 R09: fffffbfff1b01410
R10: ffffffff8d80a083 R11: 0000000000000000 R12: 1ffff920008a0f74
R13: ffffffff8d80a084 R14: fffffbfff1b01410 R15: ffffffff8152e4d9
__do_wait+0x105/0x890 kernel/exit.c:1583
do_wait+0x219/0x570 kernel/exit.c:1627
kernel_wait4+0x16c/0x280 kernel/exit.c:1786
__do_sys_wait4+0x15f/0x170 kernel/exit.c:1814
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:0x7f7a8d76be17
Code: 89 7c 24 10 48 89 4c 24 18 e8 85 14 03 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 d5 14 03 00 8b 44
RSP: 002b:00007fffeae60700 EFLAGS: 00000293 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 000000000000009b RCX: 00007f7a8d76be17
RDX: 0000000040000001 RSI: 00007fffeae6077c RDI: 00000000ffffffff
RBP: 00007fffeae6077c R08: 0000000000000000 R09: 00007f7a8e585080
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 0000000000371d93 R14: 0000000000371cf7 R15: 00007fffeae607e0
The buggy address belongs to stack of task syz-executor/29896
and is located at offset 0 in frame:
queued_read_lock_slowpath+0x0/0x2b1
This frame has 1 object:
[32, 36) 'val'
The buggy address belongs to the virtual mapping at
[ffffc90004500000, ffffc90004509000) 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:0xffff88802d7f0ba0 pfn:0x2d7f0
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffff88802d7f0ba0 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 29857, tgid 29857 (syz.1.7049), ts 3519148734044, free_ts 3509164542276
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/0x2e50 mm/page_alloc.c:3420
__alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4678
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 29725 tgid 29722 stack trace:
reset_page_owner include/linux/page_owner.h:25 [inline]
free_pages_prepare mm/page_alloc.c:1088 [inline]
free_unref_folios+0x991/0x1310 mm/page_alloc.c:2632
folios_put_refs+0x487/0x6d0 mm/swap.c:1024
free_pages_and_swap_cache+0x36d/0x510 mm/swap_state.c:329
__tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136
tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:366 [inline]
tlb_flush_mmu mm/mmu_gather.c:373 [inline]
tlb_finish_mmu+0x168/0x7b0 mm/mmu_gather.c:465
exit_mmap+0x3d1/0xb20 mm/mmap.c:3354
__mmput+0x12a/0x4d0 kernel/fork.c:1346
mmput+0x62/0x70 kernel/fork.c:1368
exit_mm kernel/exit.c:565 [inline]
do_exit+0x9b7/0x2ba0 kernel/exit.c:861
do_group_exit+0xd3/0x2a0 kernel/exit.c:1023
get_signal+0x2616/0x2710 kernel/signal.c:2909
arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
exit_to_user_mode_loop kernel/entry/common.c:111 [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+0x14a/0x2a0 kernel/entry/common.c:218
do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffffc90004507a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90004507b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffc90004507b80: 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00
^
ffffc90004507c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffc90004507c80: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 00
==================================================================
----------------
Code disassembly (best guess):
0: 00 8b 03 84 c0 74 add %cl,0x74c08403(%rbx)
6: 36 48 b8 00 00 00 00 ss movabs $0xdffffc0000000000,%rax
d: 00 fc ff df
11: 49 89 de mov %rbx,%r14
14: 48 89 dd mov %rbx,%rbp
17: 49 c1 ee 03 shr $0x3,%r14
1b: 83 e5 07 and $0x7,%ebp
1e: 49 01 c6 add %rax,%r14
21: 83 c5 03 add $0x3,%ebp
24: f3 90 pause
26: 41 0f b6 06 movzbl (%r14),%eax
* 2a: 40 38 c5 cmp %al,%bpl <-- trapping instruction
2d: 7c 08 jl 0x37
2f: 84 c0 test %al,%al
31: 0f 85 1f 01 00 00 jne 0x156
37: 8b 03 mov (%rbx),%eax
39: 84 c0 test %al,%al
3b: 75 e7 jne 0x24
3d: 48 rex.W
3e: c7 .byte 0xc7
3f: c0 .byte 0xc0