==================================================================
BUG: KASAN: use-after-free in rose_timer_expiry+0x471/0x4b0
Read of size 2 at addr ffff888035a8f82a by task modprobe/30265

CPU: 0 UID: 0 PID: 30265 Comm: modprobe 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:__sanitizer_cov_trace_cmp8+0x0/0x90
Code: 7c 11 10 48 89 74 11 18 48 89 44 11 20 c3 cc cc cc cc cc 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 08 50 a0 92 65 8b 15 88 a2
RSP: 0018:ffffc90003747438 EFLAGS: 00000293
RAX: 0000000000000004 RBX: ffffffff8cbb0081 RCX: 000000008cbb0001
RDX: ffff888020001cc0 RSI: 0000000000000010 RDI: 0000000000000000
RBP: ffffc90003747610 R08: ffff888020001cc0 R09: 0000000000000004
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000010 R15: ffffffff8cbb00e1
 mt_validate+0x22d4/0x4380
 validate_mm+0xb6/0x4b0
 mmap_region+0x15a5/0x20c0
 do_mmap+0xc45/0x10d0
 vm_mmap_pgoff+0x2a6/0x4d0
 ksys_mmap_pgoff+0x51f/0x760
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7faf89718b74
Code: 63 08 44 89 e8 5b 41 5c 41 5d c3 41 89 ca 41 f7 c1 ff 0f 00 00 74 0c c7 05 f5 46 01 00 16 00 00 00 eb 17 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 dc 46 01 00 48 83 c8 ff c3 0f
RSP: 002b:00007ffcf02c0ed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ffcf02c0f50 RCX: 00007faf89718b74
RDX: 0000000000000001 RSI: 0000000000025000 RDI: 00007faf89421000
RBP: 00007ffcf02c1270 R08: 0000000000000000 R09: 000000000002e000
R10: 0000000000000812 R11: 0000000000000246 R12: 00007faf896f44b0
R13: 00007ffcf02c12f8 R14: 000000000002d9c6 R15: 0000000000000000
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888035a8fa00 pfn:0x35a8f
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000
raw: ffff888035a8fa00 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 29589, tgid 29588 (syz.2.5244), ts 519465740167, free_ts 524465084689
 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_node_track_caller_noprof+0x2f8/0x4e0
 krealloc_noprof+0x124/0x340
 copy_array+0x63/0xf0
 copy_verifier_state+0xaf/0xf10
 do_check+0x4017/0xe520
 do_check_common+0x1949/0x24f0
 bpf_check+0x1746a/0x1d2d0
 bpf_prog_load+0x1318/0x1930
 __sys_bpf+0x528/0x870
 __x64_sys_bpf+0x7c/0x90
page last free pid 29823 tgid 29823 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
 __kmalloc_cache_noprof+0x1be/0x3d0
 tomoyo_dump_page+0xe6/0x6c0
 tomoyo_condition+0x2646/0x3300
 tomoyo_check_acl+0x182/0x400
 tomoyo_execute_permission+0x130/0x420
 tomoyo_find_next_domain+0x488/0x1aa0
 tomoyo_bprm_check_security+0x11c/0x180
 security_bprm_check+0x89/0x270
 bprm_execve+0x8ee/0x1450
 kernel_execve+0x8f0/0x9f0
 call_usermodehelper_exec_async+0x210/0x360

Memory state around the buggy address:
 ffff888035a8f700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888035a8f780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888035a8f800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                  ^
 ffff888035a8f880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888035a8f900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
