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

CPU: 0 UID: 0 PID: 29695 Comm: modprobe Not tainted 6.16.0-syzkaller-06588-g759dfc7d04ba #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:unwind_next_frame+0x1721/0x2390
Code: 18 02 00 00 80 3d be 6d 2d 11 00 0f 85 0b 02 00 00 c6 05 b1 6d 2d 11 01 4c 89 f7 e8 89 0c 00 00 e9 f7 01 00 00 48 8b 54 24 08 <48> 8d 5a 02 48 83 c2 03 48 89 d8 48 c1 e8 03 0f b6 04 28 84 c0 0f
RSP: 0018:ffffc90002e5f3b8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffc90002e5f4c0 RCX: 0000000000000000
RDX: ffffffff903b7b40 RSI: 0000000000000001 RDI: ffffc90002e5f4e8
RBP: dffffc0000000000 R08: ffffc90002e5f4e7 R09: 0000000000000000
R10: ffffc90002e5f4d8 R11: fffff520005cbe9d R12: ffffc90002e5f8e0
R13: ffffc90002e5f4d8 R14: ffffc90002e5f488 R15: 1ffffffff2076f68
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kmem_cache_free+0x18f/0x400
 unlink_anon_vmas+0x614/0x670
 free_pgtables+0x7bf/0xaf0
 exit_mmap+0x444/0xb50
 __mmput+0x118/0x420
 exit_mm+0x1da/0x2c0
 do_exit+0x648/0x22e0
 do_group_exit+0x21c/0x2d0
 __x64_sys_exit_group+0x3f/0x40
 x64_sys_call+0x21f7/0x2200
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9a4a31da90
Code: Unable to access opcode bytes at 0x7f9a4a31da66.
RSP: 002b:00007ffcc59d7e98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f9a4a40e860 RCX: 00007f9a4a31da90
RDX: 00000000000000e7 RSI: 000000000000003c RDI: 0000000000000001
RBP: 00007f9a4a40e860 R08: 00007ffcc59d7d10 R09: 00007ffcc59d7df0
R10: 00007ffcc59d7d50 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f9a4a412658 R15: 0000000000000001
 </TASK>

Allocated by task 29595:
 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 29595:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 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 ffff88810cbc6c00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 42 bytes inside of
 freed 512-byte region [ffff88810cbc6c00, ffff88810cbc6e00)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10cbc4
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000040(head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000040 ffff88801a441c80 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff88801a441c80 dead000000000100 dead000000000122
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea000432f101 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 13606, tgid 13605 (syz.2.3442), ts 130791080142, free_ts 116358964299
 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/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_cache_noprof+0x296/0x3d0
 __genradix_ptr_alloc+0x352/0x4a0
 __genradix_prealloc+0x44/0x90
 sctp_stream_init+0x14b/0x440
 sctp_association_new+0x10dd/0x25f0
 sctp_connect_new_asoc+0x2c5/0x690
 __sctp_connect+0x5ba/0xd50
 sctp_getsockopt_connectx3+0x2c4/0x440
 sctp_getsockopt+0x98a/0xb60
 do_sock_getsockopt+0x372/0x450
page last free pid 12286 tgid 12286 stack trace:
 __free_frozen_pages+0xc71/0xe70
 vfree+0x25a/0x400
 pcpu_balance_free+0x6ae/0x940
 pcpu_balance_workfn+0xd01/0xe00
 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:
 ffff88810cbc6b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810cbc6b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88810cbc6c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88810cbc6c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810cbc6d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
