BUG: spinlock bad magic on CPU#0, jfsCommit/275 ================================================================== 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 ffff888060847878 by task jfsCommit/275 CPU: 0 PID: 275 Comm: jfsCommit Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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:153 evict+0x485/0x870 fs/inode.c:647 txLazyCommit fs/jfs/jfs_txnmgr.c:2698 [inline] jfs_lazycommit+0x437/0xb20 fs/jfs/jfs_txnmgr.c:2766 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Allocated by task 4196: 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/0x3c0 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 ffff888060846f00 which belongs to the cache jfs_ip of size 2240 The buggy address is located 184 bytes to the right of 2240-byte region [ffff888060846f00, ffff8880608477c0) The buggy address belongs to the page: page:ffffea0001821000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60840 head:ffffea0001821000 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff8880793eb701 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 0000000000000000 dead000000000122 ffff88801dc3f140 raw: 0000000000000000 00000000000d000d 00000001ffffffff ffff8880793eb701 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 4294, ts 59087473746, free_ts 11763774010 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] iget_locked+0x191/0x820 fs/inode.c:1308 jfs_iget+0x20/0x3c0 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] __do_sys_name_to_handle_at fs/fhandle.c:107 [inline] __se_sys_name_to_handle_at+0x10f/0x4f0 fs/fhandle.c:93 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_contig_range+0x96/0xf0 mm/page_alloc.c:9406 destroy_args+0x100/0xa20 mm/debug_vm_pgtable.c:1018 debug_vm_pgtable+0x318/0x370 mm/debug_vm_pgtable.c:1336 do_one_initcall+0x1ee/0x680 init/main.c:1316 do_initcall_level+0x137/0x1f0 init/main.c:1389 do_initcalls+0x4b/0x90 init/main.c:1405 kernel_init_freeable+0x3ce/0x560 init/main.c:1629 kernel_init+0x19/0x1b0 init/main.c:1520 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff888060847700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888060847780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff888060847800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888060847880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888060847900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================