================================================================== BUG: KASAN: use-after-free in udf_close_lvid.isra.0+0x4a7/0x550 fs/udf/super.c:2035 Write of size 1 at addr ffff8881534fe900 by task syz-executor.1/18129 CPU: 0 PID: 18129 Comm: syz-executor.1 Not tainted 6.4.0-next-20230705-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:364 print_report mm/kasan/report.c:475 [inline] kasan_report+0x11d/0x130 mm/kasan/report.c:588 udf_close_lvid.isra.0+0x4a7/0x550 fs/udf/super.c:2035 udf_put_super+0x1bb/0x230 fs/udf/super.c:2322 generic_shutdown_super+0x158/0x480 fs/super.c:499 kill_block_super+0x64/0xb0 fs/super.c:1417 deactivate_locked_super+0x98/0x160 fs/super.c:330 deactivate_super+0xb1/0xd0 fs/super.c:361 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1254 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa9a/0x29a0 kernel/exit.c:874 do_group_exit+0xd4/0x2a0 kernel/exit.c:1024 get_signal+0x249b/0x25f0 kernel/signal.c:2877 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f66336b10b1 Code: Unable to access opcode bytes at 0x7f66336b1087. RSP: 002b:00007f663433a0b0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007f66337abf80 RCX: 00007f66336b10b1 RDX: 00007f663433a0f0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f66336d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fff83f41cdf R14: 00007f663433a300 R15: 0000000000022000 The buggy address belongs to the physical page: page:ffffea00054d3f80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1534fe flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 057ff00000000000 ffffea00054d3f88 ffffea00054d3f88 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: ffff8881534fe800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881534fe880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881534fe900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881534fe980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881534fea00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================