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

CPU: 0 UID: 0 PID: 27005 Comm: syz.1.9207 Not tainted 6.17.0-rc1-syzkaller-00207-g815957293639-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:lock_is_held_type+0x137/0x190
Code: 01 75 44 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 4c 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 05 f9 e3 26 07 <48> 3b 44 24 08 75 43 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0000:ffffc90003b0f938 EFLAGS: 00000206
RAX: 81a29a5521193600 RBX: 0000000000000000 RCX: 81a29a5521193600
RDX: ffff8881052c5640 RSI: ffffffff8dba6151 RDI: ffffffff8be33400
RBP: 00000000ffffffff R08: ffffea0000ae6747 R09: 1ffffd400015cce8
R10: dffffc0000000000 R11: fffff9400015cce9 R12: 0000000000000246
R13: ffff8881052c5640 R14: ffff8880119734a8 R15: 0000000000000005
 xas_reload+0xfc/0x470
 next_uptodate_folio+0x15f/0x5d0
 filemap_map_pages+0x102b/0x1740
 __handle_mm_fault+0x34ac/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:0x7fc8c086ef3d
Code: ff 48 83 e8 01 48 89 ee bf 01 00 00 00 48 c1 e0 0e 48 c1 ee 06 48 01 c8 48 89 e9 81 e6 ff 3f 00 00 48 c1 e9 03 83 e1 07 d3 e7 <40> 84 bc 06 20 20 00 00 0f 85 11 fd ff ff e9 c0 fd ff ff e8 1b 2b
RSP: 002b:00007ffc141cf5e0 EFLAGS: 00010202
RAX: 000000110c2e4000 RBX: 00007fc8c16e5720 RCX: 0000000000000006
RDX: 0000000000000af3 RSI: 0000000000003d2b RDI: 0000000000000040
RBP: ffffffff8b6f4af2 R08: 00007fc8c0bb6038 R09: 00007fc8c0ba2000
R10: 00007fc8c03ff008 R11: 0000000000000002 R12: 0000000000000002
R13: 0000000000000000 R14: ffffffff8b6f4af2 R15: 000000000000092b
 </TASK>

Allocated by task 5904:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_node_noprof+0x276/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
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 5828:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kfree+0x18e/0x440
 __free_slab+0xb0/0x1a0
 __slab_free+0x303/0x3c0
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_node_noprof+0x1bb/0x3c0
 __alloc_skb+0x112/0x2d0
 tcp_stream_alloc_skb+0x3d/0x340
 tcp_sendmsg_locked+0xf38/0x5620
 tcp_sendmsg+0x2f/0x50
 __sock_sendmsg+0x19c/0x270
 sock_write_iter+0x258/0x330
 vfs_write+0x5c9/0xb30
 ksys_write+0x145/0x250
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88810d19d000 pfn:0x10d19c
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 ffffea0004397610 ffffea0004472c10
raw: ffff88810d19d000 000000000010000c 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea0004397610 ffffea0004472c10
head: ffff88810d19d000 000000000010000c 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea0004346701 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 5874, tgid 5874 (syz-executor), ts 68244881610, free_ts 68164920510
 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
 binderfs_binder_device_create+0x1df/0xb00
 binderfs_fill_super+0xa0e/0xe90
 get_tree_nodev+0xbb/0x150
 vfs_get_tree+0x92/0x2b0
 do_new_mount+0x2a2/0x9e0
 __se_sys_mount+0x317/0x410
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 5874 tgid 5874 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
 __kernfs_new_node+0xd7/0x7e0
 kernfs_new_node+0x102/0x210
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x238/0x300
 internal_create_group+0x66d/0x1110
 sysfs_create_groups+0x59/0x120
 device_add_attrs+0xe0/0x5a0
 device_add+0x496/0xb50
 netdev_register_kobject+0x178/0x310
 register_netdevice+0x126c/0x1ae0

Memory state around the buggy address:
 ffff88810d19e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810d19e780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff88810d19e800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff88810d19e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88810d19e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
