==================================================================
BUG: KASAN: use-after-free in hlist_move_list include/linux/list.h:870 [inline]
BUG: KASAN: use-after-free in __collect_expired_timers kernel/time/timer.c:1484 [inline]
BUG: KASAN: use-after-free in collect_expired_timers kernel/time/timer.c:1719 [inline]
BUG: KASAN: use-after-free in __run_timers+0x521/0xbe0 kernel/time/timer.c:1783
Write of size 8 at addr ffff8881ec2331c8 by task syz-fuzzer/360
CPU: 1 PID: 360 Comm: syz-fuzzer Tainted: G W 5.4.268-syzkaller-00003-g2d5d8240a7cb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1d8/0x241 lib/dump_stack.c:118
print_address_description+0x8c/0x600 mm/kasan/report.c:384
__kasan_report+0xf3/0x120 mm/kasan/report.c:516
kasan_report+0x30/0x60 mm/kasan/common.c:653
hlist_move_list include/linux/list.h:870 [inline]
__collect_expired_timers kernel/time/timer.c:1484 [inline]
collect_expired_timers kernel/time/timer.c:1719 [inline]
__run_timers+0x521/0xbe0 kernel/time/timer.c:1783
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1800
__do_softirq+0x23b/0x6b7 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x195/0x1c0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:538 [inline]
smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
The buggy address belongs to the page:
page:ffffea0007b08cc0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0
flags: 0x8000000000000000()
raw: 8000000000000000 ffffea00071065c8 ffffea0007c3c008 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x500dc0(GFP_USER|__GFP_ZERO|__GFP_ACCOUNT)
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook mm/page_alloc.c:2165 [inline]
prep_new_page+0x18f/0x370 mm/page_alloc.c:2171
get_page_from_freelist+0x2d13/0x2d90 mm/page_alloc.c:3794
__alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4891
__alloc_pages include/linux/gfp.h:503 [inline]
__alloc_pages_node include/linux/gfp.h:516 [inline]
alloc_pages_node include/linux/gfp.h:530 [inline]
__pte_alloc_one include/asm-generic/pgalloc.h:63 [inline]
pte_alloc_one+0x1b/0xb0 arch/x86/mm/pgtable.c:26
__pte_alloc+0x1d/0x1c0 mm/memory.c:439
copy_pte_range mm/memory.c:829 [inline]
copy_pmd_range mm/memory.c:905 [inline]
copy_pud_range mm/memory.c:939 [inline]
copy_p4d_range mm/memory.c:961 [inline]
copy_page_range+0x1c24/0x26f0 mm/memory.c:1023
dup_mmap kernel/fork.c:608 [inline]
dup_mm kernel/fork.c:1379 [inline]
copy_mm+0xb23/0x10d0 kernel/fork.c:1435
copy_process+0x1291/0x3230 kernel/fork.c:2052
_do_fork+0x197/0x900 kernel/fork.c:2399
__do_sys_clone kernel/fork.c:2557 [inline]
__se_sys_clone kernel/fork.c:2538 [inline]
__x64_sys_clone+0x26b/0x2c0 kernel/fork.c:2538
do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1176 [inline]
free_pcp_prepare mm/page_alloc.c:1233 [inline]
free_unref_page_prepare+0x297/0x380 mm/page_alloc.c:3085
free_unref_page_list+0x10a/0x590 mm/page_alloc.c:3154
release_pages+0xad8/0xb20 mm/swap.c:842
tlb_batch_pages_flush mm/mmu_gather.c:49 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:189 [inline]
tlb_flush_mmu mm/mmu_gather.c:196 [inline]
tlb_finish_mmu+0x177/0x320 mm/mmu_gather.c:277
exit_mmap+0x2dc/0x520 mm/mmap.c:3188
__mmput+0x8e/0x2c0 kernel/fork.c:1101
exit_mm kernel/exit.c:536 [inline]
do_exit+0xc08/0x2bc0 kernel/exit.c:846
do_group_exit+0x138/0x300 kernel/exit.c:982
__do_sys_exit_group kernel/exit.c:993 [inline]
__se_sys_exit_group kernel/exit.c:991 [inline]
__x64_sys_exit_group+0x3b/0x40 kernel/exit.c:991
do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Memory state around the buggy address:
ffff8881ec233080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881ec233100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff8881ec233180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8881ec233200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881ec233280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 1dd60c067 P4D 1dd60c067 PUD 1dd611067 PMD 0
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 360 Comm: syz-fuzzer Tainted: G B W 5.4.268-syzkaller-00003-g2d5d8240a7cb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0000:ffff8881f6f09d18 EFLAGS: 00010206
RAX: ffffffff8154e34a RBX: 0000000000000100 RCX: ffff8881db221f80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881ec2331c0
RBP: ffff8881f6f09ec8 R08: ffffffff8154df8e R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 000000010000f5b8
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881ec2331c0
FS: 000000c00102c490(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001dd615000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
call_timer_fn+0x36/0x390 kernel/time/timer.c:1418
expire_timers kernel/time/timer.c:1463 [inline]
__run_timers+0x879/0xbe0 kernel/time/timer.c:1787
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1800
__do_softirq+0x23b/0x6b7 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:373 [inline]
irq_exit+0x195/0x1c0 kernel/softirq.c:413
exiting_irq arch/x86/include/asm/apic.h:538 [inline]
smp_apic_timer_interrupt+0x11a/0x460 arch/x86/kernel/apic/apic.c:1149
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:834
Modules linked in:
CR2: 0000000000000000
---[ end trace fe7503acab635829 ]---
RIP: 0010:0x0
Code: Bad RIP value.
RSP: 0000:ffff8881f6f09d18 EFLAGS: 00010206
RAX: ffffffff8154e34a RBX: 0000000000000100 RCX: ffff8881db221f80
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881ec2331c0
RBP: ffff8881f6f09ec8 R08: ffffffff8154df8e R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 000000010000f5b8
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881ec2331c0
FS: 000000c00102c490(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000001dd615000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600