================================================================== BUG: KASAN: use-after-free in udf_close_lvid+0x6a8/0x9a0 fs/udf/super.c:2039 Write of size 1 at addr ffff888091a41b40 by task syz-executor.2/15893 CPU: 0 PID: 15893 Comm: syz-executor.2 Not tainted 6.4.0-rc1-syzkaller-00001-gba0ad6ed89fd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 udf_close_lvid+0x6a8/0x9a0 fs/udf/super.c:2039 udf_put_super+0xcd/0x160 fs/udf/super.c:2326 generic_shutdown_super+0x134/0x340 fs/super.c:500 kill_block_super+0x84/0xf0 fs/super.c:1407 deactivate_locked_super+0xa4/0x110 fs/super.c:331 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1177 task_work_run+0x24a/0x300 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x68f/0x2290 kernel/exit.c:871 do_group_exit+0x206/0x2c0 kernel/exit.c:1021 get_signal+0x1701/0x17e0 kernel/signal.c:2874 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306 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+0x64/0x280 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7afe8b0e91 Code: Unable to access opcode bytes at 0x7f7afe8b0e67. RSP: 002b:00007f7aff5b60b0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: fffffffffffffdfc RBX: 00007f7afe9abf80 RCX: 00007f7afe8b0e91 RDX: 00007f7aff5b60f0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f7afe8e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ffc0f52c53f R14: 00007f7aff5b6300 R15: 0000000000022000 The buggy address belongs to the physical page: page:ffffea0002469040 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x91a41 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0002469048 ffffea0002469048 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: ffff888091a41a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888091a41a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888091a41b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888091a41b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888091a41c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================