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

CPU: 1 UID: 0 PID: 20007 Comm: syz-executor Not tainted 6.16.0-syzkaller-06620-gae633388cae3-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:stack_trace_save+0x8/0xe0
Code: cc cc cc cc cc 90 0f 0b 90 45 31 ed eb e0 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 48 89 e5 <41> 56 53 48 83 e4 e0 48 81 ec 80 00 00 00 65 48 8b 05 a2 cc ed 10
RSP: 0018:ffffc90004f07960 EFLAGS: 00000246
RAX: ffffc90004f07970 RBX: 0000000000000cc0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000040 RDI: ffffc90004f07970
RBP: ffffc90004f07960 R08: 0000000000000001 R09: 0000000000000000
R10: ffffc90004f07970 R11: fffffbfff1f40f7f R12: ffff888011ed4d38
R13: 0000000000000138 R14: ffff888011ed4e70 R15: ffffc90004f07970
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 __d_alloc+0x36/0x7a0
 d_alloc+0x4b/0x190
 lookup_one_qstr_excl+0xdc/0x360
 filename_create+0x224/0x3c0
 do_symlinkat+0xbc/0x3f0
 __x64_sys_symlinkat+0x95/0xb0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff9b5f8e167
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 0a 01 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:00007fffe5c26838 EFLAGS: 00000202 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007ff9b5f8e167
RDX: 00007ff9b60136da RSI: 00000000ffffff9c RDI: 00007fffe5c268d0
RBP: 00007fffe5c2687c R08: 0000000000000013 R09: 00007fffe5c26587
R10: 0000000000000000 R11: 0000000000000202 R12: 000000000000065c
R13: 00000000000927c0 R14: 000000000004485e R15: 00007fffe5c268d0
 </TASK>

Allocated by task 19780:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_node_noprof+0x276/0x4e0
 allocate_slab+0x17c/0x3b0
 ___slab_alloc+0xbfc/0x1480
 kmem_cache_alloc_noprof+0x283/0x3c0
 __send_signal_locked+0x22a/0xeb0
 group_send_sig_info+0x1fd/0x260
 do_bpf_send_signal+0xa9/0x1c0
 irq_work_single+0xe1/0x240
 irq_work_run+0x155/0x2f0
 __sysvec_irq_work+0xa8/0x3d0
 sysvec_irq_work+0x9e/0xc0
 asm_sysvec_irq_work+0x1a/0x20

Freed by task 19924:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kfree+0x18e/0x440
 __free_slab+0xb9/0x1c0
 __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
 vm_area_alloc+0x24/0x140
 mmap_region+0xcc7/0x1f30
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x31b/0x4c0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1140ac
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 ffffea000453cf00 dead000000000002
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000040 ffff88801a441c80 ffffea000453cf00 dead000000000002
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea0004502b01 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 6723, tgid 6722 (syz.0.309), ts 71128027083, free_ts 68957217307
 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_sendmsg+0x155c/0x2810
 __sock_sendmsg+0x19c/0x270
 __sys_sendto+0x3bd/0x520
 __x64_sys_sendto+0xde/0x100
page last free pid 5270 tgid 5270 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
 getname_flags+0xb8/0x540
 do_sys_openat2+0xbc/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8881140aeb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881140aeb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8881140aec00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff8881140aec80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881140aed00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
