==================================================================
BUG: KASAN: use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff88801abdc02a by task syz.2.7251/22455

CPU: 0 UID: 0 PID: 22455 Comm: syz.2.7251 Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-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_acquire+0x58/0x360
Code: 8b 05 2c f5 02 11 48 89 44 24 58 0f 1f 44 00 00 65 8b 05 2f f5 02 11 83 f8 08 0f 83 b8 01 00 00 89 c0 48 0f a3 05 18 24 06 0e <73> 16 e8 61 02 09 00 84 c0 75 0d f6 05 f7 09 f0 0d 01 0f 84 d7 01
RSP: 0000:ffffc900076c78b8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e139ee0
RBP: ffffffff822e4bbd R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff9400016c129 R12: 0000000000000002
R13: ffffffff8e139ee0 R14: 0000000000000000 R15: 0000000000000000
 page_table_check_set+0x1aa/0x730
 set_pte_range+0x6a5/0x700
 filemap_map_pages+0xf32/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:0x7fc5ea66ef3d
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:00007ffe90336940 EFLAGS: 00010202
RAX: 000000110c284000 RBX: 00007fc5eb4e5720 RCX: 0000000000000007
RDX: 0000000000000fba RSI: 0000000000003b3e RDI: 0000000000000080
RBP: ffffffff84fecfba R08: 00007fc5ea9b6038 R09: 00007fc5ea9a2000
R10: 00007fc5ea1f7008 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffffffff84fecfba R15: 000000000000009d
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2000008e7 pfn:0x1abdc
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: f0(buddy)
raw: 00fff00000000000 ffffea0000b32708 ffffea0000d79508 0000000000000000
raw: 00000002000008e7 0000000000000002 00000000f0000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x140dc2(GFP_HIGHUSER|__GFP_ZERO|__GFP_COMP), pid 20280, tgid 20279 (syz.1.6286), ts 285320999922, free_ts 285647835329
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 vma_alloc_folio_noprof+0xe4/0x200
 folio_prealloc+0x30/0x180
 __handle_mm_fault+0x2ab9/0x5440
 handle_mm_fault+0x40a/0x8e0
 __get_user_pages+0x1699/0x2ce0
 __gup_longterm_locked+0x3dc/0x1660
 pin_user_pages+0x9e/0xd0
 xdp_umem_pin_pages+0x117/0x340
 xdp_umem_create+0x677/0x8e0
 xsk_setsockopt+0x7b0/0x8d0
 do_sock_setsockopt+0x17c/0x1b0
 __x64_sys_setsockopt+0x13f/0x1b0
page last free pid 20295 tgid 20279 stack trace:
 free_unref_folios+0xdbd/0x1520
 folios_put_refs+0x559/0x640
 free_pages_and_swap_cache+0x277/0x520
 tlb_flush_mmu+0x3a0/0x680
 tlb_finish_mmu+0xc3/0x1d0
 vms_clear_ptes+0x42c/0x540
 mmap_region+0x972/0x20c0
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x2a6/0x4d0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88801abdbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88801abdbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88801abdc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                  ^
 ffff88801abdc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88801abdc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
