==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff888108418c2a by task udevd/5293

CPU: 1 UID: 0 PID: 5293 Comm: udevd Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #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+0xca/0x240
 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:__rcu_read_unlock+0x39/0xe0
Code: 00 00 00 00 00 fc ff df 65 48 8b 3c 25 08 40 a0 92 48 8d 9f 44 04 00 00 49 89 dc 49 c1 ec 03 43 0f b6 04 3c 84 c0 75 4f ff 0b <75> 1d 4c 8d b7 48 04 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 38 84
RSP: 0018:ffffc9000263f928 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff8881094d5a84 RCX: 3b3d8316ec547000
RDX: 0000000000000000 RSI: ffffffff8dba6026 RDI: ffff8881094d5640
RBP: dffffc0000000000 R08: ffffc9000263fd88 R09: 0000000000000000
R10: ffffc9000263fa78 R11: fffff520004c7f51 R12: 1ffff1102129ab50
R13: ffffc90002638000 R14: ffffc9000263fa28 R15: dffffc0000000000
 unwind_next_frame+0x19ae/0x2390
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 kmem_cache_free+0x2f6/0x400
 fput_close_sync+0x119/0x200
 __x64_sys_close+0x7f/0x110
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa84e31a37f
Code: af 6a 0d 00 f7 d8 64 89 02 48 83 c8 ff 44 89 c7 48 89 04 24 e8 e1 fc f9 ff 48 8b 04 24 48 83 c4 28 c3 c3 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 7a 6a 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fff8c756c78 EFLAGS: 00000206 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000560215676710 RCX: 00007fa84e31a37f
RDX: 00007fa84e3f1b00 RSI: 0000560215648010 RDI: 000000000000000f
RBP: 00005602156d2510 R08: 0000000000000000 R09: 0000000004000000
R10: 0000000000000812 R11: 0000000000000206 R12: 000056021566e990
R13: 00000000000000fd R14: 00005601f16051c4 R15: 0000000000000000
 </TASK>

Allocated by task 5293:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 kernfs_fop_open+0x397/0xca0
 do_dentry_open+0x953/0x13f0
 vfs_open+0x3b/0x340
 path_openat+0x2ee5/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5293:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 kernfs_fop_release+0x160/0x190
 __fput+0x44c/0xa70
 fput_close_sync+0x119/0x200
 __x64_sys_close+0x7f/0x110
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888108418c00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff888108418c00, ffff888108418e00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888108418c00 pfn:0x108418
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000240(workingset|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000240 ffff88801a441c80 ffffea00046aa610 ffffea0004445c10
raw: ffff888108418c00 000000000010000e 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea00046aa610 ffffea0004445c10
head: ffff888108418c00 000000000010000e 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea0004210601 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5846, tgid 5846 (syz-executor), ts 58329987011, free_ts 58302145589
 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/0x370
 ___slab_alloc+0xbeb/0x1410
 __kmalloc_noprof+0x305/0x4f0
 fib6_info_alloc+0x30/0xf0
 ip6_route_info_create+0x142/0x860
 addrconf_f6i_alloc+0x1d2/0x450
 addrconf_permanent_addr+0x274/0x9d0
 addrconf_notify+0x887/0x1010
 notifier_call_chain+0x1b6/0x3e0
 __dev_notify_flags+0x18d/0x2e0
 netif_change_flags+0xe8/0x1a0
 do_setlink+0xc55/0x41c0
page last free pid 5846 tgid 5846 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 __slab_free+0x303/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_node_noprof+0x1bb/0x3c0
 __alloc_skb+0x112/0x2d0
 rtmsg_ifa+0xf8/0x1f0
 __inet_insert_ifa+0x9ff/0xbf0
 inet_rtm_newaddr+0xf3a/0x18b0
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 __sys_sendto+0x3bd/0x520

Memory state around the buggy address:
 ffff888108418b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888108418b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888108418c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888108418c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888108418d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
