================================================================== BUG: KASAN: use-after-free in udf_close_lvid+0x6a4/0x9a0 fs/udf/super.c:2073 Write of size 1 at addr ffff88809dc306d8 by task syz-executor.5/16093 CPU: 0 PID: 16093 Comm: syz-executor.5 Not tainted 6.1.72-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:395 kasan_report+0x136/0x160 mm/kasan/report.c:495 udf_close_lvid+0x6a4/0x9a0 fs/udf/super.c:2073 udf_put_super+0xc9/0x160 fs/udf/super.c:2360 generic_shutdown_super+0x130/0x340 fs/super.c:501 kill_block_super+0x7a/0xe0 fs/super.c:1459 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa73/0x26a0 kernel/exit.c:869 do_group_exit+0x202/0x2b0 kernel/exit.c:1019 get_signal+0x16f7/0x17d0 kernel/signal.c:2862 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7c954a8135 Code: Unable to access opcode bytes at 0x7f7c954a810b. RSP: 002b:00007f7c96234010 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007f7c955abf80 RCX: 00007f7c954a8135 RDX: 00007f7c96234050 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f7c954c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7c955abf80 R15: 00007ffdc52e7aa8 The buggy address belongs to the physical page: page:ffffea0002770c00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9dc30 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea0002770c08 ffffea0002770c08 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88809dc30580: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88809dc30600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88809dc30680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88809dc30700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88809dc30780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================