loop3: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: use-after-free in ciCompare fs/jfs/jfs_dtree.c:3428 [inline] BUG: KASAN: use-after-free in dtSearch+0x16b4/0x21b0 fs/jfs/jfs_dtree.c:645 Read of size 1 at addr ffff88805e178704 by task syz.3.64/6246 CPU: 0 UID: 0 PID: 6246 Comm: syz.3.64 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/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 ciCompare fs/jfs/jfs_dtree.c:3428 [inline] dtSearch+0x16b4/0x21b0 fs/jfs/jfs_dtree.c:645 jfs_lookup+0x155/0x380 fs/jfs/namei.c:1461 lookup_open fs/namei.c:3686 [inline] open_last_lookups fs/namei.c:3807 [inline] path_openat+0x110a/0x3840 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_open fs/open.c:1458 [inline] __se_sys_open fs/open.c:1454 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1454 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efde1d0eba9 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:00007efddff76038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007efde1f55fa0 RCX: 00007efde1d0eba9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000003c0 RBP: 00007efde1d91e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007efde1f56038 R14: 00007efde1f55fa0 R15: 00007ffed3066ba8 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88805e1799c8 pfn:0x5e178 flags: 0x80000000000000(node=0|zone=1) raw: 0080000000000000 ffffea0001249688 ffffea0001784188 0000000000000000 raw: ffff88805e1799c8 0000000000120000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 1, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5833, tgid 5833 (syz-executor), ts 114381137767, free_ts 126833736724 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+0x2119/0x21b0 mm/page_alloc.c:3858 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5148 alloc_pages_mpol+0xd1/0x380 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:2492 [inline] allocate_slab+0x8a/0x370 mm/slub.c:2660 new_slab mm/slub.c:2714 [inline] ___slab_alloc+0x8d1/0xdc0 mm/slub.c:3901 __slab_alloc mm/slub.c:3992 [inline] __slab_alloc_node mm/slub.c:4067 [inline] slab_alloc_node mm/slub.c:4228 [inline] kmem_cache_alloc_lru_noprof+0xea/0x310 mm/slub.c:4259 __d_alloc+0x36/0x7b0 fs/dcache.c:1690 d_alloc_parallel+0xe5/0x1600 fs/dcache.c:2549 __lookup_slow+0x11c/0x3d0 fs/namei.c:1793 simple_start_creating+0xfd/0x1e0 fs/libfs.c:2303 start_creating+0x10f/0x180 fs/debugfs/inode.c:396 __debugfs_create_file+0x79/0x4f0 fs/debugfs/inode.c:431 debugfs_create_file_short+0x3f/0x60 fs/debugfs/inode.c:479 add_sta_files net/mac80211/debugfs_netdev.c:839 [inline] add_files net/mac80211/debugfs_netdev.c:958 [inline] ieee80211_debugfs_add_netdev net/mac80211/debugfs_netdev.c:1011 [inline] ieee80211_debugfs_recreate_netdev+0xa9f/0x1460 net/mac80211/debugfs_netdev.c:1035 ieee80211_if_add+0xc17/0x1390 net/mac80211/iface.c:2274 page last free pid 6073 tgid 6073 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xb59/0xce0 mm/page_alloc.c:2895 __slab_free+0x2db/0x390 mm/slub.c:4606 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:340 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4191 [inline] slab_alloc_node mm/slub.c:4240 [inline] __kmalloc_cache_noprof+0x143/0x320 mm/slub.c:4402 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] kernfs_fop_open+0x3f0/0xdd0 fs/kernfs/file.c:623 do_dentry_open+0x9ae/0x1350 fs/open.c:965 vfs_open+0x3b/0x350 fs/open.c:1095 do_open fs/namei.c:3887 [inline] path_openat+0x2ef1/0x3840 fs/namei.c:4046 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_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88805e178600: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805e178680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88805e178700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88805e178780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88805e178800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================