================================================================== BUG: KASAN: use-after-free in ocfs2_get_system_file_inode+0x17c/0x650 fs/ocfs2/sysfile.c:102 Read of size 8 at addr ffff0000cbe7e190 by task syz-executor/6587 CPU: 0 UID: 0 PID: 6587 Comm: syz-executor Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #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_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 ocfs2_get_system_file_inode+0x17c/0x650 fs/ocfs2/sysfile.c:102 ocfs2_remove_inode fs/ocfs2/inode.c:723 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:894 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1155 [inline] ocfs2_evict_inode+0x12e8/0x3bf8 fs/ocfs2/inode.c:1292 evict+0x414/0x928 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput+0x6e4/0x83c fs/inode.c:1923 d_delete_notify include/linux/fsnotify.h:377 [inline] vfs_rmdir+0x358/0x464 fs/namei.c:4474 do_rmdir+0x214/0x4c4 fs/namei.c:4516 __do_sys_unlinkat fs/namei.c:4690 [inline] __se_sys_unlinkat fs/namei.c:4684 [inline] __arm64_sys_unlinkat+0xc8/0xf8 fs/namei.c:4684 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10be7e flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffdffc3395a48 fffffdffc336df48 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cbe7e080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000cbe7e100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0000cbe7e180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0000cbe7e200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0000cbe7e280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== Unable to handle kernel paging request at virtual address 001e9f1f1f1f1f2f Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [001e9f1f1f1f1f2f] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6587 Comm: syz-executor Tainted: G B 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 PREEMPT Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] pc : do_raw_spin_lock+0x84/0x2cc kernel/locking/spinlock_debug.c:115 lr : __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline] lr : _raw_spin_lock+0x50/0x60 kernel/locking/spinlock.c:154 sp : ffff80009c567040 x29: ffff80009c5670c0 x28: 0000000000000000 x27: ffff80009c567180 x26: dfff800000000000 x25: ffff7000138ace30 x24: dfff800000000000 x23: 0000000000000800 x22: ffff0000cbe7e190 x21: ffff0000d9e64000 x20: f8f8f8f8f8f8f97c x19: f8f8f8f8f8f8f978 x18: 00000000ffffffff x17: 3d3d3d3d3d3d3d3d x16: ffff8000805354d8 x15: 0000000000000001 x14: 1ffff0001260d8fc x13: 0000000000000000 x12: 0000000000000000 x11: 1ffff000138ace0c x10: ffff80008efad53b x9 : f3f3f304f1f1f1f1 x8 : 1f1f1f1f1f1f1f2f x7 : 0000000000000001 x6 : ffff800080dd7c18 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : ffff80008b6577c0 x0 : f8f8f8f8f8f8f978 Call trace: debug_spin_lock_before kernel/locking/spinlock_debug.c:-1 [inline] (P) do_raw_spin_lock+0x84/0x2cc kernel/locking/spinlock_debug.c:115 (P) __raw_spin_lock include/linux/spinlock_api_smp.h:134 [inline] _raw_spin_lock+0x50/0x60 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] igrab+0x20/0xd8 fs/inode.c:1540 ocfs2_get_system_file_inode+0x188/0x650 fs/ocfs2/sysfile.c:104 ocfs2_remove_inode fs/ocfs2/inode.c:723 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:894 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1155 [inline] ocfs2_evict_inode+0x12e8/0x3bf8 fs/ocfs2/inode.c:1292 evict+0x414/0x928 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput+0x6e4/0x83c fs/inode.c:1923 d_delete_notify include/linux/fsnotify.h:377 [inline] vfs_rmdir+0x358/0x464 fs/namei.c:4474 do_rmdir+0x214/0x4c4 fs/namei.c:4516 __do_sys_unlinkat fs/namei.c:4690 [inline] __se_sys_unlinkat fs/namei.c:4684 [inline] __arm64_sys_unlinkat+0xc8/0xf8 fs/namei.c:4684 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: aa0003f3 f9000feb f2fe7e69 f8386969 (38f86908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa0003f3 mov x19, x0 4: f9000feb str x11, [sp, #24] 8: f2fe7e69 movk x9, #0xf3f3, lsl #48 c: f8386969 str x9, [x11, x24] * 10: 38f86908 ldrsb w8, [x8, x24] <-- trapping instruction