================================================================== BUG: KASAN: use-after-free in hlist_move_list include/linux/list.h:852 [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+0x4a8/0x6b0 kernel/time/timer.c:1783 Write of size 8 at addr ffff8881e07a31c8 by task syz-executor.5/6180 CPU: 0 PID: 6180 Comm: syz-executor.5 Not tainted 5.4.210-syzkaller-00035-gcc4340dfc7b2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x18e/0x1d5 lib/dump_stack.c:118 print_address_description+0x8c/0x630 mm/kasan/report.c:384 __kasan_report+0xf6/0x130 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 hlist_move_list include/linux/list.h:852 [inline] __collect_expired_timers kernel/time/timer.c:1484 [inline] collect_expired_timers kernel/time/timer.c:1719 [inline] __run_timers+0x4a8/0x6b0 kernel/time/timer.c:1783 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1800 __do_softirq+0x23e/0x643 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+0x113/0x440 arch/x86/kernel/apic/apic.c:1150 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831 RIP: 0033:0x7fd1907affe6 Code: 00 31 c0 87 83 1c 06 00 00 83 f8 fe 0f 84 4b 01 00 00 48 8b 54 24 08 be 18 00 00 00 b8 11 01 00 00 48 8d ba e0 02 00 00 0f 05 82 14 06 00 00 04 0f 85 6a 01 00 00 48 8d 7c 24 10 e8 e3 a3 00 RSP: 002b:00007fd18f934240 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 00007fd18f934700 RCX: 00007fd1907affe6 RDX: 00007fd18f934700 RSI: 0000000000000018 RDI: 00007fd18f9349e0 RBP: 0000000000000000 R08: 00007fd18f934700 R09: 00007fd18f934700 R10: 00007fd18f9349d0 R11: 0000000000000202 R12: 00007fff741c7e9e R13: 00007fff741c7e9f R14: 00007fd18f934300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea000781e8c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x8000000000000000() raw: 8000000000000000 ffffea0007bdc608 ffffea000781e888 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 0x112cc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_NORETRY) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x194/0x380 mm/page_alloc.c:2171 get_page_from_freelist+0x524/0x560 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x2ab/0x6f0 mm/page_alloc.c:4857 __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] pcpu_alloc_pages mm/percpu-vm.c:94 [inline] pcpu_populate_chunk+0x121/0xca0 mm/percpu-vm.c:284 pcpu_balance_workfn+0xeea/0x1270 mm/percpu.c:1917 process_one_work+0x6ca/0xc40 kernel/workqueue.c:2287 worker_thread+0xae0/0x1440 kernel/workqueue.c:2433 kthread+0x2d8/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 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+0x1a4/0x290 mm/page_alloc.c:1233 free_unref_page_prepare mm/page_alloc.c:3085 [inline] free_unref_page mm/page_alloc.c:3134 [inline] free_the_page mm/page_alloc.c:4917 [inline] __free_pages+0x52/0x1e0 mm/page_alloc.c:4925 pcpu_free_pages mm/percpu-vm.c:64 [inline] pcpu_depopulate_chunk mm/percpu-vm.c:328 [inline] pcpu_balance_workfn+0x934/0x1270 mm/percpu.c:1865 process_one_work+0x6ca/0xc40 kernel/workqueue.c:2287 worker_thread+0xae0/0x1440 kernel/workqueue.c:2433 kthread+0x2d8/0x360 kernel/kthread.c:288 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 Memory state around the buggy address: ffff8881e07a3080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881e07a3100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881e07a3180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881e07a3200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881e07a3280: 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 1ba8e4067 P4D 1ba8e4067 PUD 1b9d51067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 0 PID: 6180 Comm: syz-executor.5 Tainted: G B 5.4.210-syzkaller-00035-gcc4340dfc7b2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:0x0 Code: Bad RIP value. RSP: 0000:ffff8881f6e09d30 EFLAGS: 00010206 RAX: ffffffff8151cbb9 RBX: 0000000000000100 RCX: ffff8881c62a2f40 RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881e07a31c0 RBP: ffff8881e07a31e0 R08: ffffffff8151c992 R09: fffffbfff0d7370d R10: fffffbfff0d7370d R11: 1ffffffff0d7370c R12: 000000010004fbd0 R13: 1ffff1103edc92f1 R14: 0000000000000000 R15: ffff8881e07a31c0 FS: 00007fd18f934700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001ca00a000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: call_timer_fn+0x31/0x350 kernel/time/timer.c:1418 expire_timers+0x21e/0x400 kernel/time/timer.c:1463 __run_timers+0x5b0/0x6b0 kernel/time/timer.c:1787 run_timer_softirq+0x46/0x80 kernel/time/timer.c:1800 __do_softirq+0x23e/0x643 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+0x113/0x440 arch/x86/kernel/apic/apic.c:1150 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:831 RIP: 0033:0x7fd1907affe6 Code: 00 31 c0 87 83 1c 06 00 00 83 f8 fe 0f 84 4b 01 00 00 48 8b 54 24 08 be 18 00 00 00 b8 11 01 00 00 48 8d ba e0 02 00 00 0f 05 82 14 06 00 00 04 0f 85 6a 01 00 00 48 8d 7c 24 10 e8 e3 a3 00 RSP: 002b:00007fd18f934240 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 00007fd18f934700 RCX: 00007fd1907affe6 RDX: 00007fd18f934700 RSI: 0000000000000018 RDI: 00007fd18f9349e0 RBP: 0000000000000000 R08: 00007fd18f934700 R09: 00007fd18f934700 R10: 00007fd18f9349d0 R11: 0000000000000202 R12: 00007fff741c7e9e R13: 00007fff741c7e9f R14: 00007fd18f934300 R15: 0000000000022000 Modules linked in: CR2: 0000000000000000 ---[ end trace db092edb41b76b9e ]--- RIP: 0010:0x0 Code: Bad RIP value. RSP: 0000:ffff8881f6e09d30 EFLAGS: 00010206 RAX: ffffffff8151cbb9 RBX: 0000000000000100 RCX: ffff8881c62a2f40 RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffff8881e07a31c0 RBP: ffff8881e07a31e0 R08: ffffffff8151c992 R09: fffffbfff0d7370d R10: fffffbfff0d7370d R11: 1ffffffff0d7370c R12: 000000010004fbd0 R13: 1ffff1103edc92f1 R14: 0000000000000000 R15: ffff8881e07a31c0 FS: 00007fd18f934700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001ca00a000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400