================================================================== BUG: KASAN: slab-use-after-free in ocfs2_get_system_file_inode+0x17c/0x650 fs/ocfs2/sysfile.c:102 Read of size 8 at addr ffff0000c6ea7310 by task syz-executor/6657 CPU: 1 UID: 0 PID: 6657 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 Allocated by task 42: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:562 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4365 [inline] __kmalloc_node_track_caller_noprof+0x304/0x4d0 mm/slub.c:4384 kmalloc_reserve+0x124/0x268 net/core/skbuff.c:600 __alloc_skb+0x170/0x2ec net/core/skbuff.c:669 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1055 [inline] rtmsg_ifinfo_build_skb+0x90/0x24c net/core/rtnetlink.c:4392 unregister_netdevice_many_notify+0x1274/0x1de0 net/core/dev.c:12151 unregister_netdevice_many+0x28/0x38 net/core/dev.c:12211 ops_exit_rtnl_list net/core/net_namespace.c:186 [inline] ops_undo_list+0x32c/0x7ec net/core/net_namespace.c:247 cleanup_net+0x3e4/0x6c0 net/core/net_namespace.c:682 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Freed by task 42: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:68 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:243 [inline] __kasan_slab_free+0x74/0x98 mm/kasan/common.c:275 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2417 [inline] slab_free mm/slub.c:4680 [inline] kfree+0x17c/0x474 mm/slub.c:4879 skb_kfree_head net/core/skbuff.c:1047 [inline] skb_free_head+0xe4/0x198 net/core/skbuff.c:1059 skb_release_data+0x4d4/0x664 net/core/skbuff.c:1086 skb_release_all net/core/skbuff.c:1151 [inline] __kfree_skb net/core/skbuff.c:1165 [inline] consume_skb+0xb0/0x130 net/core/skbuff.c:1397 netlink_broadcast_filtered+0xfdc/0x1164 net/netlink/af_netlink.c:1537 nlmsg_multicast_filtered include/net/netlink.h:1165 [inline] nlmsg_multicast include/net/netlink.h:1184 [inline] nlmsg_notify+0xfc/0x1e0 net/netlink/af_netlink.c:2595 rtnl_notify net/core/rtnetlink.c:958 [inline] rtmsg_ifinfo_send+0xb8/0xec net/core/rtnetlink.c:4421 unregister_netdevice_many_notify+0x16a4/0x1de0 net/core/dev.c:12176 unregister_netdevice_many+0x28/0x38 net/core/dev.c:12211 ops_exit_rtnl_list net/core/net_namespace.c:186 [inline] ops_undo_list+0x32c/0x7ec net/core/net_namespace.c:247 cleanup_net+0x3e4/0x6c0 net/core/net_namespace.c:682 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 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 ffff0000c6ea7000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 784 bytes inside of freed 2048-byte region [ffff0000c6ea7000, ffff0000c6ea7800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ea0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c0002000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 05ffc00000000040 ffff0000c0002000 dead000000000122 0000000000000000 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 05ffc00000000003 fffffdffc31ba801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c6ea7200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000c6ea7280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000c6ea7300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000c6ea7380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000c6ea7400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== (syz-executor,6657,1):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,1):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,1):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,1):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,1):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,1):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,0):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,0):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,0):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,0):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,0):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,0):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,0):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,0):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,0):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,0):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,1):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,1):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,0):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,0):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,0):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) (syz-executor,6657,0):ocfs2_remove_inode:727 ERROR: status = -2 (syz-executor,6657,0):ocfs2_wipe_inode:897 ERROR: status = -2 (syz-executor,6657,0):ocfs2_delete_inode:1158 ERROR: status = -2 ocfs2: Unmounting device (7,0) on (node local) Unable to handle kernel paging request at virtual address dfff800000000010 KASAN: null-ptr-deref in range [0x0000000000000080-0x0000000000000087] Mem abort info: ESR = 0x0000000096000005 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x05: level 1 translation fault Data abort info: ISV = 0, ISS = 0x00000005, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 [dfff800000000010] address between user and kernel address ranges Internal error: Oops: 0000000096000005 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6657 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 : ffff80009e327040 x29: ffff80009e3270c0 x28: 0000000000000000 x27: ffff80009e327180 x26: dfff800000000000 x25: ffff700013c64e30 x24: dfff800000000000 x23: 0000000000000800 x22: ffff0000d150a690 x21: ffff0000c8bcc000 x20: 0000000000000085 x19: 0000000000000081 x18: 0000000000000000 x17: ffff0001fea8c8b0 x16: ffff8000805354d8 x15: 0000000000000001 x14: 1ffff00013c64dcc x13: 0000000000000000 x12: 0000000000000000 x11: 1ffff00013c64e0c x10: ffff80008efad53b x9 : f3f3f304f1f1f1f1 x8 : 0000000000000010 x7 : 0000000000000000 x6 : ffff800080dd7c18 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000000 x1 : ffff80008b6577c0 x0 : 0000000000000081 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