================================================================== BUG: KASAN: use-after-free in file_inode include/linux/fs.h:1349 [inline] BUG: KASAN: use-after-free in lock_get_status+0x206/0x960 fs/locks.c:2870 Read of size 8 at addr ffff888151ff5b20 by task syz.1.14712/6477 CPU: 0 PID: 6477 Comm: syz.1.14712 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:77 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:435 [inline] kasan_report+0x100/0x140 mm/kasan/report.c:452 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309 file_inode include/linux/fs.h:1349 [inline] lock_get_status+0x206/0x960 fs/locks.c:2870 locks_show+0x1eb/0x2f0 fs/locks.c:2945 traverse+0x1f2/0x590 fs/seq_file.c:111 seq_read_iter+0xbcd/0xce0 fs/seq_file.c:195 proc_reg_read_iter+0x1be/0x290 fs/proc/inode.c:310 do_iter_readv_writev+0x477/0x5f0 fs/read_write.c:-1 do_iter_read+0x168/0x5d0 fs/read_write.c:801 vfs_readv fs/read_write.c:921 [inline] do_preadv+0x233/0x390 fs/read_write.c:1013 __do_sys_preadv fs/read_write.c:1063 [inline] __se_sys_preadv fs/read_write.c:1058 [inline] __x64_sys_preadv+0x9e/0xb0 fs/read_write.c:1058 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f307b452519 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3079e7f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00007f307b6df090 RCX: 00007f307b452519 RDX: 0000000000000001 RSI: 000020000001b7c0 RDI: 0000000000000008 RBP: 00007f307b4e2136 R08: 0000000000000105 R09: 0000000000000000 R10: 0000000000008e99 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f307b6df128 R14: 00007f307b6df090 R15: 00007ffc6ab5d3e8 The buggy address belongs to the page: page:ffffea000547fd40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x151ff5 flags: 0x4000000000000000() raw: 4000000000000000 dead000000000100 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 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 0x500dc0(GFP_USER|__GFP_ZERO|__GFP_ACCOUNT), pid 21874, ts 782766341699, free_ts 1426199036558 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2456 [inline] prep_new_page+0x176/0x190 mm/page_alloc.c:2462 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384 __alloc_pages include/linux/gfp.h:544 [inline] __alloc_pages_node include/linux/gfp.h:557 [inline] alloc_pages_node include/linux/gfp.h:571 [inline] alloc_pages include/linux/gfp.h:590 [inline] __get_free_pages mm/page_alloc.c:5427 [inline] get_zeroed_page+0x19/0x40 mm/page_alloc.c:5436 pud_alloc_one include/asm-generic/pgalloc.h:166 [inline] __pud_alloc+0x37/0x1a0 mm/memory.c:5419 pud_alloc include/linux/mm.h:2308 [inline] copy_pud_range mm/memory.c:1112 [inline] copy_p4d_range mm/memory.c:1156 [inline] copy_page_range+0x24ce/0x27a0 mm/memory.c:1229 dup_mmap kernel/fork.c:620 [inline] dup_mm kernel/fork.c:1435 [inline] copy_mm+0xbfc/0x13d0 kernel/fork.c:1491 copy_process+0x1386/0x3320 kernel/fork.c:2268 kernel_clone+0x233/0x950 kernel/fork.c:2650 __do_sys_clone kernel/fork.c:2776 [inline] __se_sys_clone kernel/fork.c:2760 [inline] __x64_sys_clone+0x198/0x210 kernel/fork.c:2760 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xcb page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1349 [inline] free_pcp_prepare mm/page_alloc.c:1421 [inline] free_unref_page_prepare+0x2b7/0x2d0 mm/page_alloc.c:3336 free_unref_page_list+0x129/0x9c0 mm/page_alloc.c:3443 release_pages+0xe41/0xe90 mm/swap.c:1103 free_pages_and_swap_cache+0x86/0xa0 mm/swap_state.c:356 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x17e/0x310 mm/mmu_gather.c:326 exit_mmap+0x329/0x590 mm/mmap.c:3395 __mmput+0x92/0x2d0 kernel/fork.c:1153 mmput+0x4e/0x150 kernel/fork.c:1176 exit_mm kernel/exit.c:546 [inline] do_exit+0x9d8/0x24e0 kernel/exit.c:866 do_group_exit+0x149/0x310 kernel/exit.c:993 get_signal+0xfb1/0x1300 kernel/signal.c:2806 arch_do_signal_or_restart+0xe7/0x11b0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa2/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x76/0xa0 kernel/entry/common.c:202 syscall_exit_to_user_mode+0x1d/0x40 kernel/entry/common.c:277 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:291 Memory state around the buggy address: ffff888151ff5a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888151ff5a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888151ff5b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888151ff5b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888151ff5c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================