==================================================================
BUG: KASAN: slab-use-after-free in rose_t0timer_expiry+0x1ea/0x560
Read of size 8 at addr ffff888030452018 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+0x1ea/0x560
 call_timer_fn+0x192/0x640
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x22a/0x870
 __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: 3e 6d 02 c3 cc cc cc cc 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 c3 e0 1b 00 fb f4 <e9> fc e9 02 00 cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90
RSP: 0018:ffffffff8e407dc0 EFLAGS: 00000202
RAX: 000000000028a06b RBX: ffffffff819a886d RCX: 0000000080000001
RDX: 0000000000000001 RSI: ffffffff8def3612 RDI: ffffffff8c27b080
RBP: ffffffff8e407eb0 R08: ffff88812103395b R09: 1ffff1102420672b
R10: dffffc0000000000 R11: ffffed102420672c R12: ffffffff901190b0
R13: 1ffffffff1c929d8 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+0x385/0x3d0
 x86_64_start_reservations+0x24/0x30
 x86_64_start_kernel+0x143/0x1c0
 common_startup_64+0x13e/0x147
 </TASK>

Allocated by task 15212:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x31c/0x660
 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+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 22835:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5c/0x80
 kfree+0x1c1/0x630
 rose_timer_expiry+0x4cb/0x600
 call_timer_fn+0x192/0x640
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x22a/0x870
 __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 ffff888030452000
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 24 bytes inside of
 freed 512-byte region [ffff888030452000, ffff888030452200)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x30450
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 dead000000000100 dead000000000122
raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff888100041c80 dead000000000100 dead000000000122
head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000c11401 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 5810, tgid 5810 (udevd), ts 239791091304, free_ts 230602969948
 post_alloc_hook+0x231/0x280
 get_page_from_freelist+0x24dc/0x2580
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x77/0x660
 refill_objects+0x331/0x3c0
 __pcs_replace_empty_main+0x2b9/0x620
 __kmalloc_cache_noprof+0x392/0x660
 kernfs_fop_open+0x397/0xca0
 do_dentry_open+0x785/0x14e0
 vfs_open+0x3b/0x340
 path_openat+0x2e08/0x3860
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x113/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5549 tgid 5549 stack trace:
 __free_frozen_pages+0xc2b/0xdb0
 __slab_free+0x263/0x2b0
 qlist_free_all+0x97/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 __kmalloc_node_track_caller_noprof+0x493/0x7b0
 __alloc_skb+0x2c1/0x7d0
 alloc_skb_with_frags+0xca/0x890
 sock_alloc_send_pskb+0x878/0x990
 unix_dgram_sendmsg+0x460/0x18e0
 sock_write_iter+0x503/0x550
 do_iter_readv_writev+0x619/0x8c0
 vfs_writev+0x33c/0x990
 do_writev+0x154/0x2e0
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888030451f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888030451f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888030452000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff888030452080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888030452100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
