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

CPU: 1 UID: 0 PID: 7055 Comm: syz.3.236 Not tainted 6.16.0-rc6-syzkaller-00135-gcf074eca0065-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/0x230
 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 cb 9e 57 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> 13 cd 20 f6 65 8b 05 bc b9 2f 07 85 c0 74 40 48 c7 04 24 0e 36
RSP: 0018:ffffc90004477aa0 EFLAGS: 00000206
RAX: cff6e61ddca41600 RBX: 0000000000000a02 RCX: cff6e61ddca41600
RDX: 0000000000000000 RSI: ffffffff8d996157 RDI: 0000000000000001
RBP: ffffc90004477b28 R08: ffffffff8fa1d6f7 R09: 1ffffffff1f43ade
R10: dffffc0000000000 R11: fffffbfff1f43adf R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88810a7f4390 R15: 1ffff9200088ef54
 try_to_wake_up+0x7b6/0x1290
 wake_up_q+0xb6/0x110
 futex_wake+0x458/0x500
 do_futex+0x395/0x420
 __se_sys_futex+0x36f/0x400
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc4d998e9a9
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:00007fffc30f80b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fc4d9bb5fa8 RCX: 00007fc4d998e9a9
RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00007fc4d9bb5fa8
RBP: 0000000000000000 R08: 0000000000000000 R09: 00000006c30f83af
R10: 00007fc4d9bb5fa0 R11: 0000000000000246 R12: 00007fc4d9bb5fac
R13: 00007fc4d9bb5fa0 R14: 0000000000001c26 R15: 0000000000000003
 </TASK>

Allocated by task 6596:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 __ipv6_dev_mc_inc+0x420/0xaf0
 ipv6_add_dev+0xe63/0x1370
 addrconf_notify+0x794/0x1010
 notifier_call_chain+0x1b6/0x3e0
 register_netdevice+0x1608/0x1ae0
 veth_newlink+0x42f/0xa50
 rtnl_newlink_create+0x310/0xb00
 rtnl_newlink+0x16d6/0x1c70
 rtnetlink_rcv_msg+0x7cf/0xb70
 netlink_rcv_skb+0x208/0x470
 netlink_unicast+0x75c/0x8e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 __sys_sendto+0x3bd/0x520
 __x64_sys_sendto+0xde/0x100
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 4056:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kmem_cache_free_bulk+0x2d1/0x520
 kvfree_rcu_bulk+0xe5/0x1f0
 kfree_rcu_monitor+0x211/0x2a0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 kvfree_call_rcu+0xbb/0x410
 __ipv6_dev_mc_dec+0x31f/0x390
 ipv6_mc_destroy_dev+0x33c/0x5a0
 addrconf_ifdown+0x139e/0x1880
 addrconf_notify+0x1bc/0x1010
 notifier_call_chain+0x1b6/0x3e0
 unregister_netdevice_many_notify+0x15d8/0x2320
 default_device_exit_batch+0x819/0x890
 ops_undo_list+0x525/0x990
 cleanup_net+0x4c5/0x800
 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 ffff88810b53b800
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff88810b53b800, ffff88810b53ba00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810b53ac00 pfn:0x10b538
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 ffffea0004417610 ffffea000437a410
raw: ffff88810b53ac00 0000000000100008 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea0004417610 ffffea000437a410
head: ffff88810b53ac00 0000000000100008 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea00042d4e01 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 0x252800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_THISNODE), pid 5834, tgid 5834 (syz-executor), ts 49432400638, free_ts 49203746855
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 allocate_slab+0x65/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_node_noprof+0x2fd/0x4e0
 alloc_slab_obj_exts+0x39/0xa0
 __memcg_slab_post_alloc_hook+0x31e/0x7f0
 kmem_cache_alloc_noprof+0x2bf/0x3c0
 anon_vma_clone+0xb8/0x4f0
 anon_vma_fork+0x79/0x500
 dup_mmap+0x9eb/0x1ac0
 copy_mm+0x13c/0x4b0
 copy_process+0x16d3/0x3b80
 kernel_clone+0x21e/0x870
 __x64_sys_clone+0x18b/0x1e0
page last free pid 5834 tgid 5834 stack trace:
 __free_frozen_pages+0xc71/0xe70
 __put_partials+0x161/0x1c0
 put_cpu_partial+0x17c/0x250
 __slab_free+0x2f7/0x400
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 __kernfs_new_node+0xd7/0x7e0
 kernfs_new_node+0x102/0x210
 kernfs_create_link+0xa7/0x200
 sysfs_do_create_link_sd+0x83/0x110
 device_add_class_symlinks+0x1cf/0x240
 device_add+0x475/0xb50
 rfkill_register+0x17a/0x8e0
 wiphy_register+0x1f3c/0x26b0

Memory state around the buggy address:
 ffff88810b53b700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810b53b780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88810b53b800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88810b53b880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810b53b900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
