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

CPU: 0 UID: 0 PID: 20072 Comm: syz.2.3937 Not tainted 6.16.0-rc5-syzkaller-00212-g9f735b6f8a77 #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+0xd2/0x2b0
 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_depot_save_flags+0x168/0x900
Code: c8 31 c5 c1 c0 18 29 c5 48 8b 05 13 2c e8 14 8b 0d 05 2c e8 14 21 e9 48 c1 e1 04 4c 8d 3c 08 65 ff 05 dc 53 aa 0d 4c 8b 24 08 <4d> 39 fc 0f 84 88 00 00 00 45 89 d5 eb 2d 90 0f 0b 90 31 c0 e9 ce
RSP: 0000:ffffc90003b1f818 EFLAGS: 00000282
RAX: ffff888135400000 RBX: 0000000000000cc0 RCX: 00000000009724f0
RDX: 00000000c9e9d9f6 RSI: 0000000000000001 RDI: 0000000089475c97
RBP: 000000000859724f R08: 000000000103cf11 R09: 00000000fc8db8a7
R10: 000000000000000b R11: ffffffff81ad03a0 R12: ffff888028002d70
R13: ffff888039601d80 R14: ffffc90003b1f890 R15: ffff888135d724f0
 kasan_save_track+0x4f/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x1c1/0x3c0
 ptlock_alloc+0x20/0x70
 pte_alloc_one+0x7d/0x170
 __pte_alloc+0x25/0x1a0
 __handle_mm_fault+0x4b8a/0x5620
 handle_mm_fault+0x40a/0x8e0
 do_user_addr_fault+0xa81/0x1390
 exc_page_fault+0x76/0xf0
 asm_exc_page_fault+0x26/0x30
RIP: 0033:0x7fc345854fc1
Code: 48 8b 54 24 08 48 85 d2 74 17 8b 44 24 18 0f c8 89 c0 48 89 44 24 18 48 83 fa 01 0f 85 b3 01 00 00 48 8b 44 24 10 8b 54 24 18 <89> 10 e9 15 fd ff ff 48 8b 44 24 10 8b 10 48 8b 44 24 08 48 85 c0
RSP: 002b:00007fff54cbcac0 EFLAGS: 00010246
RAX: 00002000002a0fb8 RBX: 0000000000000004 RCX: 0000000000000000
RDX: 0000000000000016 RSI: 0000000000000000 RDI: 00005555835313c8
RBP: 00007fff54cbcbc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00007fc345bb5fac
R13: 00007fc345bb5fa0 R14: fffffffffffffffe R15: 00007fff54cbcc10
 </TASK>

Allocated by task 6892:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 rose_add_node+0x23a/0xde0
 rose_rt_ioctl+0xa48/0xfb0
 rose_ioctl+0x3ce/0x8b0
 sock_do_ioctl+0xdc/0x300
 sock_ioctl+0x576/0x790
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 19947:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x62/0x70
 kfree+0x18e/0x440
 rose_rt_device_down+0x473/0x4c0
 rose_device_event+0x603/0x6a0
 notifier_call_chain+0x1b6/0x3e0
 __dev_notify_flags+0x18d/0x2e0
 netif_change_flags+0xe8/0x1a0
 dev_change_flags+0x130/0x260
 dev_ioctl+0x7b4/0x1150
 sock_do_ioctl+0x22c/0x300
 sock_ioctl+0x576/0x790
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803794a400 pfn:0x37948
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff88801a441c80 ffffea0000dcf510 ffffea0000eb9110
raw: ffff88803794a400 000000000010000f 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000dcf510 ffffea0000eb9110
head: ffff88803794a400 000000000010000f 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000de5201 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 2, tgid 2 (kthreadd), ts 63987934042, 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/0x3b0
 ___slab_alloc+0xbfc/0x1480
 __kmalloc_cache_noprof+0x296/0x3d0
 set_kthread_struct+0xbb/0x340
 copy_process+0x10b7/0x3b80
 kernel_clone+0x21e/0x870
 kernel_thread+0x10c/0x160
 kthreadd+0x575/0x770
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888037948b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888037948b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888037948c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888037948c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888037948d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
