UDF-fs: error (device loop2): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 0 ================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x1f5/0x280 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88805693f000 by task syz-executor/4194 CPU: 1 PID: 4194 Comm: syz-executor Not tainted 5.15.186-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 crc_itu_t+0x1f5/0x280 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2048 [inline] udf_sync_fs+0x194/0x350 fs/udf/super.c:2404 sync_filesystem+0xe6/0x220 fs/sync.c:56 generic_shutdown_super+0x6b/0x300 fs/super.c:448 kill_block_super+0x7c/0xe0 fs/super.c:1427 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x418/0x4d0 fs/namespace.c:1139 task_work_run+0x125/0x1a0 kernel/task_work.c:188 exit_task_work include/linux/task_work.h:33 [inline] do_exit+0x61e/0x20a0 kernel/exit.c:883 do_group_exit+0x12e/0x300 kernel/exit.c:997 __do_sys_exit_group kernel/exit.c:1008 [inline] __se_sys_exit_group kernel/exit.c:1006 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1006 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f1d2e562929 Code: Unable to access opcode bytes at RIP 0x7f1d2e5628ff. RSP: 002b:00007ffe0ab0af68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f1d2e5e4997 RCX: 00007f1d2e562929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000010 R08: 00007ffe0ab08d06 R09: 00007ffe0ab0c220 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe0ab0c220 R13: 00007f1d2e5e4925 R14: 000055556696c4a8 R15: 00007ffe0ab0d2f0 Allocated by task 5766: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3233 alloc_pid+0x9b/0xac0 kernel/pid.c:180 copy_process+0x1a52/0x3e00 kernel/fork.c:2306 kernel_clone+0x219/0x930 kernel/fork.c:2679 __do_sys_clone3 kernel/fork.c:2954 [inline] __se_sys_clone3+0x2d5/0x360 kernel/fork.c:2938 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x179/0x920 kernel/rcu/tree.c:3087 __unhash_process kernel/exit.c:122 [inline] __exit_signal kernel/exit.c:195 [inline] release_task+0xc1f/0x15a0 kernel/exit.c:246 exit_notify kernel/exit.c:748 [inline] do_exit+0x149e/0x20a0 kernel/exit.c:895 do_group_exit+0x12e/0x300 kernel/exit.c:997 get_signal+0x6ca/0x12c0 kernel/signal.c:2900 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Second to last potentially related work creation: kasan_save_stack+0x35/0x60 mm/kasan/common.c:38 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x179/0x920 kernel/rcu/tree.c:3087 __unhash_process kernel/exit.c:125 [inline] __exit_signal kernel/exit.c:195 [inline] release_task+0xc44/0x15a0 kernel/exit.c:246 wait_task_zombie kernel/exit.c:1182 [inline] wait_consider_task+0x18d2/0x2df0 kernel/exit.c:1409 do_wait_thread kernel/exit.c:1472 [inline] do_wait+0x2f8/0xac0 kernel/exit.c:1589 kernel_wait4+0x1ab/0x270 kernel/exit.c:1752 __do_sys_wait4 kernel/exit.c:1780 [inline] __se_sys_wait4 kernel/exit.c:1776 [inline] __x64_sys_wait4+0x130/0x1e0 kernel/exit.c:1776 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff88805693f000 which belongs to the cache pid_2 of size 240 The buggy address is located 0 bytes inside of 240-byte region [ffff88805693f000, ffff88805693f0f0) The buggy address belongs to the page: page:ffffea00015a4fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805693fa00 pfn:0x5693f memcg:ffff88801b970981 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea00006db240 0000000300000003 ffff88802c869dc0 raw: ffff88805693fa00 00000000800c0000 00000001ffffffff ffff88801b970981 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 5076, ts 120237447251, free_ts 120203533220 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 alloc_slab_page mm/slub.c:1775 [inline] allocate_slab mm/slub.c:1912 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1975 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3008 __slab_alloc mm/slub.c:3095 [inline] slab_alloc_node mm/slub.c:3186 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3233 alloc_pid+0x9b/0xac0 kernel/pid.c:180 copy_process+0x1a52/0x3e00 kernel/fork.c:2306 kernel_clone+0x219/0x930 kernel/fork.c:2679 __do_sys_clone3 kernel/fork.c:2954 [inline] __se_sys_clone3+0x2d5/0x360 kernel/fork.c:2938 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page_list+0x122/0x7e0 mm/page_alloc.c:3433 release_pages+0x184b/0x1bb0 mm/swap.c:963 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x164/0x2e0 mm/mmu_gather.c:338 exit_mmap+0x3a6/0x5f0 mm/mmap.c:3214 __mmput+0x115/0x3b0 kernel/fork.c:1127 exit_mm+0x567/0x6c0 kernel/exit.c:550 do_exit+0x5a1/0x20a0 kernel/exit.c:870 do_group_exit+0x12e/0x300 kernel/exit.c:997 get_signal+0x6ca/0x12c0 kernel/signal.c:2900 arch_do_signal_or_restart+0xc1/0x1300 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:154 [inline] exit_to_user_mode_loop+0x9e/0x130 kernel/entry/common.c:178 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff88805693ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805693ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805693f000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805693f080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff88805693f100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================