==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88810dd82c2a by task syz.2.4181/18116

CPU: 0 UID: 0 PID: 18116 Comm: syz.2.4181 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-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:kasan_check_range+0xa5/0x2c0
Code: 34 19 4d 89 f4 4d 29 dc 49 83 fc 10 7f 29 4d 85 e4 0f 84 41 01 00 00 4c 89 cb 48 f7 d3 4c 01 fb 41 80 3b 00 0f 85 de 01 00 00 <49> ff c3 48 ff c3 75 ee e9 21 01 00 00 44 89 dd 83 e5 07 0f 84 b5
RSP: 0000:ffffc9000904f300 EFLAGS: 00000246
RAX: 1ffff92001209e01 RBX: fffffffffffffffe RCX: ffffffff8172cd88
RDX: 0000000000000001 RSI: 0000000000000010 RDI: ffffc9000904f478
RBP: 0000000000000000 R08: ffffc9000904f487 R09: 1ffff92001209e90
R10: dffffc0000000000 R11: fffff52001209e8f R12: 0000000000000002
R13: ffffc9000904f478 R14: fffff52001209e91 R15: 1ffff92001209e8f
 __asan_memset+0x22/0x50
 unwind_next_frame+0xc98/0x2390
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 save_stack+0xf5/0x1f0
 __set_page_owner+0x8d/0x4a0
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 alloc_pages_noprof+0xa9/0x190
 __pmd_alloc+0x3a/0x3b0
 __handle_mm_fault+0x9ad/0x5440
 handle_mm_fault+0x40a/0x8e0
 do_user_addr_fault+0xa81/0x1390
 exc_page_fault+0x76/0xf0
 asm_exc_page_fault+0x26/0x30
RIP: 0033:0x7fbe03a65723
Code: 8b 44 24 68 8b b4 24 98 00 00 00 89 30 e9 01 fb ff ff 48 89 c2 48 8d 35 34 dd 1a 00 48 8d 3d ea dd 1a 00 31 c0 e8 1d 99 fe ff <89> 32 e9 b8 ef ff ff 48 8d 05 1f 50 23 00 48 8d 3d e8 ff e7 00 c6
RSP: 002b:00007ffe696629f0 EFLAGS: 00010246
RAX: 00000000003ffde8 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000001b32424000 RSI: 0000000000400000 RDI: 00007fbe03c9a750
RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000040000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 00000000000927c0 R14: 00000000000449aa R15: 00007ffe69662ca0
 </TASK>

Allocated by task 17519:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 sctp_endpoint_new+0x86/0xa20
 sctp_init_sock+0x960/0x11f0
 inet_create+0xd03/0x1000
 __sock_create+0x4b3/0x9f0
 __sys_socket+0xd7/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 23:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 rcu_core+0xcab/0x1770
 handle_softirqs+0x286/0x870
 run_ksoftirqd+0x9b/0x100
 smpboot_thread_fn+0x542/0xa60
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 sctp_destroy_sock+0x1ec/0x370
 sk_common_release+0x75/0x2e0
 sctp_close+0x783/0x900
 inet_release+0x144/0x190
 sock_close+0xc3/0x240
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810dd82c00 pfn:0x10dd80
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 ffffea000427bc10 ffffea0004189310
raw: ffff88810dd82c00 000000000010000b 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea000427bc10 ffffea0004189310
head: ffff88810dd82c00 000000000010000b 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea0004376001 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 1, tgid 1 (swapper/0), ts 17244306959, 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
 device_add+0xbe/0xb50
 __video_register_device+0x3c1b/0x4ae0
 vivid_create_devnodes+0x1572/0x2bf0
 vivid_probe+0x5035/0x7180
 platform_probe+0xf9/0x190
 really_probe+0x26d/0x9e0
 __driver_probe_device+0x18c/0x2f0
 driver_probe_device+0x4f/0x430
 __driver_attach+0x452/0x700
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88810dd82b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810dd82b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88810dd82c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88810dd82c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810dd82d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
