loop0: detected capacity change from 0 to 2048 UDF-fs: error (device loop0): udf_read_tagged: tag checksum failed, block 99: 0x27 != 0x4d UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) ================================================================== BUG: KASAN: slab-out-of-bounds in crc_itu_t+0x218/0x2a0 lib/crc-itu-t.c:60 Read of size 1 at addr ffff888018b57028 by task syz-executor205/4247 CPU: 1 PID: 4247 Comm: syz-executor205 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:0x7f02bb751a29 Code: Unable to access opcode bytes at 0x7f02bb7519ff. RSP: 002b:00007ffd6438a4c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f02bb751a29 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007f02bb7e9390 R08: ffffffffffffffb8 R09: 000000000001f675 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f02bb7e9390 R13: 0000000000000000 R14: 00007f02bb7eb160 R15: 00007f02bb718340 Allocated by task 3630: 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] fill_pool lib/debugobjects.c:169 [inline] debug_objects_fill_pool+0x4c9/0xa10 lib/debugobjects.c:607 __debug_object_init+0x29/0x450 lib/debugobjects.c:617 debug_hrtimer_init kernel/time/hrtimer.c:415 [inline] debug_init+0x26/0x290 kernel/time/hrtimer.c:469 hrtimer_init+0x1e/0x30 kernel/time/hrtimer.c:1596 init_dl_inactive_task_timer+0x1a/0x50 kernel/sched/deadline.c:1456 __sched_fork kernel/sched/core.c:4396 [inline] sched_fork+0x122/0x8b0 kernel/sched/core.c:4596 copy_process+0x1702/0x4060 kernel/fork.c:2236 kernel_clone+0x222/0x920 kernel/fork.c:2681 __do_sys_clone kernel/fork.c:2822 [inline] __se_sys_clone kernel/fork.c:2806 [inline] __x64_sys_clone+0x231/0x280 kernel/fork.c:2806 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 The buggy address belongs to the object at ffff888018b57000 which belongs to the cache debug_objects_cache of size 40 The buggy address is located 0 bytes to the right of 40-byte region [ffff888018b57000, ffff888018b57028) The buggy address belongs to the physical page: page:ffffea000062d5c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888018b57af0 pfn:0x18b57 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0000919208 ffffea000074f048 ffff888017c4f8c0 raw: ffff888018b57af0 000000000049003f 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 0x12020(__GFP_HIGH|__GFP_NOWARN|__GFP_NORETRY), pid 3477, tgid 3477 (cryptomgr_test), ts 21703477901, free_ts 21687347065 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_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] fill_pool lib/debugobjects.c:169 [inline] debug_objects_fill_pool+0x559/0xa10 lib/debugobjects.c:607 debug_object_activate+0x32/0x4e0 lib/debugobjects.c:694 debug_rcu_head_queue kernel/rcu/rcu.h:190 [inline] call_rcu+0x93/0xa10 kernel/rcu/tree.c:2830 __unhash_process kernel/exit.c:127 [inline] __exit_signal kernel/exit.c:198 [inline] release_task+0xdc0/0x16d0 kernel/exit.c:255 exit_notify kernel/exit.c:763 [inline] do_exit+0x19fd/0x26a0 kernel/exit.c:891 kthread_exit+0x42/0x60 kernel/kthread.c:306 __module_put_and_kthread_exit+0x16/0x20 kernel/module/main.c:173 cryptomgr_test+0x21/0x30 crypto/algboss.c:193 kthread+0x28d/0x320 kernel/kthread.c:376 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+0x33/0x3e0 mm/page_alloc.c:3479 __vunmap+0x873/0xa30 mm/vmalloc.c:2718 free_work+0x57/0x80 mm/vmalloc.c:97 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff888018b56f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888018b56f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888018b57000: 00 00 00 00 00 fc fc 00 00 00 00 00 fc fc 00 00 ^ ffff888018b57080: 00 00 00 fc fc 00 00 00 00 00 fc fc 00 00 00 00 ffff888018b57100: 00 fc fc 00 00 00 00 00 fc fc 00 00 00 00 00 fc ==================================================================