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

CPU: 1 UID: 0 PID: 7585 Comm: modprobe 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:native_apic_msr_write+0x39/0x50
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc cc f3 0f 1e fa 89 f6 31 d2 e9 d2 68 8e 03 66
RSP: 0018:ffffc900077c7528 EFLAGS: 00000246
RAX: 00000000000000f6 RBX: 0000000000000200 RCX: 000000000000083f
RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f
RBP: ffffc900077c75f0 R08: ffffc900077c7587 R09: 1ffff92000ef8eb0
R10: dffffc0000000000 R11: fffff52000ef8eb1 R12: ffffc900072b9001
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8881366314b0
 arch_irq_work_raise+0x6d/0x80
 __irq_work_queue_local+0x1d7/0x550
 irq_work_queue+0x99/0x140
 bpf_ringbuf_discard+0x11b/0x170
 bpf_prog_fe0ed97373b08409+0x4b/0x4f
 bpf_trace_run3+0x298/0x4e0
 __traceiter_kmem_cache_free+0x38/0x60
 kmem_cache_free+0x35c/0x400
 __fput_deferred+0x227/0x390
 fput_close+0x119/0x200
 path_openat+0x313c/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7feb7a05ea46
Code: 10 00 00 00 44 8b 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 0a 48 01 00 48 83 c8 ff c3 31
RSP: 002b:00007ffec1c43788 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffec1c439e8 RCX: 00007feb7a05ea46
RDX: 0000000000080000 RSI: 00007ffec1c43800 RDI: 00000000ffffff9c
RBP: 00007ffec1c437f0 R08: 0000000000080000 R09: 00007ffec1c43800
R10: 0000000000000000 R11: 0000000000000287 R12: 00007ffec1c43800
R13: 0000000000000005 R14: 00007ffec1c439cf R15: 00000000ffffffff
 </TASK>

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888112269800 pfn:0x112268
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0x57ff00000000240(workingset|head|node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000240 ffff88801a441c80 ffffea00044b0510 ffffea00049b9c10
raw: ffff888112269800 0000000000100005 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea00044b0510 ffffea00049b9c10
head: ffff888112269800 0000000000100005 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea0004489a01 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 16659, tgid 16658 (syz.1.4799), ts 201378339559, free_ts 193207735522
 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
 __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_sendmsg+0x52d/0x830
 ___sys_sendmsg+0x21f/0x2a0
page last free pid 5737 tgid 5737 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
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 sock_alloc_inode+0x28/0xc0
 alloc_inode+0x6a/0x1b0
 __sock_create+0x12d/0x9f0
 rds_tcp_conn_path_connect+0x282/0x680
 rds_connect_worker+0x1d8/0x290
 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:
 ffff888112267f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888112267f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888112268000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888112268080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888112268100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
