================================================================== BUG: KASAN: use-after-free in udf_close_lvid+0x6a8/0x9a0 fs/udf/super.c:2035 Write of size 1 at addr ffff8880b200eb78 by task syz-executor935/5047 CPU: 1 PID: 5047 Comm: syz-executor935 Not tainted 6.6.0-rc5-syzkaller-00055-g1c8b86a3799f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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:364 [inline] print_report+0x163/0x540 mm/kasan/report.c:475 kasan_report+0x175/0x1b0 mm/kasan/report.c:588 udf_close_lvid+0x6a8/0x9a0 fs/udf/super.c:2035 udf_put_super+0xcd/0x160 fs/udf/super.c:2322 generic_shutdown_super+0x13a/0x2c0 fs/super.c:693 kill_block_super+0x41/0x70 fs/super.c:1646 deactivate_locked_super+0xa4/0x110 fs/super.c:481 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1254 task_work_run+0x24a/0x300 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa2c/0x2650 kernel/exit.c:874 do_group_exit+0x206/0x2c0 kernel/exit.c:1024 get_signal+0x175d/0x1840 kernel/signal.c:2892 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309 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:285 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:296 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4164dc9f59 Code: Unable to access opcode bytes at 0x7f4164dc9f2f. RSP: 002b:00007f4164d82218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f4164e726e8 RCX: 00007f4164dc9f59 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f4164e726e8 RBP: 00007f4164e726e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4164e3e300 R13: 0030656c69662f2e R14: 6f6f6c2f7665642f R15: 00007f4164e1f0f8 The buggy address belongs to the physical page: page:ffffea0002c80380 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb200e flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 ffffea0002c80388 ffffea0002c80388 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: ffff8880b200ea00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880b200ea80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8880b200eb00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880b200eb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880b200ec00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================