loop5: detected capacity change from 0 to 224 ================================================================== BUG: KASAN: use-after-free in isofs_read_inode fs/isofs/inode.c:1350 [inline] BUG: KASAN: use-after-free in __isofs_iget fs/isofs/inode.c:1550 [inline] BUG: KASAN: use-after-free in __isofs_iget+0x1c84/0x2100 fs/isofs/inode.c:1525 Read of size 1 at addr ffff8880517d9015 by task syz-executor.5/27249 CPU: 0 PID: 27249 Comm: syz-executor.5 Not tainted 5.15.0-rc4-next-20211011-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0x8d/0x320 mm/kasan/report.c:247 __kasan_report mm/kasan/report.c:433 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:450 isofs_read_inode fs/isofs/inode.c:1350 [inline] __isofs_iget fs/isofs/inode.c:1550 [inline] __isofs_iget+0x1c84/0x2100 fs/isofs/inode.c:1525 isofs_iget fs/isofs/isofs.h:133 [inline] isofs_export_iget fs/isofs/export.c:29 [inline] isofs_export_iget fs/isofs/export.c:20 [inline] isofs_fh_to_dentry fs/isofs/export.c:170 [inline] isofs_fh_to_dentry+0x117/0x1f0 fs/isofs/export.c:162 exportfs_decode_fh_raw+0x127/0x7a0 fs/exportfs/expfs.c:436 exportfs_decode_fh+0x38/0x90 fs/exportfs/expfs.c:575 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x2b6/0x8b0 fs/fhandle.c:223 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f62793f18d9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6276968188 EFLAGS: 00000246 ORIG_RAX: 0000000000000130 RAX: ffffffffffffffda RBX: 00007f62794f5f60 RCX: 00007f62793f18d9 RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005 RBP: 00007f627944bcb4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdba67500f R14: 00007f6276968300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea000145f640 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x517d9 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013ca2c8 ffffea0001c7bd08 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x1141cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_WRITE), pid 19638, ts 1155909832869, free_ts 1156979136486 prep_new_page mm/page_alloc.c:2416 [inline] get_page_from_freelist+0xa72/0x2f50 mm/page_alloc.c:4147 __alloc_pages+0x1b2/0x500 mm/page_alloc.c:5382 alloc_pages+0x1a7/0x300 mm/mempolicy.c:2191 folio_alloc+0x1c/0x70 mm/mempolicy.c:2201 filemap_alloc_folio mm/filemap.c:1029 [inline] __filemap_get_folio+0x5f2/0xd60 mm/filemap.c:1943 pagecache_get_page+0x2c/0x1a0 mm/folio-compat.c:125 ext4_da_write_begin+0x3bc/0xad0 fs/ext4/inode.c:2961 generic_perform_write+0x202/0x510 mm/filemap.c:3746 ext4_buffered_write_iter+0x1ac/0x3b0 fs/ext4/file.c:269 ext4_file_write_iter+0x423/0x14e0 fs/ext4/file.c:680 call_write_iter include/linux/fs.h:2163 [inline] aio_write+0x350/0x7a0 fs/aio.c:1578 __io_submit_one fs/aio.c:1833 [inline] io_submit_one+0xe09/0x1b80 fs/aio.c:1880 __do_sys_io_submit fs/aio.c:1939 [inline] __se_sys_io_submit fs/aio.c:1909 [inline] __x64_sys_io_submit+0x185/0x330 fs/aio.c:1909 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1336 [inline] free_pcp_prepare+0x373/0x870 mm/page_alloc.c:1387 free_unref_page_prepare mm/page_alloc.c:3307 [inline] free_unref_page_list+0x1a9/0xfa0 mm/page_alloc.c:3423 release_pages+0x3f4/0x1480 mm/swap.c:979 __pagevec_release+0x77/0x100 mm/swap.c:999 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x320/0x1020 mm/truncate.c:339 ext4_evict_inode+0x513/0x1950 fs/ext4/inode.c:222 evict+0x2ed/0x6b0 fs/inode.c:592 iput_final fs/inode.c:1672 [inline] iput.part.0+0x539/0x850 fs/inode.c:1698 iput+0x58/0x70 fs/inode.c:1688 do_unlinkat+0x418/0x650 fs/namei.c:4176 __do_sys_unlink fs/namei.c:4217 [inline] __se_sys_unlink fs/namei.c:4215 [inline] __x64_sys_unlink+0xc6/0x110 fs/namei.c:4215 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae Memory state around the buggy address: ffff8880517d8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880517d8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880517d9000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880517d9080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880517d9100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================