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

CPU: 0 UID: 0 PID: 21101 Comm: syz.0.5227 Not tainted 6.17.0-rc1-syzkaller-00207-g815957293639 #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+0x52/0xe0
Code: 89 dc 49 c1 ec 03 43 0f b6 04 3c 84 c0 75 4f ff 0b 75 1d 4c 8d b7 48 04 00 00 4c 89 f0 48 c1 e8 03 42 0f b6 04 38 84 c0 75 66 <41> 83 3e 00 75 27 43 0f b6 04 3c 84 c0 75 41 8b 03 3d 00 00 00 40
RSP: 0018:ffffc9000785efa8 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff8881225a0444 RCX: 3529831d817e6400
RDX: 0000000000000000 RSI: ffffffff8dba6149 RDI: ffff8881225a0000
RBP: dffffc0000000000 R08: ffffc9000785f190 R09: 0000000000000000
R10: ffffc9000785f158 R11: fffff52000f0be2d R12: 1ffff110244b4088
R13: ffffc90007858000 R14: ffff8881225a0448 R15: dffffc0000000000
 unwind_next_frame+0x19ae/0x2390
 __unwind_start+0x5b9/0x760
 arch_stack_walk+0xe4/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 udp_sendmsg+0x747/0x2170
 __sock_sendmsg+0x19c/0x270
 ____sys_sendmsg+0x52d/0x830
 ___sys_sendmsg+0x21f/0x2a0
 __sys_sendmmsg+0x227/0x430
 __x64_sys_sendmmsg+0xa0/0xc0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2c7998ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2c7a83c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f2c79bb5fa0 RCX: 00007f2c7998ebe9
RDX: 0000000000000300 RSI: 0000200000004d00 RDI: 0000000000000005
RBP: 00007f2c79a11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000f1c R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2c79bb6038 R14: 00007f2c79bb5fa0 R15: 00007ffde1bee9c8
 </TASK>

Allocated by task 20657:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_cache_noprof+0x230/0x3d0
 subflow_ulp_init+0xd0/0x5c0
 tcp_set_ulp+0x53c/0x5f0
 mptcp_subflow_create_socket+0x5c5/0xb40
 __mptcp_nmpc_sk+0x150/0x720
 mptcp_listen+0x112/0x5e0
 __x64_sys_listen+0x1c7/0x240
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 18450:
 kasan_save_track+0x3e/0x80
 kasan_save_free_info+0x46/0x50
 __kasan_slab_free+0x5b/0x80
 kmem_cache_free_bulk+0x2d1/0x520
 kvfree_rcu_bulk+0xe5/0x1f0
 kfree_rcu_monitor+0x211/0x2a0
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Last potentially related work creation:
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 kvfree_call_rcu+0xbb/0x410
 tcp_cleanup_ulp+0x7c/0xf0
 tcp_v4_destroy_sock+0x273/0x5d0
 inet_csk_destroy_sock+0x166/0x3a0
 __tcp_close+0xb19/0xde0
 __mptcp_close_ssk+0x3d7/0xfd0
 mptcp_destroy_common+0x152/0x320
 mptcp_destroy+0x84/0x120
 __mptcp_destroy_sock+0x156/0x350
 __mptcp_close+0x76a/0xb00
 mptcp_close+0x28/0x1a0
 inet_release+0x144/0x190
 sock_close+0xc3/0x240
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

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

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff8881197be400 pfn:0x1197bc
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 ffffea00048c2b10 ffffea0004640e10
raw: ffff8881197be400 000000000010000f 00000000f5000000 0000000000000000
head: 057ff00000000240 ffff88801a441c80 ffffea00048c2b10 ffffea0004640e10
head: ffff8881197be400 000000000010000f 00000000f5000000 0000000000000000
head: 057ff00000000002 ffffea000465ef01 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 8341, tgid 8340 (syz.0.750), ts 101656241977, free_ts 99753588319
 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_noprof+0x305/0x4f0
 hash_ip4_add+0x18ba/0x1ec0
 hash_ip4_uadt+0x640/0x850
 call_ad+0x383/0xb00
 ip_set_ad+0x791/0x930
 nfnetlink_rcv_msg+0xb4d/0x1130
 netlink_rcv_skb+0x208/0x470
 nfnetlink_rcv+0x26a/0x2520
 netlink_unicast+0x82f/0x9e0
 netlink_sendmsg+0x805/0xb30
page last free pid 5840 tgid 5840 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
 getname_flags+0xb8/0x540
 __x64_sys_unlinkat+0xac/0xf0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff8881197be300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff8881197be380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff8881197be400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                  ^
 ffff8881197be480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8881197be500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
