BUG: spinlock bad magic on CPU#0, jfsCommit/277 ================================================================== BUG: KASAN: slab-out-of-bounds in string_nocheck lib/vsprintf.c:642 [inline] BUG: KASAN: slab-out-of-bounds in string+0x223/0x2b0 lib/vsprintf.c:724 Read of size 1 at addr ffff888061147878 by task jfsCommit/277 CPU: 0 PID: 277 Comm: jfsCommit Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 string_nocheck lib/vsprintf.c:642 [inline] string+0x223/0x2b0 lib/vsprintf.c:724 vsnprintf+0xf72/0x1a00 lib/vsprintf.c:2811 vprintk_store+0x33f/0x10d0 kernel/printk/printk.c:2164 vprintk_emit+0x85/0x150 kernel/printk/printk.c:2258 _printk+0xcc/0x110 kernel/printk/printk.c:2299 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+0x1c2/0x280 kernel/locking/spinlock_debug.c:114 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0xb0/0xf0 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xed/0x180 kernel/sched/wait.c:157 unlock_metapage fs/jfs/jfs_metapage.c:37 [inline] release_metapage+0x154/0xe10 fs/jfs/jfs_metapage.c:737 xtTruncate+0xe39/0x2c60 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x337/0x490 fs/jfs/namei.c:758 jfs_evict_inode+0x359/0x430 fs/jfs/inode.c:159 evict+0x485/0x870 fs/inode.c:647 txLazyCommit fs/jfs/jfs_txnmgr.c:2699 [inline] jfs_lazycommit+0x437/0xb20 fs/jfs/jfs_txnmgr.c:2767 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 4192: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x9c/0xd0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] iget_locked+0x191/0x820 fs/inode.c:1308 jfs_iget+0x20/0x3f0 fs/jfs/inode.c:29 jfs_lookup+0x1c2/0x380 fs/jfs/namei.c:1467 __lookup_slow+0x27d/0x3d0 fs/namei.c:1671 lookup_slow+0x53/0x70 fs/namei.c:1688 walk_component+0x319/0x460 fs/namei.c:1984 lookup_last fs/namei.c:2439 [inline] path_lookupat+0x169/0x440 fs/namei.c:2463 filename_lookup+0x1e2/0x4f0 fs/namei.c:2492 user_path_at_empty+0x40/0x190 fs/namei.c:2891 user_path_at include/linux/namei.h:57 [inline] ksys_umount fs/namespace.c:1786 [inline] __do_sys_umount fs/namespace.c:1794 [inline] __se_sys_umount fs/namespace.c:1792 [inline] __x64_sys_umount+0xf1/0x160 fs/namespace.c:1792 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 The buggy address belongs to the object at ffff888061146f00 which belongs to the cache jfs_ip of size 2240 The buggy address is located 184 bytes to the right of 2240-byte region [ffff888061146f00, ffff8880611477c0) The buggy address belongs to the page: page:ffffea0001845000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x61140 head:ffffea0001845000 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff888026455301 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801e11d500 raw: 0000000000000000 00000000800d000d 00000001ffffffff ffff888026455301 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 4406, ts 77444035938, free_ts 77410585069 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5487 alloc_slab_page mm/slub.c:1780 [inline] allocate_slab mm/slub.c:1917 [inline] new_slab+0xc0/0x4b0 mm/slub.c:1980 ___slab_alloc+0x81e/0xdf0 mm/slub.c:3013 __slab_alloc mm/slub.c:3100 [inline] slab_alloc_node mm/slub.c:3191 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x195/0x290 mm/slub.c:3238 jfs_alloc_inode+0x17/0x50 fs/jfs/super.c:105 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x210 fs/inode.c:1001 new_inode+0x25/0x1c0 fs/inode.c:1030 jfs_fill_super+0x392/0xaf0 fs/jfs/super.c:549 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3034 do_mount fs/namespace.c:3377 [inline] __do_sys_mount fs/namespace.c:3585 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3562 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 free_slab mm/slub.c:2020 [inline] discard_slab mm/slub.c:2026 [inline] __unfreeze_partials+0x1a5/0x200 mm/slub.c:2512 put_cpu_partial+0x12d/0x190 mm/slub.c:2592 qlist_free_all+0x35/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x150/0x160 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xd0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519 slab_alloc_node mm/slub.c:3225 [inline] slab_alloc mm/slub.c:3233 [inline] kmem_cache_alloc+0x100/0x290 mm/slub.c:3238 getname_flags+0xb5/0x500 fs/namei.c:138 do_sys_openat2+0xcf/0x4a0 fs/open.c:1249 do_sys_open fs/open.c:1271 [inline] __do_sys_openat fs/open.c:1287 [inline] __se_sys_openat fs/open.c:1282 [inline] __x64_sys_openat+0x135/0x160 fs/open.c:1282 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888061147700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888061147780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff888061147800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888061147880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061147900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================