ocfs2: Mounting device (7,2) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2000 by task syz.2.333/7683 CPU: 0 UID: 0 PID: 7683 Comm: syz.2.333 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2010 by task syz.2.333/7683 CPU: 1 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2020 by task syz.2.333/7683 CPU: 0 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2030 by task syz.2.333/7683 CPU: 1 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2040 by task syz.2.333/7683 CPU: 1 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2050 by task syz.2.333/7683 CPU: 0 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2060 by task syz.2.333/7683 CPU: 0 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2070 by task syz.2.333/7683 CPU: 1 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a57148 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2080 by task syz.2.333/7683 CPU: 0 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f0(buddy) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a570c8 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f2090 by task syz.2.333/7683 CPU: 1 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f0(buddy) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a570c8 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x41c/0x4e0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88804f3f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88804f3f2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88804f3f2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804f3f2100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804f3f2180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ================================================================== BUG: KASAN: use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: use-after-free in ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff88804f3f20a0 by task syz.2.333/7683 CPU: 1 UID: 0 PID: 7683 Comm: syz.2.333 Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x2040/0x20f0 fs/ocfs2/suballoc.c:1996 ocfs2_claim_metadata+0x1ca/0x530 fs/ocfs2/suballoc.c:2082 ocfs2_dx_dir_attach_index+0x19c/0xfa0 fs/ocfs2/dir.c:2333 ocfs2_expand_inline_dir.constprop.0+0x2a7c/0x4160 fs/ocfs2/dir.c:3025 ocfs2_extend_dir+0x1db/0x1c80 fs/ocfs2/dir.c:3207 ocfs2_prepare_dir_for_insert+0x1293/0x1700 fs/ocfs2/dir.c:4312 ocfs2_symlink+0xb60/0x3a10 fs/ocfs2/namei.c:1875 vfs_symlink fs/namei.c:4730 [inline] vfs_symlink+0x403/0x680 fs/namei.c:4714 do_symlinkat+0x261/0x310 fs/namei.c:4756 __do_sys_symlink fs/namei.c:4777 [inline] __se_sys_symlink fs/namei.c:4775 [inline] __x64_sys_symlink+0x75/0x90 fs/namei.c:4775 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f3785f8eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3786e17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007f37861e5fa0 RCX: 00007f3785f8eec9 RDX: 0000000000000000 RSI: 0000200000000cc0 RDI: 00002000000003c0 RBP: 00007f3786011f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f37861e6038 R14: 00007f37861e5fa0 R15: 00007fff8830c708 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xd7b pfn:0x4f3f2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f0(buddy) raw: 00fff00000000000 ffffea00013b3bc8 ffffea0001a570c8 0000000000000000 raw: 0000000000000d7b 0000000000000000 00000000f0000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Movable, gfp_mask 0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), pid 7636, tgid 7634 (syz.1.324), ts 237722271442, free_ts 239858018222 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x132b/0x38e0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:5148 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 folio_alloc_mpol_noprof+0x36/0x2f0 mm/mempolicy.c:2435 shmem_alloc_folio+0x135/0x160 mm/shmem.c:1908 shmem_alloc_and_add_folio+0x499/0xc20 mm/shmem.c:1947 shmem_get_folio_gfp+0x67f/0x1600 mm/shmem.c:2597 shmem_get_folio mm/shmem.c:2703 [inline] shmem_write_begin+0x160/0x300 mm/shmem.c:3353 generic_perform_write+0x3c5/0x900 mm/filemap.c:4175 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3528 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x7d3/0x11d0 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5864 tgid 5864 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:999 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x58f/0x1150 mm/shmem.c:1157 shmem_truncate_range mm/shmem.c:1269 [inline] shmem_evict_inode+0x3a1/0xbe0 mm/shmem.c:1397 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 dentry_unlink_inode+0x29c/0x480 fs/dcache.c:466 __dentry_kill+0x1d0/0x600 fs/dcache.c:669 dput.part.0+0x4b1/0x9b0 fs/dcache.c:911 dput+0x1f/0x30 fs/dcache.c:901 __fput+0x51c/0xb70 fs/file_table.c:476 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43