UDF-fs: error (device loop0): udf_read_inode: (ino 1345) failed !bh UDF-fs: error (device loop0): udf_read_inode: (ino 1345) failed !bh ================================================================== BUG: KASAN: slab-out-of-bounds in crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff88802f9950a8 by task syz-executor169/4244 CPU: 1 PID: 4244 Comm: syz-executor169 Not tainted 6.1.123-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0x15f/0x4f0 mm/kasan/report.c:427 kasan_report+0x136/0x160 mm/kasan/report.c:531 crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 udf_finalize_lvid fs/udf/super.c:2045 [inline] udf_sync_fs+0x1ce/0x380 fs/udf/super.c:2401 sync_filesystem+0xe8/0x220 fs/sync.c:56 generic_shutdown_super+0x6b/0x340 fs/super.c:474 kill_block_super+0x7a/0xe0 fs/super.c:1470 deactivate_locked_super+0xa0/0x110 fs/super.c:332 cleanup_mnt+0x490/0x520 fs/namespace.c:1186 task_work_run+0x246/0x300 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0xa6e/0x26a0 kernel/exit.c:871 do_group_exit+0x202/0x2b0 kernel/exit.c:1021 __do_sys_exit_group kernel/exit.c:1032 [inline] __se_sys_exit_group kernel/exit.c:1030 [inline] __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1030 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fec297a9979 Code: Unable to access opcode bytes at 0x7fec297a994f. RSP: 002b:00007fffe5dc5ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fec297a9979 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007fec29841390 R08: ffffffffffffffb8 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000246 R12: 00007fec29841390 R13: 0000000000000000 R14: 00007fec29843160 R15: 00007fec2976fe30 Allocated by task 1: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:689 [inline] __kernfs_new_node+0xd4/0x870 fs/kernfs/dir.c:614 kernfs_new_node+0x136/0x230 fs/kernfs/dir.c:690 __kernfs_create_file+0x45/0x2e0 fs/kernfs/file.c:1049 sysfs_add_file_mode_ns+0x246/0x300 fs/sysfs/file.c:294 sysfs_create_file_ns+0x193/0x2a0 fs/sysfs/file.c:355 device_add+0x8e5/0xfd0 drivers/base/core.c:3659 snd_register_device+0x323/0x480 sound/core/sound.c:281 snd_rawmidi_dev_register+0x2e8/0xed0 sound/core/rawmidi.c:1948 __snd_device_register sound/core/device.c:149 [inline] snd_device_register_all+0xc4/0x190 sound/core/device.c:197 snd_card_register+0x1ce/0x6c0 sound/core/init.c:918 snd_virmidi_probe+0x53e/0x7a0 sound/drivers/virmidi.c:105 platform_probe+0x131/0x1b0 drivers/base/platform.c:1400 really_probe+0x2ab/0xcb0 drivers/base/dd.c:639 __driver_probe_device+0x1a2/0x3d0 drivers/base/dd.c:785 driver_probe_device+0x50/0x420 drivers/base/dd.c:815 __device_attach_driver+0x2cf/0x510 drivers/base/dd.c:943 bus_for_each_drv+0x183/0x200 drivers/base/bus.c:429 __device_attach+0x359/0x570 drivers/base/dd.c:1015 bus_probe_device+0xba/0x1e0 drivers/base/bus.c:489 device_add+0xb48/0xfd0 drivers/base/core.c:3696 platform_device_add+0x46e/0x7d0 drivers/base/platform.c:717 platform_device_register_full+0x5dc/0x6e0 drivers/base/platform.c:844 platform_device_register_resndata include/linux/platform_device.h:141 [inline] platform_device_register_simple include/linux/platform_device.h:170 [inline] alsa_card_virmidi_init+0x159/0x2ce sound/drivers/virmidi.c:145 do_one_initcall+0x265/0x8f0 init/main.c:1298 do_initcall_level+0x157/0x207 init/main.c:1371 do_initcalls+0x49/0x86 init/main.c:1387 kernel_init_freeable+0x45c/0x60f init/main.c:1626 kernel_init+0x19/0x290 init/main.c:1514 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the object at ffff88802f995000 which belongs to the cache kernfs_node_cache of size 168 The buggy address is located 0 bytes to the right of 168-byte region [ffff88802f995000, ffff88802f9950a8) The buggy address belongs to the physical page: page:ffffea0000be6540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2f995 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 0000000000000000 dead000000000122 ffff888140009c80 raw: 0000000000000000 0000000000110011 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 17410201793, free_ts 17409367835 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x18d/0x1b0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x3731/0x38d0 mm/page_alloc.c:4328 __alloc_pages+0x28d/0x770 mm/page_alloc.c:5605 alloc_page_interleave+0x22/0x1c0 mm/mempolicy.c:2115 alloc_slab_page+0x6a/0x150 mm/slub.c:1794 allocate_slab mm/slub.c:1939 [inline] new_slab+0x84/0x2d0 mm/slub.c:1992 ___slab_alloc+0xc20/0x1270 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x1a5/0x2d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:689 [inline] __kernfs_new_node+0xd4/0x870 fs/kernfs/dir.c:614 kernfs_new_node+0x136/0x230 fs/kernfs/dir.c:690 __kernfs_create_file+0x45/0x2e0 fs/kernfs/file.c:1049 sysfs_add_file_mode_ns+0x246/0x300 fs/sysfs/file.c:294 sysfs_create_file_ns+0x193/0x2a0 fs/sysfs/file.c:355 device_add+0x8e5/0xfd0 drivers/base/core.c:3659 snd_register_device+0x323/0x480 sound/core/sound.c:281 snd_rawmidi_dev_register+0x2e8/0xed0 sound/core/rawmidi.c:1948 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x12a6/0x15b0 mm/page_alloc.c:3384 free_unref_page_list+0x663/0x900 mm/page_alloc.c:3525 release_pages+0x24c4/0x27a0 mm/swap.c:1035 tlb_batch_pages_flush mm/mmu_gather.c:59 [inline] tlb_flush_mmu_free mm/mmu_gather.c:254 [inline] tlb_flush_mmu+0xfc/0x210 mm/mmu_gather.c:261 tlb_finish_mmu+0xce/0x1f0 mm/mmu_gather.c:361 exit_mmap+0x3b3/0x980 mm/mmap.c:3250 __mmput+0x115/0x3c0 kernel/fork.c:1200 free_bprm+0x135/0x2f0 fs/exec.c:1494 kernel_execve+0x8f1/0xa10 fs/exec.c:2018 call_usermodehelper_exec_async+0x22f/0x370 kernel/umh.c:113 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff88802f994f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802f995000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802f995080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ^ ffff88802f995100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802f995180: 00 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ==================================================================