==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88801ff4342a by task syz.0.3253/13723

CPU: 0 UID: 0 PID: 13723 Comm: syz.0.3253 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:__might_resched+0x20/0x610
Code: 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec e0 00 00 00 89 54 24 2c <89> 74 24 14 48 89 7c 24 20 65 48 8b 05 cf 1d 0e 11 48 89 84 24 c0
RSP: 0018:ffffc90006b77280 EFLAGS: 00000282
RAX: 0000000000000001 RBX: 00007fdcaada8000 RCX: ffff888030f34ab0
RDX: 0000000000000000 RSI: 000000000000071d RDI: ffffffff8b961a20
RBP: ffffc90006b77390 R08: ffff88802095d123 R09: 1ffff1100412ba24
R10: dffffc0000000000 R11: ffffed100412ba25 R12: 00007fdcaada8000
R13: 00007fdcaada8000 R14: 00007fdcaada8000 R15: ffffc90006b77860
 unmap_page_range+0x3d3b/0x4370
 unmap_vmas+0x399/0x580
 exit_mmap+0x248/0xb50
 __mmput+0x118/0x430
 exit_mm+0x1da/0x2c0
 do_exit+0x648/0x2300
 do_group_exit+0x21c/0x2d0
 get_signal+0x1286/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdca9f8ebe9
Code: Unable to access opcode bytes at 0x7fdca9f8ebbf.
RSP: 002b:00007fdcaada70e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: 0000000000000001 RBX: 00007fdcaa1b5fa8 RCX: 00007fdca9f8ebe9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fdcaa1b5fac
RBP: 00007fdcaa1b5fa0 R08: 7fffffffffffffff R09: 0000000000000000
R10: 0000000000069000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdcaa1b6038 R14: 00007fffd6f75e00 R15: 00007fffd6f75ee8
 </TASK>

Allocated by task 973:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 drm_gem_duplicate_shadow_plane_state+0x77/0xf0
 drm_atomic_get_plane_state+0x25d/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 2301:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 drm_atomic_state_default_clear+0x736/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 ffff88801ff43400
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff88801ff43400, ffff88801ff43600)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88801ff43400 pfn:0x1ff40
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801a441c80 ffffea0000cf9a10 ffffea000073ce10
raw: ffff88801ff43400 000000000010000b 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000cf9a10 ffffea000073ce10
head: ffff88801ff43400 000000000010000b 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea00007fd001 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 12, tgid 12 (kworker/u8:0), ts 60141535469, free_ts 59925660493
 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_cache_noprof+0x296/0x3d0
 __ipv6_dev_mc_inc+0x44f/0xa50
 addrconf_dad_work+0x3d0/0x14b0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
page last free pid 5910 tgid 5910 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_noprof+0x1c1/0x3c0
 proc_reg_open+0x1f4/0x540
 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

Memory state around the buggy address:
 ffff88801ff43300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88801ff43380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88801ff43400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88801ff43480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801ff43500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
