==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff888039b4282a by task sshd/5776

CPU: 0 UID: 0 PID: 5776 Comm: sshd Not tainted 6.17.0-rc1-syzkaller-00207-g815957293639 #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:stack_depot_save_flags+0x5b/0x860
Code: 41 89 d5 49 89 fe 89 4c 24 04 e8 40 9a ad fc 41 89 c2 31 c0 45 85 d2 0f 84 f1 03 00 00 80 3d 9b 7d df 14 00 0f 85 e4 03 00 00 <43> 8d 34 12 42 8d 2c d5 7b 71 f5 75 83 fe 04 72 6f 89 e8 89 e9 4c
RSP: 0018:ffffc9000316f3a8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 000000000000000e RDI: ffffc9000316f410
RBP: ffffc9000316f638 R08: 0000000000000000 R09: ffffffff81cea1d6
R10: 000000000000000e R11: ffffffff81ac3870 R12: dffffc0000000000
R13: 0000000000000000 R14: ffffc9000316f410 R15: ffffc9000316f410
 kasan_save_stack+0x4d/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 kmem_cache_free+0x309/0x400
 exit_mmap+0x53f/0xb50
 __mmput+0x118/0x420
 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:0x7f88ee157bf2
Code: Unable to access opcode bytes at 0x7f88ee157bc8.
RSP: 002b:00007fff970df548 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: 000000000000021c RBX: 000000000000021c RCX: 00007f88ee157bf2
RDX: 000000000000021c RSI: 000055d6a8a00fa0 RDI: 0000000000000004
RBP: 000055d6a89e0110 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000055d6a7bbaaa4
R13: 00000000000001d6 R14: 000055d6a7bbb3e8 R15: 00007fff970df5b8
 </TASK>

Allocated by task 2010:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x27a/0x4f0
 copy_splice_read+0x143/0xa50
 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 2010:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 copy_splice_read+0x903/0xa50
 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 ffff888039b42800
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff888039b42800, ffff888039b42a00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888039b43000 pfn:0x39b40
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 ffffea0000f06a10 ffffea0000ea1e10
raw: ffff888039b43000 000000000010000a 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000f06a10 ffffea0000ea1e10
head: ffff888039b43000 000000000010000a 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000e6d001 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 5902, tgid 5902 (kworker/u9:4), ts 57245394995, free_ts 0
 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
 alloc_bprm+0x7d/0x5c0
 kernel_execve+0x9b/0x9f0
 call_usermodehelper_exec_async+0x210/0x360
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888039b42700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888039b42780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888039b42800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888039b42880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888039b42900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
