==================================================================
BUG: KASAN: use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88802f0d282a by task udevd/23946

CPU: 1 UID: 0 PID: 23946 Comm: udevd Not tainted 6.16.0-syzkaller-06600-g1dbf1d590d10-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:native_apic_msr_write+0x39/0x50
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc cc f3 0f 1e fa 89 f6 31 d2 e9 92 a2 8b 03 66
RSP: 0018:ffffc90006dd7b48 EFLAGS: 00000246
RAX: 00000000000000f6 RBX: 0000000000000200 RCX: 000000000000083f
RDX: 0000000000000000 RSI: 00000000000000f6 RDI: 000000000000083f
RBP: ffffc90006dd7c20 R08: ffffc90006dd7ba7 R09: 1ffff92000dbaf74
R10: dffffc0000000000 R11: fffff52000dbaf75 R12: ffff888136631401
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8881366314b0
 arch_irq_work_raise+0x6d/0x80
 __irq_work_queue_local+0x1d7/0x550
 irq_work_queue+0x99/0x140
 bpf_send_signal_common+0x3b4/0x540
 bpf_send_signal+0x1d/0x30
 bpf_prog_8cc4ff36b5985b6a+0x1e/0x24
 bpf_trace_run2+0x284/0x4b0
 __bpf_trace_sys_exit+0x38/0x60
 syscall_exit_work+0x184/0x1d0
 do_syscall_64+0x2ad/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1906723457
Code: 73 01 c3 48 8b 0d d1 d9 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 e8 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 76 48 8b 15 a2 d9 0c 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffd4199e168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00007f1906723457
RDX: 0000000000000004 RSI: 00007ffd4199e1a8 RDI: 0000000000000004
RBP: 00007ffd4199e1b4 R08: 0000000000000007 R09: 9caa01a0f3e9cd2f
R10: 00000000ffffffff R11: 0000000000000246 R12: 000055cacfbc2220
R13: 00007ffd4199e1a8 R14: 0000000000000001 R15: 000055cacfba4910
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802f0d2000 pfn:0x2f0d2
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 ffffea0000bc3490 0000000000000000
raw: ffff88802f0d2000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 25219, tgid 25219 (syz.0.5875), ts 457660684663, free_ts 461525553390
 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
 kmem_cache_alloc_node_noprof+0x280/0x3c0
 kmalloc_reserve+0xbd/0x290
 __alloc_skb+0x142/0x2d0
 mpls_netconf_notify_devconf+0x46/0x100
 mpls_dev_notify+0x533/0x7a0
 notifier_call_chain+0x1b6/0x3e0
 unregister_netdevice_many_notify+0x14d7/0x1ff0
 unregister_netdevice_queue+0x33c/0x380
 __tun_detach+0xda4/0x1560
 tun_chr_close+0x10a/0x1c0
page last free pid 25425 tgid 25424 stack trace:
 __free_frozen_pages+0xc71/0xe70
 __put_partials+0x161/0x1c0
 put_cpu_partial+0x17c/0x250
 __slab_free+0x2f7/0x400
 qlist_free_all+0x97/0x140
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_lru_noprof+0x1c6/0x3d0
 sock_alloc_inode+0x28/0xc0
 alloc_inode+0x6a/0x1b0
 __sock_create+0x12d/0x9f0
 __sys_socket+0xd7/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88802f0d2700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88802f0d2780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88802f0d2800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                  ^
 ffff88802f0d2880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88802f0d2900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
