==================================================================
BUG: KASAN: slab-use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff8880278cc42a by task syz-executor/6583

CPU: 0 UID: 0 PID: 6583 Comm: syz-executor 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:__rcu_read_unlock+0x17/0xe0
Code: 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 41 57 41 56 41 55 41 54 53 49 bf 00 00 00 00 00 fc ff df <65> 48 8b 3c 25 08 50 a0 92 48 8d 9f 44 04 00 00 49 89 dc 49 c1 ec
RSP: 0018:ffffc9000327f370 EFLAGS: 00000282
RAX: a06702ebba88be00 RBX: 8000000028fdf007 RCX: a06702ebba88be00
RDX: 0000000000000000 RSI: ffffffff8be33660 RDI: ffffffff8be33620
RBP: ffffc9000327f630 R08: ffff88801bc4f5ff R09: 1ffff11003789ebf
R10: dffffc0000000000 R11: ffffed1003789ec0 R12: 00007f1ed58e3000
R13: ffff8880370a7510 R14: ffff88801a47e0c0 R15: dffffc0000000000
 copy_pmd_range+0x4439/0x71d0
 copy_page_range+0xc14/0x1270
 dup_mmap+0xf57/0x1ac0
 copy_mm+0x13c/0x4b0
 copy_process+0x1706/0x3c00
 kernel_clone+0x21e/0x840
 __x64_sys_clone+0x18b/0x1e0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1ed5d85453
Code: 1f 84 00 00 00 00 00 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 89 c2 85 c0 75 2c 64 48 8b 04 25 10 00 00
RSP: 002b:00007ffe9cd31988 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1ed5d85453
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
R10: 000055555d07f7d0 R11: 0000000000000246 R12: 0000000000000000
R13: 00000000000927c0 R14: 0000000000038169 R15: 00007ffe9cd31b20
 </TASK>

Allocated by task 6112:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 kernfs_fop_open+0x397/0xca0
 do_dentry_open+0x953/0x13f0
 vfs_open+0x3b/0x340
 path_openat+0x2ee5/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

Freed by task 6112:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 kernfs_fop_release+0x160/0x190
 __fput+0x44c/0xa70
 fput_close_sync+0x119/0x200
 __x64_sys_close+0x7f/0x110
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x278cc
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88801a441c80 0000000000000000 dead000000000001
raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88801a441c80 0000000000000000 dead000000000001
head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffea00009e3301 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 5914, tgid 5911 (syz.0.1), ts 46864725883, free_ts 46841161903
 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
 alloc_slab_obj_exts+0x39/0xa0
 __memcg_slab_post_alloc_hook+0x31e/0x7f0
 kmem_cache_alloc_noprof+0x2bf/0x3c0
 create_new_namespaces+0x31/0x720
 __se_sys_setns+0x2dc/0x17a0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5910 tgid 5909 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 stack_depot_save_flags+0x436/0x860
 kasan_save_track+0x4f/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 ntfs_alloc_inode+0x28/0x80
 alloc_inode+0x6a/0x1b0
 iget5_locked+0x4a/0xa0
 ntfs_iget5+0xc1/0x37c0
 dir_search_u+0x1df/0x2c0
 ntfs_lookup+0xfb/0x1f0
 __lookup_slow+0x297/0x3d0
 lookup_slow+0x53/0x70
 walk_component+0x2d2/0x400
 path_lookupat+0x163/0x430
 filename_lookup+0x212/0x570

Memory state around the buggy address:
 ffff8880278cc300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8880278cc380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8880278cc400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff8880278cc480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880278cc500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
