BUG: spinlock bad magic on CPU#1, jfsCommit/108 ================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck lib/vsprintf.c:643 [inline] BUG: KASAN: slab-out-of-bounds in string+0x204/0x290 lib/vsprintf.c:725 Read of size 1 at addr ffff888055187868 by task jfsCommit/108 CPU: 1 PID: 108 Comm: jfsCommit Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x210 mm/kasan/report.c:420 kasan_report+0x10b/0x140 mm/kasan/report.c:524 string_nocheck lib/vsprintf.c:643 [inline] string+0x204/0x290 lib/vsprintf.c:725 vsnprintf+0x10db/0x1c20 lib/vsprintf.c:2805 vprintk_store+0x3d7/0xcf0 kernel/printk/printk.c:2187 vprintk_emit+0x114/0x6a0 kernel/printk/printk.c:2284 _printk+0xda/0x130 kernel/printk/printk.c:2328 spin_dump+0x101/0x1a0 kernel/locking/spinlock_debug.c:63 spin_bug kernel/locking/spinlock_debug.c:77 [inline] debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] do_raw_spin_lock+0x1de/0x2f0 kernel/locking/spinlock_debug.c:114 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0xbc/0x100 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0x107/0x1a0 kernel/sched/wait.c:160 unlock_metapage fs/jfs/jfs_metapage.c:38 [inline] release_metapage+0xbc/0x940 fs/jfs/jfs_metapage.c:736 xtTruncate+0xe4f/0x2d10 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x358/0x4b0 fs/jfs/namei.c:758 jfs_evict_inode+0x34c/0x430 fs/jfs/inode.c:159 evict+0x4b6/0x8b0 fs/inode.c:705 txLazyCommit fs/jfs/jfs_txnmgr.c:2665 [inline] jfs_lazycommit+0x435/0xa90 fs/jfs/jfs_txnmgr.c:2733 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Allocated by task 5190: kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:53 __kasan_slab_alloc+0x6b/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x4b/0x490 mm/slab.h:737 slab_alloc_node mm/slub.c:3359 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x182/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3278 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x1a7/0x8c0 fs/inode.c:1373 jfs_iget+0x20/0x3f0 fs/jfs/inode.c:29 jfs_lookup+0x21d/0x420 fs/jfs/namei.c:1469 __lookup_slow+0x29d/0x3f0 fs/namei.c:1698 lookup_slow+0x53/0x70 fs/namei.c:1715 walk_component+0x2ad/0x3e0 fs/namei.c:2006 lookup_last fs/namei.c:2463 [inline] path_lookupat+0x148/0x420 fs/namei.c:2487 filename_lookup+0x229/0x580 fs/namei.c:2516 user_path_at_empty+0x3e/0x60 fs/namei.c:2956 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1829 [inline] __do_sys_umount fs/namespace.c:1837 [inline] __se_sys_umount fs/namespace.c:1835 [inline] __x64_sys_umount+0xf9/0x170 fs/namespace.c:1835 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888055186f00 which belongs to the cache jfs_ip of size 2240 The buggy address is located 168 bytes to the right of 2240-byte region [ffff888055186f00, ffff8880551877c0) The buggy address belongs to the physical page: page:ffffea0001546000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x55180 head:ffffea0001546000 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888058117501 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888019fb2dc0 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff888058117501 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5086, tgid 5084 (syz.1.153), ts 162322192045, free_ts 28356365006 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560 prep_new_page mm/page_alloc.c:2567 [inline] get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358 __alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658 alloc_slab_page+0x5d/0x180 mm/slub.c:1799 allocate_slab mm/slub.c:1944 [inline] new_slab+0x87/0x2d0 mm/slub.c:1997 ___slab_alloc+0xbc5/0x1240 mm/slub.c:3154 __slab_alloc mm/slub.c:3240 [inline] slab_alloc_node mm/slub.c:3325 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x104/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3278 [inline] jfs_alloc_inode+0x24/0x60 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x1c0 fs/inode.c:1063 new_inode+0x25/0x1d0 fs/inode.c:1091 jfs_fill_super+0x38f/0xab0 fs/jfs/super.c:544 mount_bdev+0x28a/0x3c0 fs/super.c:1454 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632 vfs_get_tree+0x88/0x270 fs/super.c:1584 do_new_mount+0x247/0xa40 fs/namespace.c:3078 do_mount fs/namespace.c:3421 [inline] __do_sys_mount fs/namespace.c:3629 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3606 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1487 [inline] free_pcp_prepare mm/page_alloc.c:1537 [inline] free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509 free_contig_range+0x9d/0x150 mm/page_alloc.c:9498 destroy_args+0xef/0xa0e mm/debug_vm_pgtable.c:1031 debug_vm_pgtable+0x33c/0x38e mm/debug_vm_pgtable.c:1359 do_one_initcall+0x257/0x800 init/main.c:1270 do_initcall_level+0x13d/0x1ed init/main.c:1343 do_initcalls+0x4b/0x8a init/main.c:1359 kernel_init_freeable+0x401/0x5ab init/main.c:1598 kernel_init+0x19/0x1b0 init/main.c:1486 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff888055187700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888055187780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff888055187800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888055187880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888055187900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================