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

CPU: 0 UID: 0 PID: 5293 Comm: udevd Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-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:lock_release+0x70/0x3e0
Code: e8 45 f1 08 00 84 c0 75 0d f6 05 0e bf ef 0d 01 0f 84 ad 02 00 00 83 3d ed 06 06 0e 00 0f 84 44 02 00 00 65 8b 05 a0 a3 02 11 <85> c0 0f 85 35 02 00 00 65 4c 8b 3c 25 08 d0 9f 92 41 83 bf ec 0a
RSP: 0018:ffffc9000273f310 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffffffff90376701 RCX: 522546aa0f0ca000
RDX: ffffc9000273f401 RSI: ffffffff8be325e0 RDI: ffffffff8be325a0
RBP: dffffc0000000000 R08: ffffc9000273f580 R09: 0000000000000000
R10: ffffc9000273f498 R11: fffff520004e7e95 R12: ffffc9000273f590
R13: ffffffff8172c195 R14: ffffffff8e139ee0 R15: ffffffff8172c195
 unwind_next_frame+0x19a9/0x2390
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free+0x18f/0x400
 __unix_dgram_recvmsg+0x9f9/0xd60
 sock_recvmsg+0x22c/0x270
 ____sys_recvmsg+0x1c9/0x460
 ___sys_recvmsg+0x1b5/0x510
 __x64_sys_recvmsg+0x198/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe4f858891e
Code: ff 89 ef 48 89 04 24 e8 4f 57 f9 ff 48 8b 04 24 48 83 c4 30 5d c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 21 b8 2f 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 70 48 8b 15 db c4 0c 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc13e01a58 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fe4f858891e
RDX: 0000000000000040 RSI: 00007ffc13e01b20 RDI: 0000000000000009
RBP: 00007ffc13e01b20 R08: 000000000f387bfc R09: 7fffffffffffffff
R10: 3fffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000200000001 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Allocated by task 24:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 drm_atomic_helper_crtc_duplicate_state+0x72/0xb0
 drm_atomic_get_crtc_state+0x19a/0x460
 drm_atomic_get_plane_state+0x4c8/0x5a0
 drm_atomic_helper_dirtyfb+0xce5/0xee0
 drm_fbdev_shmem_helper_fb_dirty+0x160/0x2f0
 drm_fb_helper_damage_work+0x224/0x710
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Freed by task 792:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 drm_atomic_state_default_clear+0x422/0xbe0
 __drm_atomic_state_free+0xaf/0x210
 drm_atomic_helper_dirtyfb+0xe2d/0xee0
 drm_fbdev_shmem_helper_fb_dirty+0x160/0x2f0
 drm_fb_helper_damage_work+0x224/0x710
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888111192800 pfn:0x111190
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 ffffea0004429f10 ffffea0004155c10
raw: ffff888111192800 000000000010000c 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea0004429f10 ffffea0004155c10
head: ffff888111192800 000000000010000c 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea0004446401 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 1090, tgid 1090 (kworker/u9:5), ts 55709045196, free_ts 55564721953
 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
 ip6_route_add+0x49/0x1b0
 addrconf_add_linklocal+0x45f/0x6c0
 addrconf_addr_gen+0x490/0x580
 addrconf_init_auto_addrs+0x62d/0xa30
 addrconf_notify+0xacc/0x1010
 notifier_call_chain+0x1b6/0x3e0
 netif_state_change+0x284/0x3a0
page last free pid 5849 tgid 5849 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 __put_partials+0x156/0x1a0
 put_cpu_partial+0x17c/0x250
 __slab_free+0x2d5/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_cache_noprof+0x1be/0x3d0
 inet_rtm_newaddr+0x530/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
 __x64_sys_sendto+0xde/0x100

Memory state around the buggy address:
 ffff888111193700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888111193780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888111193800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888111193880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888111193900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
