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

CPU: 0 UID: 0 PID: 5872 Comm: syz-executor Not tainted 6.16.0-syzkaller-12063-g37816488247d #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_irq+0x29/0x50
Code: 90 f3 0f 1e fa 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 aa 1c 22 f6 48 89 df e8 02 b4 22 f6 e8 ed 05 4c f6 fb bf 01 00 00 00 <e8> 52 ad 14 f6 65 8b 05 cb a0 24 07 85 c0 74 07 5b c3 cc cc cc cc
RSP: 0018:ffffc90003b5f718 EFLAGS: 00000286
RAX: 8d7c1a9fc3194300 RBX: ffff88812937e5a0 RCX: 8d7c1a9fc3194300
RDX: 0000000000000006 RSI: ffffffff8d9b4943 RDI: 0000000000000001
RBP: ffffc90003b5fb30 R08: ffffffff8fa34737 R09: 1ffffffff1f468e6
R10: dffffc0000000000 R11: fffffbfff1f468e7 R12: dffffc0000000000
R13: 1ffff1102526fcb3 R14: ffff88812937e598 R15: ffff88812937e5a0
 filemap_remove_folio+0xee/0x1f0
 truncate_inode_folio+0x5d/0x70
 shmem_undo_range+0x3a9/0x14b0
 shmem_evict_inode+0x272/0xa70
 evict+0x504/0x9c0
 do_unlinkat+0x39f/0x560
 __x64_sys_unlink+0x47/0x50
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f88c598e197
Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 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:00007ffc86046fc8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f88c598e197
RDX: 00007ffc86046ff0 RSI: 00007ffc86047080 RDI: 00007ffc86047080
RBP: 00007ffc86047080 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffc86048110
R13: 00007f88c5a11c05 R14: 0000000000053943 R15: 00007ffc86048150
 </TASK>

Allocated by task 21676:
 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 21676:
 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 ffff888028dac400
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff888028dac400, ffff888028dac600)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888028daf800 pfn:0x28dac
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 ffffea0000bfd210 ffffea0000a21d10
raw: ffff888028daf800 0000000000100007 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000bfd210 ffffea0000a21d10
head: ffff888028daf800 0000000000100007 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000a36b01 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 5872, tgid 5872 (syz-executor), ts 73855503643, free_ts 73320263510
 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_dev+0x24f/0x340
 addrconf_init_auto_addrs+0x57c/0xa30
 addrconf_notify+0xacc/0x1010
 notifier_call_chain+0x1b6/0x3e0
 __dev_notify_flags+0x18d/0x2e0
 netif_change_flags+0xe8/0x1a0
page last free pid 5876 tgid 5876 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
 __kmalloc_cache_noprof+0x1be/0x3d0
 ref_tracker_alloc+0x133/0x460
 register_netdevice+0x14a3/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+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270

Memory state around the buggy address:
 ffff888028dac300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888028dac380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888028dac400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888028dac480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888028dac500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
