UDF-fs: error (device loop0): udf_read_inode: (ino 1440) failed !bh UDF-fs: error (device loop0): udf_read_inode: (ino 1440) failed !bh ================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88807134c000 by task syz-executor.0/3858 CPU: 1 PID: 3858 Comm: syz-executor.0 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2048 [inline] udf_sync_fs+0x1ce/0x380 fs/udf/super.c:2404 sync_filesystem+0xe8/0x220 fs/sync.c:56 generic_shutdown_super+0x6e/0x2c0 fs/super.c:448 kill_block_super+0x7a/0xe0 fs/super.c:1425 deactivate_locked_super+0xa0/0x110 fs/super.c:335 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143 task_work_run+0x129/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x6a3/0x2480 kernel/exit.c:874 do_group_exit+0x144/0x310 kernel/exit.c:996 __do_sys_exit_group kernel/exit.c:1007 [inline] __se_sys_exit_group kernel/exit.c:1005 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f915d592ea9 Code: Unable to access opcode bytes at RIP 0x7f915d592e7f. RSP: 002b:00007fff7ea88b78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f915d5de3de RCX: 00007f915d592ea9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000005 R08: 00007fff7ea86917 R09: 00007fff7ea89e30 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff7ea89e30 R13: 00007f915d5de3b9 R14: 0000000000010d23 R15: 0000000000000006 The buggy address belongs to the page: page:ffffea0001c4d300 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7134c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0001c4cec8 ffffea00007baa48 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 0x500cc2(GFP_HIGHUSER|__GFP_ACCOUNT), pid 3726, ts 58191640538, free_ts 58191818419 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159 __alloc_pages+0x272/0x700 mm/page_alloc.c:5423 pipe_write+0x5c7/0x1b90 fs/pipe.c:500 call_write_iter include/linux/fs.h:2172 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacd/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 pipe_buf_release include/linux/pipe_fs_i.h:219 [inline] pipe_read+0x6e4/0x12b0 fs/pipe.c:323 call_read_iter include/linux/fs.h:2166 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0xa93/0xe10 fs/read_write.c:485 ksys_read+0x1a2/0x2c0 fs/read_write.c:623 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88807134bf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807134bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807134c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88807134c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88807134c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================