================================================================== BUG: KASAN: slab-use-after-free in drop_metapage fs/jfs/jfs_metapage.c:311 [inline] BUG: KASAN: slab-use-after-free in release_metapage+0x753/0xab0 fs/jfs/jfs_metapage.c:892 Read of size 8 at addr ffff88801dfd3ec8 by task jfsCommit/122 CPU: 1 UID: 0 PID: 122 Comm: jfsCommit Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xba/0x230 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 drop_metapage fs/jfs/jfs_metapage.c:311 [inline] release_metapage+0x753/0xab0 fs/jfs/jfs_metapage.c:892 txUnlock+0x509/0xdc0 fs/jfs/jfs_txnmgr.c:948 txLazyCommit fs/jfs/jfs_txnmgr.c:2683 [inline] jfs_lazycommit+0x52c/0xa10 fs/jfs/jfs_txnmgr.c:2734 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x51e/0xb90 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 5921: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4538 [inline] slab_alloc_node mm/slub.c:4866 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4873 mempool_alloc_noprof+0x1d4/0x300 mm/mempool.c:566 alloc_metapage fs/jfs/jfs_metapage.c:264 [inline] __get_metapage+0x50c/0xde0 fs/jfs/jfs_metapage.c:760 dtSplitRoot+0x202/0x16c0 fs/jfs/jfs_dtree.c:1910 dtSplitUp fs/jfs/jfs_dtree.c:993 [inline] dtInsert+0xf19/0x5f10 fs/jfs/jfs_dtree.c:871 jfs_rename+0x89d/0x1860 fs/jfs/namei.c:1226 vfs_rename+0xa96/0xeb0 fs/namei.c:6032 filename_renameat2+0x539/0x9c0 fs/namei.c:6150 __do_sys_rename fs/namei.c:6194 [inline] __se_sys_rename+0x55/0x2c0 fs/namei.c:6190 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5921: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2685 [inline] slab_free mm/slub.c:6165 [inline] kmem_cache_free+0x185/0x6b0 mm/slub.c:6295 mempool_free+0xf5/0x140 mm/mempool.c:711 free_metapage fs/jfs/jfs_metapage.c:279 [inline] drop_metapage fs/jfs/jfs_metapage.c:316 [inline] release_metapage+0x84c/0xab0 fs/jfs/jfs_metapage.c:892 dtSearch+0x557/0x21b0 fs/jfs/jfs_dtree.c:789 jfs_lookup+0x1b0/0x420 fs/jfs/namei.c:1464 __lookup_slow+0x2d2/0x440 fs/namei.c:1916 lookup_slow+0x53/0x70 fs/namei.c:1933 walk_component fs/namei.c:2279 [inline] link_path_walk+0xd1e/0x18d0 fs/namei.c:2653 path_parentat fs/namei.c:2857 [inline] __filename_parentat+0x27f/0x6f0 fs/namei.c:2881 filename_parentat fs/namei.c:2899 [inline] filename_renameat2+0x1ef/0x9c0 fs/namei.c:6091 __do_sys_rename fs/namei.c:6194 [inline] __se_sys_rename+0x55/0x2c0 fs/namei.c:6190 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88801dfd3ea0 which belongs to the cache jfs_mp of size 248 The buggy address is located 40 bytes inside of freed 248-byte region [ffff88801dfd3ea0, ffff88801dfd3f98) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1dfd3 flags: 0x80000000000000(node=0|zone=1) page_type: f5(slab) raw: 0080000000000000 ffff88801dfcf000 dead000000000122 0000000000000000 raw: 0000000000000000 00000008000d000d 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 5152246088, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab+0x77/0x660 mm/slub.c:3481 new_slab mm/slub.c:3539 [inline] refill_objects+0x334/0x3c0 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x35c/0x710 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] kmem_cache_alloc_noprof+0x433/0x680 mm/slub.c:4873 mempool_init_node+0x210/0x4f0 mm/mempool.c:259 mempool_create_node_noprof+0xb8/0x150 mm/mempool.c:323 metapage_init+0xed/0x150 fs/jfs/jfs_metapage.c:292 init_jfs_fs+0xfd/0x4e0 fs/jfs/super.c:968 do_one_initcall+0x250/0x8d0 init/main.c:1382 do_initcall_level+0x104/0x190 init/main.c:1444 do_initcalls+0x59/0xa0 init/main.c:1460 kernel_init_freeable+0x2a6/0x3e0 init/main.c:1692 kernel_init+0x1d/0x1d0 init/main.c:1582 page_owner free stack trace missing Memory state around the buggy address: ffff88801dfd3d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801dfd3e00: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff88801dfd3e80: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801dfd3f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801dfd3f80: fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================