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

CPU: 0 UID: 0 PID: 30621 Comm: modprobe 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+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:_raw_spin_unlock_irqrestore+0xa8/0x110
Code: 74 05 e8 cb f6 4a f6 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f6 44 24 21 02 75 4f f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 43 9f 13 f6 65 8b 05 0c 02 24 07 85 c0 74 40 48 c7 04 24 0e 36
RSP: 0018:ffffc9000473ec00 EFLAGS: 00000206
RAX: 6dc6b10ef2844900 RBX: 0000000000000a02 RCX: 6dc6b10ef2844900
RDX: 0000000000000000 RSI: ffffffff8be33660 RDI: 0000000000000001
RBP: ffffc9000473ec90 R08: ffffffff8fa38337 R09: 1ffffffff1f47066
R10: dffffc0000000000 R11: fffffbfff1f47067 R12: dffffc0000000000
R13: ffff88812d5148f8 R14: ffffffff99cac620 R15: 1ffff920008e7d80
 debug_object_activate+0x2e2/0x420
 call_rcu+0xaa/0x9c0
 mas_wr_store_entry+0x1f1b/0x25b0
 mas_store_gfp+0x7b1/0x860
 do_vmi_align_munmap+0x2a7/0x420
 do_vmi_munmap+0x253/0x2e0
 __vm_munmap+0x23b/0x3d0
 elf_load+0x2c3/0x6c0
 load_elf_interp+0x4ce/0xb60
 load_elf_binary+0x1a01/0x2740
 bprm_execve+0x99c/0x1450
 kernel_execve+0x8f0/0x9f0
 call_usermodehelper_exec_async+0x210/0x360
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 30206:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 alloc_work_entries+0xc0/0x360
 iw_cm_listen+0x42/0x230
 rdma_listen+0xa53/0xd30
 cma_listen_on_dev+0x3f5/0x720
 cma_add_one+0x647/0xa50
 add_client_context+0x36a/0x790
 enable_device_and_get+0x19b/0x3d0
 ib_register_device+0x10c3/0x1380
 siw_newlink+0x90a/0xd70
 nldev_newlink+0x4a5/0x5a0
 rdma_nl_rcv+0x6ae/0x980
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 30206:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 iwcm_deref_id+0x1c7/0x250
 _destroy_id+0x7f8/0xff0
 cma_process_remove+0x64c/0xbf0
 cma_add_one+0x7d6/0xa50
 add_client_context+0x36a/0x790
 enable_device_and_get+0x19b/0x3d0
 ib_register_device+0x10c3/0x1380
 siw_newlink+0x90a/0xd70
 nldev_newlink+0x4a5/0x5a0
 rdma_nl_rcv+0x6ae/0x980
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
 __sock_sendmsg+0x21c/0x270
 ____sys_sendmsg+0x505/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __x64_sys_sendmsg+0x19b/0x260
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888029115400 pfn:0x29114
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 ffffea0000f94e10 ffffea0000c7c410
raw: ffff888029115400 000000000010000d 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff88801a441c80 ffffea0000f94e10 ffffea0000c7c410
head: ffff888029115400 000000000010000d 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea0000a44501 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 0x252800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_THISNODE), pid 5848, tgid 5848 (syz-executor), ts 137517229879, free_ts 137386803932
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 allocate_slab+0x65/0x370
 ___slab_alloc+0xbeb/0x1410
 __kmalloc_node_noprof+0x2fd/0x4e0
 allocate_slab+0x16a/0x370
 ___slab_alloc+0xbeb/0x1410
 kmem_cache_alloc_noprof+0x283/0x3c0
 anon_vma_clone+0xb8/0x4f0
 anon_vma_fork+0x79/0x500
 dup_mmap+0x9eb/0x1ac0
 copy_mm+0x13c/0x4b0
 copy_process+0x1706/0x3c00
 kernel_clone+0x21e/0x840
 __x64_sys_clone+0x18b/0x1e0
page last free pid 12575 tgid 12575 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_noprof+0x1c1/0x3c0
 vm_area_alloc+0x24/0x140
 mmap_region+0xdc7/0x20c0
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x2a6/0x4d0
 ksys_mmap_pgoff+0x51f/0x760
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888029115300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888029115380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888029115400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff888029115480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888029115500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
