================================================================== BUG: KASAN: slab-out-of-bounds in ocfs2_get_system_file_inode+0x179/0x630 fs/ocfs2/sysfile.c:102 Read of size 8 at addr ffff888035583f90 by task syz-executor/3556 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0xf4/0x170 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xca/0x220 mm/kasan/report.c:521 kasan_report+0x118/0x150 mm/kasan/report.c:634 ocfs2_get_system_file_inode+0x179/0x630 fs/ocfs2/sysfile.c:102 ocfs2_remove_inode fs/ocfs2/inode.c:661 [inline] ocfs2_wipe_inode fs/ocfs2/inode.c:832 [inline] ocfs2_delete_inode fs/ocfs2/inode.c:1093 [inline] ocfs2_evict_inode+0xe00/0x3030 fs/ocfs2/inode.c:1230 evict+0x3ed/0x8e0 fs/inode.c:810 d_delete_notify include/linux/fsnotify.h:402 [inline] vfs_rmdir+0x34f/0x400 fs/namei.c:4467 do_rmdir+0x212/0x4d0 fs/namei.c:4509 __do_sys_unlinkat fs/namei.c:4683 [inline] __se_sys_unlinkat fs/namei.c:4677 [inline] __x64_sys_unlinkat+0x92/0xb0 fs/namei.c:4677 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7943bae1c7 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 07 01 00 00 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:00007ffd9fc9fff8 EFLAGS: 00000207 ORIG_RAX: 0000000000000107 RAX: ffffffffffffffda RBX: 0000000000000065 RCX: 00007f7943bae1c7 RDX: 0000000000000200 RSI: 00007ffd9fca11a0 RDI: 00000000ffffff9c RBP: 00007f7943c31c05 R08: 0000555574e6254b R09: 0000000000000000 R10: 0000000000001000 R11: 0000000000000207 R12: 00007ffd9fca11a0 R13: 00007f7943c31c05 R14: 0000000000014ee9 R15: 00007ffd9fca3360 Allocated by task 3508: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x1dc/0x470 mm/slub.c:4339 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] __register_sysctl_table+0x67/0x1270 fs/proc/proc_sysctl.c:1376 __devinet_sysctl_register+0x379/0x450 net/ipv4/devinet.c:2678 devinet_init_net+0x30c/0x720 net/ipv4/devinet.c:2807 ops_init+0x27f/0x3f0 net/core/net_namespace.c:138 setup_net+0x29f/0x6a0 net/core/net_namespace.c:364 copy_net_ns+0x289/0x470 net/core/net_namespace.c:518 create_new_namespaces+0x3b1/0x6b0 kernel/nsproxy.c:110 unshare_nsproxy_namespaces+0xe0/0x120 kernel/nsproxy.c:228 ksys_unshare+0x3b6/0x720 kernel/fork.c:3375 __do_sys_unshare kernel/fork.c:3446 [inline] __se_sys_unshare kernel/fork.c:3444 [inline] __x64_sys_unshare+0x33/0x40 kernel/fork.c:3444 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 153: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x62/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2380 [inline] slab_free_freelist_hook mm/slub.c:2409 [inline] slab_free_bulk mm/slub.c:4666 [inline] kmem_cache_free_bulk+0x358/0x5b0 mm/slub.c:5243 kfree_bulk include/linux/slab.h:794 [inline] kvfree_rcu_bulk+0xc6/0x1a0 mm/slab_common.c:1516 kfree_rcu_work+0xed/0x160 mm/slab_common.c:1594 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0x987/0x12d0 kernel/workqueue.c:3319 worker_thread+0x850/0xc60 kernel/workqueue.c:3400 kthread+0x598/0x690 kernel/kthread.c:464 ret_from_fork+0x32/0x70 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:47 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:548 kvfree_call_rcu+0x66/0x380 mm/slab_common.c:1962 drop_sysctl_table+0x2ff/0x480 fs/proc/proc_sysctl.c:1518 unregister_sysctl_table+0x26/0x40 fs/proc/proc_sysctl.c:1539 __devinet_sysctl_unregister net/ipv4/devinet.c:2701 [inline] devinet_exit_net+0x195/0x240 net/ipv4/devinet.c:2864 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x6c9/0xa30 net/core/net_namespace.c:654 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0x987/0x12d0 kernel/workqueue.c:3319 worker_thread+0x850/0xc60 kernel/workqueue.c:3400 kthread+0x598/0x690 kernel/kthread.c:464 ret_from_fork+0x32/0x70 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888035583000 which belongs to the cache kmalloc-cg-2k of size 2048 The buggy address is located 1936 bytes to the right of allocated 2048-byte region [ffff888035583000, ffff888035583800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x35580 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88800ec4b3c0 ffffea0000693c00 dead000000000002 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 0080000000000040 ffff88800ec4b3c0 ffffea0000693c00 dead000000000002 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 0080000000000003 ffffea0000d56001 00000000ffffffff 00000000ffffffff head: 00000007f8d06f17 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2629, tgid 2629 (syz-executor), ts 39225590425, free_ts 38972629539 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x168/0x1a0 mm/page_alloc.c:1718 prep_new_page mm/page_alloc.c:1726 [inline] get_page_from_freelist+0x2856/0x28f0 mm/page_alloc.c:3688 __alloc_frozen_pages_noprof+0x26b/0x460 mm/page_alloc.c:4970 alloc_pages_mpol+0xcb/0x270 mm/mempolicy.c:2301 alloc_slab_page mm/slub.c:2450 [inline] allocate_slab+0x8a/0x350 mm/slub.c:2618 new_slab mm/slub.c:2672 [inline] ___slab_alloc+0x7fc/0xc60 mm/slub.c:3858 __slab_alloc mm/slub.c:3948 [inline] __slab_alloc_node mm/slub.c:4023 [inline] slab_alloc_node mm/slub.c:4184 [inline] __do_kmalloc_node mm/slub.c:4326 [inline] __kmalloc_node_track_caller_noprof+0x12c/0x480 mm/slub.c:4346 kmemdup_noprof+0x21/0x50 mm/util.c:137 kmemdup_noprof include/linux/fortify-string.h:765 [inline] neigh_sysctl_register+0x9a/0xa30 net/core/neighbour.c:3732 devinet_sysctl_register+0xa0/0x190 net/ipv4/devinet.c:2715 inetdev_init+0x232/0x3e0 net/ipv4/devinet.c:291 inetdev_event+0x3b7/0xf90 net/ipv4/devinet.c:1591 notifier_call_chain+0x12b/0x220 kernel/notifier.c:85 call_netdevice_notifiers_info net/core/dev.c:2176 [inline] call_netdevice_notifiers_extack net/core/dev.c:2214 [inline] call_netdevice_notifiers+0xc8/0x100 net/core/dev.c:2228 register_netdevice+0x1209/0x1680 net/core/dev.c:11047 register_netdev+0x25/0x40 net/core/dev.c:11126 page last free pid 2617 tgid 2617 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1262 [inline] free_unref_folios+0xc89/0x13f0 mm/page_alloc.c:2782 folios_put_refs+0x3ab/0x490 mm/swap.c:992 free_pages_and_swap_cache+0x20d/0x3c0 mm/swap_state.c:267 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu+0x2ba/0x500 mm/mmu_gather.c:404 tlb_finish_mmu+0xaa/0x190 mm/mmu_gather.c:496 vms_clear_ptes+0x45e/0x5a0 mm/vma.c:1191 vms_complete_munmap_vmas+0x1ad/0x680 mm/vma.c:1233 do_vmi_align_munmap+0x308/0x350 mm/vma.c:1492 do_vmi_munmap+0x192/0x210 mm/vma.c:1540 __vm_munmap+0x1bc/0x330 mm/vma.c:3013 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x5b/0x70 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8f/0x180 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888035583e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888035583f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888035583f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888035584000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888035584080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================