==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88802829b42a by task syz-executor/5849

CPU: 0 UID: 0 PID: 5849 Comm: syz-executor Not tainted syzkaller #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:_raw_spin_unlock_irqrestore+0xa8/0x110
Code: 74 05 e8 2b 77 4b f6 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f6 44 24 21 02 75 4f f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 93 1e 14 f6 65 8b 05 6c 61 24 07 85 c0 74 40 48 c7 04 24 0e 36
RSP: 0018:ffffc900033ef1c0 EFLAGS: 00000206
RAX: 091b1b6906bcde00 RBX: 0000000000000a02 RCX: 091b1b6906bcde00
RDX: 0000000000000000 RSI: ffffffff8d9b68b1 RDI: 0000000000000001
RBP: ffffc900033ef250 R08: ffffffff8fa37c37 R09: 1ffffffff1f46f86
R10: dffffc0000000000 R11: fffffbfff1f46f87 R12: dffffc0000000000
R13: ffff88801e681850 R14: ffffffff99d337a0 R15: 1ffff9200067de38
 debug_object_activate+0x2e2/0x420
 call_rcu+0xaa/0x9c0
 evict+0x847/0x9c0
 __dentry_kill+0x209/0x660
 shrink_kill+0xa9/0x2c0
 shrink_dentry_list+0x2e0/0x5e0
 shrink_dcache_parent+0xa1/0x2c0
 d_invalidate+0x11b/0x260
 proc_invalidate_siblings_dcache+0x3d3/0x6c0
 release_task+0x1306/0x17f0
 wait_consider_task+0x1944/0x2e10
 __do_wait+0x153/0x740
 do_wait+0x1f8/0x520
 kernel_wait4+0x1af/0x280
 __x64_sys_wait4+0x133/0x1e0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8b6eb84e57
Code: 89 7c 24 10 48 89 4c 24 18 e8 45 1b 03 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 95 1b 03 00 8b 44
RSP: 002b:00007fff3089fd80 EFLAGS: 00000293 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 0000000000001d27 RCX: 00007f8b6eb84e57
RDX: 0000000040000001 RSI: 00007fff3089fdec RDI: 00000000ffffffff
RBP: 00007fff3089fdec R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000001388
R13: 00000000000927c0 R14: 000000000006dd6b R15: 00007fff3089fe40
 </TASK>

Allocated by task 19065:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 rose_add_node+0x23a/0xde0
 rose_rt_ioctl+0xa48/0xfb0
 rose_ioctl+0x3ce/0x8b0
 sock_do_ioctl+0xdc/0x300
 sock_ioctl+0x576/0x790
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 29827:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 rose_rt_device_down+0x473/0x4c0
 rose_device_event+0x603/0x6a0
 notifier_call_chain+0x1b6/0x3e0
 __dev_notify_flags+0x18d/0x2e0
 netif_change_flags+0xe8/0x1a0
 dev_change_flags+0x130/0x260
 dev_ioctl+0x7b4/0x1150
 sock_do_ioctl+0x22c/0x300
 sock_ioctl+0x576/0x790
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802829b400 pfn:0x28298
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 ffffea0000da3d10 ffffea0000a43410
raw: ffff88802829b400 0000000000100004 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000da3d10 ffffea0000a43410
head: ffff88802829b400 0000000000100004 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000a0a601 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 5874, tgid 5874 (kworker/u8:3), ts 58802539203, free_ts 58354440201
 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 5905 tgid 5905 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
 getname_flags+0xb8/0x540
 vfs_fstatat+0x43/0x170
 __x64_sys_newfstatat+0x116/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88802829b300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88802829b380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88802829b400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88802829b480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88802829b500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
