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

CPU: 0 UID: 0 PID: 16782 Comm: syz.8.4053 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+0x31/0x3e0
Code: 41 56 41 55 41 54 53 48 83 ec 30 49 89 f5 49 89 fe 65 48 8b 05 10 54 02 11 48 89 44 24 28 0f 1f 44 00 00 65 8b 05 13 54 02 11 <83> f8 08 0f 83 9a 02 00 00 89 c0 48 0f a3 05 fc d5 05 0e 73 16 e8
RSP: 0018:ffffc9000717f008 EFLAGS: 00000282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc90023924000 RSI: ffffffff81cea1f6 RDI: ffffffff8e139ee0
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff81cea1f6
R10: ffffc9000717f158 R11: ffffffff81ac3890 R12: 0000000000000512
R13: ffffffff81cea1f6 R14: ffffffff8e139ee0 R15: 0000000000000000
 is_bpf_text_address+0x28d/0x2b0
 kernel_text_address+0xa5/0xe0
 __kernel_text_address+0xd/0x40
 unwind_get_return_address+0x4d/0x90
 arch_stack_walk+0xfc/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __set_page_owner+0x8d/0x4a0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 folio_alloc_mpol_noprof+0x39/0x70
 shmem_alloc_and_add_folio+0x447/0xf60
 shmem_get_folio_gfp+0x59d/0x1660
 shmem_write_begin+0xf7/0x2b0
 generic_perform_write+0x2c5/0x900
 shmem_file_write_iter+0xf8/0x120
 vfs_write+0x54b/0xa90
 ksys_write+0x145/0x250
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd31c58d69f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 92 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 4c 93 02 00 48
RSP: 002b:00007fd31d332df0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000100000 RCX: 00007fd31c58d69f
RDX: 0000000000100000 RSI: 00007fd312200000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000c3d
R10: 0000000000000fd2 R11: 0000000000000293 R12: 0000000000000003
R13: 00007fd31d332ef0 R14: 00007fd31d332eb0 R15: 00007fd312200000
 </TASK>

Allocated by task 16270:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 copy_splice_read+0x143/0x9b0
 splice_direct_to_actor+0x4d0/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 16270:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 copy_splice_read+0x881/0x9b0
 splice_direct_to_actor+0x4d0/0xcc0
 do_splice_direct+0x181/0x270
 do_sendfile+0x4da/0x7e0
 __se_sys_sendfile64+0x13e/0x190
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8880346fbc00 pfn:0x346f8
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 ffffea0000c42210 ffffea0000c0f110
raw: ffff8880346fbc00 0000000000100003 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000c42210 ffffea0000c0f110
head: ffff8880346fbc00 0000000000100003 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000d1be01 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 5708, tgid 5708 (kworker/u8:2), ts 153539103329, free_ts 153251122299
 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 13 tgid 13 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 stack_depot_save_flags+0x436/0x860
 kasan_save_track+0x4f/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_node_noprof+0x1bb/0x3c0
 __alloc_skb+0x112/0x2d0
 inet6_netconf_notify_devconf+0x10f/0x1d0
 addrconf_exit_net+0xcf/0x2c0
 ops_undo_list+0x49a/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

Memory state around the buggy address:
 ffff8880346fb300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880346fb380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880346fb400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff8880346fb480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880346fb500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
