================================================================== BUG: KASAN: slab-use-after-free in lbmLogShutdown fs/jfs/jfs_logmgr.c:1863 [inline] BUG: KASAN: slab-use-after-free in lmLogInit+0x1165/0x1a30 fs/jfs/jfs_logmgr.c:1416 Read of size 8 at addr ffff888143fe6a18 by task syz.2.19/5963 CPU: 0 PID: 5963 Comm: syz.2.19 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xac/0x220 mm/kasan/report.c:468 kasan_report+0x117/0x150 mm/kasan/report.c:581 lbmLogShutdown fs/jfs/jfs_logmgr.c:1863 [inline] lmLogInit+0x1165/0x1a30 fs/jfs/jfs_logmgr.c:1416 open_inline_log fs/jfs/jfs_logmgr.c:1175 [inline] lmLogOpen+0x4ef/0xfb0 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0xea/0x670 fs/jfs/jfs_mount.c:257 jfs_remount+0x396/0x5b0 fs/jfs/super.c:454 reconfigure_super+0x21e/0x880 fs/super.c:1151 do_remount fs/namespace.c:2927 [inline] path_mount+0xd19/0xfe0 fs/namespace.c:3705 do_mount fs/namespace.c:3726 [inline] __do_sys_mount fs/namespace.c:3935 [inline] __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3912 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbf62b8efc9 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:00007fbf63a41038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fbf62de5fa0 RCX: 00007fbf62b8efc9 RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000000 RBP: 00007fbf62c11f91 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001c0030 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbf62de6038 R14: 00007fbf62de5fa0 R15: 00007ffc270213c8 Allocated by task 5963: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x8f/0xa0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:600 [inline] lbmLogInit fs/jfs/jfs_logmgr.c:1822 [inline] lmLogInit+0x355/0x1a30 fs/jfs/jfs_logmgr.c:1270 open_inline_log fs/jfs/jfs_logmgr.c:1175 [inline] lmLogOpen+0x4ef/0xfb0 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0xea/0x670 fs/jfs/jfs_mount.c:257 jfs_remount+0x396/0x5b0 fs/jfs/super.c:454 reconfigure_super+0x21e/0x880 fs/super.c:1151 do_remount fs/namespace.c:2927 [inline] path_mount+0xd19/0xfe0 fs/namespace.c:3705 do_mount fs/namespace.c:3726 [inline] __do_sys_mount fs/namespace.c:3935 [inline] __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3912 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Freed by task 5963: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4e/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2e/0x50 mm/kasan/generic.c:522 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1811 [inline] slab_free_freelist_hook+0x130/0x1b0 mm/slub.c:1837 slab_free mm/slub.c:3830 [inline] __kmem_cache_free+0xba/0x1f0 mm/slub.c:3843 lbmLogShutdown fs/jfs/jfs_logmgr.c:1865 [inline] lmLogInit+0x1193/0x1a30 fs/jfs/jfs_logmgr.c:1416 open_inline_log fs/jfs/jfs_logmgr.c:1175 [inline] lmLogOpen+0x4ef/0xfb0 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0xea/0x670 fs/jfs/jfs_mount.c:257 jfs_remount+0x396/0x5b0 fs/jfs/super.c:454 reconfigure_super+0x21e/0x880 fs/super.c:1151 do_remount fs/namespace.c:2927 [inline] path_mount+0xd19/0xfe0 fs/namespace.c:3705 do_mount fs/namespace.c:3726 [inline] __do_sys_mount fs/namespace.c:3935 [inline] __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3912 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 The buggy address belongs to the object at ffff888143fe6a00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 24 bytes inside of freed 192-byte region [ffff888143fe6a00, ffff888143fe6ac0) The buggy address belongs to the physical page: page:ffffea00050ff980 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888143fe6900 pfn:0x143fe6 flags: 0x57ff00000000800(slab|node=1|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 057ff00000000800 ffff888017841a00 ffffea000510e150 ffff888140000648 raw: ffff888143fe6900 0000000000100005 00000001ffffffff 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 0x12c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 15906182715, free_ts 0 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 alloc_page_interleave+0x24/0x1e0 mm/mempolicy.c:2120 alloc_slab_page+0x5d/0x170 mm/slub.c:1881 allocate_slab mm/slub.c:2028 [inline] new_slab+0x87/0x2e0 mm/slub.c:2081 ___slab_alloc+0xc6d/0x1300 mm/slub.c:3253 __slab_alloc mm/slub.c:3339 [inline] __slab_alloc_node mm/slub.c:3392 [inline] slab_alloc_node mm/slub.c:3485 [inline] __kmem_cache_alloc_node+0x1a2/0x260 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0xa4/0x240 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] usb_alloc_urb+0x46/0x140 drivers/usb/core/urb.c:75 usb_internal_control_msg drivers/usb/core/message.c:96 [inline] usb_control_msg+0x119/0x3e0 drivers/usb/core/message.c:154 usb_get_string+0xa1/0x3c0 drivers/usb/core/message.c:844 usb_string_sub+0x76/0x420 drivers/usb/core/message.c:883 usb_string+0x38f/0x770 drivers/usb/core/message.c:988 usb_cache_string+0x80/0x130 drivers/usb/core/message.c:1030 usb_enumerate_device drivers/usb/core/hub.c:2502 [inline] usb_new_device+0x297/0x1630 drivers/usb/core/hub.c:2630 page_owner free stack trace missing Memory state around the buggy address: ffff888143fe6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888143fe6980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff888143fe6a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888143fe6a80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888143fe6b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================