==================================================================
BUG: KASAN: slab-use-after-free in rose_t0timer_expiry+0x240/0x350
Write of size 1 at addr ffff88801e1ea435 by task swapper/0/0

CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #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+0xe8/0x150
 print_report+0xba/0x230
 kasan_report+0x117/0x150
 rose_t0timer_expiry+0x240/0x350
 call_timer_fn+0x192/0x5a0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x22a/0x7c0
 __irq_exit_rcu+0x5f/0x150
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:pv_native_safe_halt+0xf/0x20
Code: 58 5e 02 e9 d3 e5 02 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d d3 c7 0f 00 fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90
RSP: 0018:ffffffff8e007dc0 EFLAGS: 00000202
RAX: 00000000002b82b9 RBX: ffffffff81984a0d RCX: 0000000080000001
RDX: 0000000000000001 RSI: ffffffff8dad1f47 RDI: ffffffff8be73880
RBP: ffffffff8e007eb0 R08: ffff8881210336db R09: 1ffff110242066db
R10: dffffc0000000000 R11: ffffed10242066dc R12: ffffffff8fcee570
R13: 1ffffffff1c12a78 R14: 0000000000000000 R15: 0000000000000000
 default_idle+0x9/0x20
 default_idle_call+0x72/0xb0
 do_idle+0x1bd/0x500
 cpu_startup_entry+0x43/0x60
 rest_init+0x2de/0x300
 start_kernel+0x380/0x3d0
 x86_64_start_reservations+0x24/0x30
 x86_64_start_kernel+0x143/0x1c0
 common_startup_64+0x13e/0x147
 </TASK>

Allocated by task 11033:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x3d1/0x6e0
 rose_add_node+0x23c/0xf00
 rose_rt_ioctl+0xd35/0x12a0
 rose_ioctl+0x3fb/0x8f0
 sock_do_ioctl+0x101/0x320
 sock_ioctl+0x5c6/0x7f0
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 0:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1be/0x650
 rose_timer_expiry+0x4cb/0x600
 call_timer_fn+0x192/0x5a0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x22a/0x7c0
 __irq_exit_rcu+0x5f/0x150
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 asm_sysvec_apic_timer_interrupt+0x1a/0x20

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e1e8
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff888100041c80 ffffea000433a200 dead000000000002
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888100041c80 ffffea000433a200 dead000000000002
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000787a01 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 9875, tgid 9874 (syz.1.1028), ts 330181725420, free_ts 328836849713
 post_alloc_hook+0x228/0x280
 get_page_from_freelist+0x24dc/0x2580
 __alloc_frozen_pages_noprof+0x18d/0x380
 alloc_pages_mpol+0x232/0x4a0
 allocate_slab+0x86/0x3a0
 ___slab_alloc+0xd82/0x1760
 __slab_alloc+0x65/0x100
 __kmalloc_cache_noprof+0x40d/0x6e0
 __genradix_ptr_alloc+0x352/0x4a0
 __genradix_prealloc+0x44/0x90
 sctp_stream_init+0x14b/0x440
 sctp_connect_new_asoc+0x3c0/0x6b0
 sctp_sendmsg+0x1577/0x2920
 __sock_sendmsg+0x19c/0x270
 ____sys_sendmsg+0x500/0x810
 ___sys_sendmsg+0x2a5/0x360
page last free pid 5929 tgid 5929 stack trace:
 __free_frozen_pages+0xbb0/0xd10
 kasan_depopulate_vmalloc_pte+0x6d/0x90
 __apply_to_page_range+0xbdc/0x1420
 __kasan_release_vmalloc+0xa2/0xd0
 purge_vmap_node+0x21c/0x8e0
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0x89f/0xd90
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88801e1ea300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88801e1ea380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88801e1ea400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                     ^
 ffff88801e1ea480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88801e1ea500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
