======================================================= ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: slab-use-after-free in ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] BUG: KASAN: slab-use-after-free in ocfs2_claim_suballoc_bits+0x8b2/0x2440 fs/ocfs2/suballoc.c:1996 Read of size 4 at addr ffff888031a76000 by task syz.0.17/6615 CPU: 0 UID: 0 PID: 6615 Comm: syz.0.17 Not tainted 6.16.0-syzkaller-11322-g352af6a011d5 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 ocfs2_find_victim_chain fs/ocfs2/suballoc.c:1447 [inline] ocfs2_claim_suballoc_bits+0x8b2/0x2440 fs/ocfs2/suballoc.c:1996 ocfs2_claim_new_inode+0x332/0x7a0 fs/ocfs2/suballoc.c:2292 ocfs2_mknod_locked+0x100/0x250 fs/ocfs2/namei.c:634 ocfs2_mknod+0x10a4/0x2110 fs/ocfs2/namei.c:381 ocfs2_create+0x1a5/0x440 fs/ocfs2/namei.c:673 lookup_open fs/namei.c:3708 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x14f1/0x3830 fs/namei.c:4043 do_filp_open+0x1fa/0x410 fs/namei.c:4073 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_creat fs/open.c:1528 [inline] __se_sys_creat fs/open.c:1522 [inline] __x64_sys_creat+0x8f/0xc0 fs/open.c:1522 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x8a/0x300 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f1e4538eb69 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:00007f1e4627f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f1e455b5fa0 RCX: 00007f1e4538eb69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000d80 RBP: 00007f1e45411df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1e455b5fa0 R15: 00007fff9dd37af8 Allocated by task 12: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4180 [inline] slab_alloc_node mm/slub.c:4229 [inline] kmem_cache_alloc_node_noprof+0x1bb/0x3c0 mm/slub.c:4281 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1055 [inline] wireless_send_event+0x510/0xc20 net/wireless/wext-core.c:592 __cfg80211_ibss_joined+0x381/0x430 net/wireless/ibss.c:55 cfg80211_process_wdev_events+0x38a/0x4f0 net/wireless/util.c:1170 cfg80211_process_rdev_events+0xa1/0x110 net/wireless/util.c:1197 cfg80211_event_work+0x31/0x70 net/wireless/core.c:331 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x1790 kernel/workqueue.c:3319 worker_thread+0xa57/0xfc0 kernel/workqueue.c:3400 kthread+0x711/0x890 kernel/kthread.c:464 ret_from_fork+0x3f8/0x760 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Freed by task 9: 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:2417 [inline] slab_free_freelist_hook mm/slub.c:2446 [inline] slab_free_bulk mm/slub.c:4704 [inline] kmem_cache_free_bulk+0x2d1/0x520 mm/slub.c:5283 kfree_skb_list_reason+0x3e9/0x460 net/core/skbuff.c:1253 skb_release_data+0x61e/0x7c0 net/core/skbuff.c:1084 skb_release_all net/core/skbuff.c:1151 [inline] __kfree_skb net/core/skbuff.c:1165 [inline] consume_skb+0x9e/0xf0 net/core/skbuff.c:1397 netlink_broadcast_filtered+0x1186/0x12c0 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+0xf0/0x1a0 net/netlink/af_netlink.c:2595 wireless_nlevent_flush net/wireless/wext-core.c:354 [inline] wireless_nlevent_process+0x93/0x110 net/wireless/wext-core.c:414 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x1790 kernel/workqueue.c:3319 worker_thread+0xa57/0xfc0 kernel/workqueue.c:3400 kthread+0x711/0x890 kernel/kthread.c:464 ret_from_fork+0x3f8/0x760 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888031a76000 which belongs to the cache skbuff_head_cache of size 240 The buggy address is located 0 bytes inside of freed 240-byte region [ffff888031a76000, ffff888031a760f0) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x31a76 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff888140ed6a00 dead000000000122 0000000000000000 raw: 0000000000000000 00000000000c000c 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 12, tgid 12 (kworker/u8:0), ts 130646904800, free_ts 130642878194 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1851 prep_new_page mm/page_alloc.c:1859 [inline] get_page_from_freelist+0x2b37/0x2ce0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2487 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2655 new_slab mm/slub.c:2709 [inline] ___slab_alloc+0xc1a/0x1470 mm/slub.c:3891 __slab_alloc mm/slub.c:3981 [inline] __slab_alloc_node mm/slub.c:4056 [inline] slab_alloc_node mm/slub.c:4217 [inline] kmem_cache_alloc_node_noprof+0x280/0x3c0 mm/slub.c:4281 __alloc_skb+0x112/0x2d0 net/core/skbuff.c:659 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1055 [inline] wireless_send_event+0x510/0xc20 net/wireless/wext-core.c:592 __cfg80211_ibss_joined+0x381/0x430 net/wireless/ibss.c:55 cfg80211_process_wdev_events+0x38a/0x4f0 net/wireless/util.c:1170 cfg80211_process_rdev_events+0xa1/0x110 net/wireless/util.c:1197 cfg80211_event_work+0x31/0x70 net/wireless/core.c:331 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xae1/0x1790 kernel/workqueue.c:3319 worker_thread+0xa57/0xfc0 kernel/workqueue.c:3400 kthread+0x711/0x890 kernel/kthread.c:464 page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc2/0xd30 mm/page_alloc.c:2895 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xc9c/0x1750 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x860 kernel/softirq.c:579 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968 smpboot_thread_fn+0x542/0xa60 kernel/smpboot.c:160 kthread+0x711/0x890 kernel/kthread.c:464 ret_from_fork+0x3f8/0x760 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888031a75f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888031a75f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888031a76000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888031a76080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc ffff888031a76100: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ==================================================================