loop2: detected capacity change from 0 to 32768 ocfs2: Mounting device (7,2) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: slab-use-after-free in ocfs2_find_smallest_chain fs/ocfs2/suballoc.c:413 [inline] BUG: KASAN: slab-use-after-free in ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:430 [inline] BUG: KASAN: slab-use-after-free in ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline] BUG: KASAN: slab-use-after-free in ocfs2_reserve_suballoc_bits+0xb28/0x3b9c fs/ocfs2/suballoc.c:834 Read of size 4 at addr ffff0001135d4004 by task syz.2.277/8274 CPU: 0 UID: 0 PID: 8274 Comm: syz.2.277 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xa8/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0xb0/0x110 mm/kasan/report.c:595 __asan_report_load4_noabort+0x20/0x2c mm/kasan/report_generic.c:380 ocfs2_find_smallest_chain fs/ocfs2/suballoc.c:413 [inline] ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:430 [inline] ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline] ocfs2_reserve_suballoc_bits+0xb28/0x3b9c fs/ocfs2/suballoc.c:834 ocfs2_reserve_new_metadata_blocks+0x368/0x810 fs/ocfs2/suballoc.c:984 ocfs2_expand_inline_dir fs/ocfs2/dir.c:2845 [inline] ocfs2_extend_dir+0x970/0x3964 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x281c/0x4664 fs/ocfs2/dir.c:4312 ocfs2_symlink+0x62c/0x1ff8 fs/ocfs2/namei.c:1875 vfs_symlink+0x138/0x288 fs/namei.c:4817 do_symlinkat+0x17c/0x360 fs/namei.c:4843 __do_sys_symlinkat fs/namei.c:4859 [inline] __se_sys_symlinkat fs/namei.c:4856 [inline] __arm64_sys_symlinkat+0x9c/0xb4 fs/namei.c:4856 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:746 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:765 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Allocated by task 8093: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:77 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:573 unpoison_slab_object mm/kasan/common.c:342 [inline] __kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:368 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4955 [inline] kmem_cache_alloc_bulk_noprof+0x308/0x4dc mm/slub.c:7466 __io_alloc_req_refill+0xa8/0x2cc io_uring/io_uring.c:1056 io_alloc_req io_uring/io_uring.h:543 [inline] io_submit_sqes+0x9e4/0x1a28 io_uring/io_uring.c:2436 __do_sys_io_uring_enter io_uring/io_uring.c:3514 [inline] __se_sys_io_uring_enter io_uring/io_uring.c:3453 [inline] __arm64_sys_io_uring_enter+0x2d8/0x11b8 io_uring/io_uring.c:3453 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:746 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:765 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Freed by task 14: kasan_save_stack mm/kasan/common.c:56 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:77 __kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:587 kasan_save_free_info mm/kasan/kasan.h:406 [inline] poison_slab_object mm/kasan/common.c:252 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:284 kasan_slab_free include/linux/kasan.h:234 [inline] slab_free_hook mm/slub.c:2523 [inline] slab_free_after_rcu_debug+0x120/0x2f8 mm/slub.c:6669 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0x840/0x17d0 kernel/rcu/tree.c:2861 rcu_core_si+0x10/0x1c kernel/rcu/tree.c:2878 handle_softirqs+0x328/0xc88 kernel/softirq.c:622 run_ksoftirqd+0x70/0xc0 kernel/softirq.c:1063 smpboot_thread_fn+0x4d8/0x9cc kernel/smpboot.c:160 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Last potentially related work creation: kasan_save_stack+0x40/0x6c mm/kasan/common.c:56 kasan_record_aux_stack+0xb0/0xc8 mm/kasan/generic.c:559 slab_free_hook mm/slub.c:2484 [inline] slab_free mm/slub.c:6611 [inline] kmem_cache_free+0x4a8/0x6dc mm/slub.c:6721 __io_req_caches_free+0x194/0x23c io_uring/io_uring.c:2824 io_req_caches_free+0x2c/0x6c io_uring/io_uring.c:2836 io_ring_exit_work+0x38c/0x7d8 io_uring/io_uring.c:3034 process_one_work+0x7e8/0x155c kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3427 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 The buggy address belongs to the object at ffff0001135d4000 which belongs to the cache io_kiocb of size 248 The buggy address is located 4 bytes inside of freed 248-byte region [ffff0001135d4000, ffff0001135d40f8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1535d4 memcg:ffff0000ce9e9701 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c573f780 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000000f5000000 ffff0000ce9e9701 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0001135d3f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0001135d3f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0001135d4000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0001135d4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc ffff0001135d4100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ================================================================== OCFS2: ERROR (device loop2): int ocfs2_validate_gd_self(struct super_block *, struct buffer_head *, int): Group descriptor #0 has bad signature  On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. OCFS2: File system is now read-only. (syz.2.277,8274,0):ocfs2_search_chain:1817 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_search_chain:1940 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_claim_suballoc_bits:2010 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_claim_suballoc_bits:2063 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_claim_metadata:2088 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_claim_metadata:2101 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_dx_dir_attach_index:2336 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_expand_inline_dir:3029 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_extend_dir:3211 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_prepare_dir_for_insert:4316 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_symlink:1879 ERROR: status = -30 (syz.2.277,8274,0):ocfs2_symlink:2080 ERROR: status = -30