==================================================================
BUG: KASAN: use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88802a3df02a by task syz.1.4712/20615

CPU: 1 UID: 0 PID: 20615 Comm: syz.1.4712 Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0x189/0x250
 print_report+0xd2/0x2b0
 kasan_report+0x118/0x150
 rose_timer_expiry+0x471/0x4b0
 call_timer_fn+0x17e/0x5f0
 __run_timer_base+0x61a/0x860
 run_timer_softirq+0xb7/0x180
 handle_softirqs+0x286/0x870
 __irq_exit_rcu+0xca/0x1f0
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:prepare_alloc_pages+0x309/0x610
Code: 00 00 fc ff df 49 8b 16 48 85 d2 75 4f 4d 8d 74 24 08 4c 89 f0 48 c1 e8 03 0f b6 04 30 84 c0 0f 85 d4 01 00 00 41 39 2e 77 32 <48> 83 c3 10 48 89 d8 48 c1 e8 03 80 3c 30 00 74 08 48 89 df e8 8e
RSP: 0018:ffffc90002b6eff0 EFLAGS: 00000297
RAX: 0000000000000000 RBX: ffffc90002b6f0a0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffffc90002b6f0c0
RBP: 0000000000000003 R08: 0000000000000000 R09: ffffffff8214f59d
R10: ffffc90002b6f0a0 R11: fffff5200056de19 R12: ffff88813fff9980
R13: 0000000000000100 R14: ffff88813fff9988 R15: 1ffff9200056de14
 __alloc_frozen_pages_noprof+0x123/0x370
 alloc_pages_mpol+0x232/0x4a0
 vma_alloc_folio_noprof+0xe4/0x200
 folio_prealloc+0x30/0x180
 do_wp_page+0x1231/0x5800
 __handle_mm_fault+0x1144/0x5620
 handle_mm_fault+0x40a/0x8e0
 do_user_addr_fault+0x764/0x1390
 exc_page_fault+0x76/0xf0
 asm_exc_page_fault+0x26/0x30
RIP: 0010:__put_user_nocheck_4+0x3/0x10
Code: d9 0f 1f 00 89 01 31 c9 0f 1f 00 e9 17 3b 03 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 00 <89> 01 31 c9 0f 1f 00 c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc90002b6f8b8 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000200000e26030
RDX: ffff88810554b980 RSI: 0000000000000300 RDI: 00000000ffffffff
RBP: ffffc90002b6fa30 R08: ffffffff8fa1d5f7 R09: 1ffffffff1f43abe
R10: dffffc0000000000 R11: fffffbfff1f43abf R12: 0000000000000300
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000200000e26000
 ____sys_recvmsg+0x2ab/0x460
 ___sys_recvmsg+0x1b5/0x510
 do_recvmmsg+0x307/0x770
 __x64_sys_recvmmsg+0x190/0x240
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdc3cf8e9a9
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:00007fdc3ddf1038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fdc3d1b6080 RCX: 00007fdc3cf8e9a9
RDX: 000000000400023c RSI: 00002000000055c0 RDI: 000000000000000b
RBP: 00007fdc3d010d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000300 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fdc3d1b6080 R15: 00007ffc10d8d528
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a3df
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 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 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1087, tgid 1087 (kworker/u10:3), ts 67995112155, free_ts 292035373506
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x8a/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_noprof+0x305/0x4f0
 fib6_info_alloc+0x30/0xf0
 ip6_route_info_create+0x142/0x860
 ip6_route_add+0x49/0x1b0
 addrconf_add_dev+0x24f/0x340
 addrconf_init_auto_addrs+0x5c4/0xab0
 addrconf_notify+0xacc/0x1010
 notifier_call_chain+0x1b6/0x3e0
 netif_state_change+0x284/0x3a0
 linkwatch_do_dev+0x117/0x170
page last free pid 790 tgid 790 stack trace:
 __free_frozen_pages+0xc71/0xe70
 __slab_free+0x326/0x400
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kvmalloc_node_noprof+0x2b0/0x5f0
 rhashtable_rehash_alloc+0x9f/0x2a0
 rht_deferred_worker+0x4f8/0x2430
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88802a3def00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88802a3def80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88802a3df000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                  ^
 ffff88802a3df080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88802a3df100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
