================================================================== BUG: KASAN: use-after-free in udf_close_lvid+0x508/0x5c0 fs/udf/super.c:2035 Write of size 1 at addr ffff8881804ebcd8 by task syz-executor393/5058 CPU: 0 PID: 5058 Comm: syz-executor393 Not tainted 6.7.0-rc4-syzkaller-00039-g9ace34a8e446 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 udf_close_lvid+0x508/0x5c0 fs/udf/super.c:2035 udf_put_super+0x19c/0x200 fs/udf/super.c:2322 generic_shutdown_super+0x161/0x3d0 fs/super.c:696 kill_block_super+0x3b/0x90 fs/super.c:1667 deactivate_locked_super+0xbc/0x1a0 fs/super.c:484 deactivate_super+0xde/0x100 fs/super.c:517 cleanup_mnt+0x222/0x450 fs/namespace.c:1256 task_work_run+0x14d/0x240 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x217/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1e/0x60 kernel/entry/common.c:296 do_syscall_64+0x4d/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f998bcf48c7 Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffd6a0adef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f998bcf48c7 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffd6a0adfb0 RBP: 00007ffd6a0adfb0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000202 R12: 00007ffd6a0af020 R13: 0000555556d226c0 R14: 431bde82d7b634db R15: 00007ffd6a0af040 The buggy address belongs to the physical page: page:ffffea0006013ac0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1804eb flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 057ff00000000000 ffffea0006013ac8 ffffea0006013ac8 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: ffff8881804ebb80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881804ebc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881804ebc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881804ebd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881804ebd80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================