UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 0 UDF-fs: error (device loop0): udf_verify_fi: directory (ino 1376) has entry at pos 0 with incorrect tag 0 ================================================================== BUG: KASAN: use-after-free in crc_itu_t+0x1ad/0x280 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88805d1c5000 by task syz-executor/5072 CPU: 0 PID: 5072 Comm: syz-executor Not tainted 5.15.189-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+0x1ad/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:0x7f6200d14929 Code: Unable to access opcode bytes at RIP 0x7f6200d148ff. RSP: 002b:00007ffc3af06428 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f6200d96997 RCX: 00007f6200d14929 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000010 R08: 00007ffc3af041c6 R09: 00007ffc3af076e0 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc3af076e0 R13: 00007f6200d96925 R14: 00005555574f14a8 R15: 00007ffc3af087b0 Allocated by task 4274: 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] kmem_cache_alloc_node+0x12d/0x2d0 mm/slub.c:3256 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:664 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:721 [inline] nsim_dev_trap_report_work+0x2a1/0xb40 drivers/net/netdevsim/dev.c:762 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Freed by task 4274: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd5/0x110 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xea/0x170 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0x8f/0x210 mm/slub.c:3515 nsim_dev_trap_report drivers/net/netdevsim/dev.c:737 [inline] nsim_dev_trap_report_work+0x7cb/0xb40 drivers/net/netdevsim/dev.c:762 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the object at ffff88805d1c5000 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 0 bytes inside of 232-byte region [ffff88805d1c5000, ffff88805d1c50e8) The buggy address belongs to the page: page:ffffea0001747140 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5d1c5 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff88801b5e5140 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 4274, ts 102085684438, free_ts 102073237800 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] kmem_cache_alloc_node+0x1c3/0x2d0 mm/slub.c:3256 __alloc_skb+0xf4/0x750 net/core/skbuff.c:415 alloc_skb include/linux/skbuff.h:1162 [inline] nsim_dev_trap_skb_build drivers/net/netdevsim/dev.c:664 [inline] nsim_dev_trap_report drivers/net/netdevsim/dev.c:721 [inline] nsim_dev_trap_report_work+0x2a1/0xb40 drivers/net/netdevsim/dev.c:762 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 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+0x94/0x280 mm/page_alloc.c:3396 mm_free_pgd kernel/fork.c:653 [inline] __mmdrop+0xaa/0x3e0 kernel/fork.c:704 mmdrop include/linux/sched/mm.h:49 [inline] finish_task_switch+0x215/0x640 kernel/sched/core.c:4929 context_switch kernel/sched/core.c:5033 [inline] __schedule+0x11c0/0x43b0 kernel/sched/core.c:6376 schedule+0x11b/0x1e0 kernel/sched/core.c:6459 schedule_hrtimeout_range_clock+0x3bd/0x560 kernel/time/hrtimer.c:2321 ep_poll+0x1739/0x19a0 fs/eventpoll.c:1918 do_epoll_wait+0x1a1/0x210 fs/eventpoll.c:2296 do_epoll_pwait+0x60/0x1c0 fs/eventpoll.c:2330 __do_sys_epoll_pwait fs/eventpoll.c:2343 [inline] __se_sys_epoll_pwait fs/eventpoll.c:2337 [inline] __x64_sys_epoll_pwait+0x207/0x250 fs/eventpoll.c:2337 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 Memory state around the buggy address: ffff88805d1c4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805d1c4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805d1c5000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805d1c5080: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff88805d1c5100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================