================================================================== 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 ffff88807b945618 by task syz.4.127/7074 CPU: 1 PID: 7074 Comm: syz.4.127 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 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+0x4b5/0xf10 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/0x820 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+0x324/0x390 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:0x7f39d518efc9 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:00007f39d5fc2038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f39d53e5fa0 RCX: 00007f39d518efc9 RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000000 RBP: 00007f39d5211f91 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001c0030 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f39d53e6038 R14: 00007f39d53e5fa0 R15: 00007ffde28bdfc8 Allocated by task 7074: 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+0x4b5/0xf10 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/0x820 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+0x324/0x390 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 7074: 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+0x4b5/0xf10 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/0x820 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+0x324/0x390 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 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:45 __kasan_record_aux_stack+0xaf/0xc0 mm/kasan/generic.c:492 insert_work+0x3c/0x240 kernel/workqueue.c:1651 __queue_work+0x9e3/0xd00 kernel/workqueue.c:1800 queue_work_on+0xe7/0x1b0 kernel/workqueue.c:1835 inetaddr_event+0xe4/0x140 drivers/infiniband/core/roce_gid_mgmt.c:868 notifier_call_chain+0x169/0x300 kernel/notifier.c:93 blocking_notifier_call_chain+0x6a/0x90 kernel/notifier.c:388 __inet_insert_ifa+0x803/0x9c0 net/ipv4/devinet.c:570 inet_rtm_newaddr+0xe6a/0x1880 net/ipv4/devinet.c:986 rtnetlink_rcv_msg+0xbbb/0xe10 net/core/rtnetlink.c:6472 netlink_rcv_skb+0x216/0x480 net/netlink/af_netlink.c:2545 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x71b/0x890 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x937/0xba0 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x46a/0x620 net/socket.c:2201 __do_sys_sendto net/socket.c:2213 [inline] __se_sys_sendto net/socket.c:2209 [inline] __x64_sys_sendto+0xde/0xf0 net/socket.c:2209 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 ffff88807b945600 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 24 bytes inside of freed 192-byte region [ffff88807b945600, ffff88807b9456c0) The buggy address belongs to the physical page: page:ffffea0001ee5140 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7b945 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888010441a00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 5552, tgid 5552 (syz-executor), ts 89297235806, free_ts 89281357292 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x26b/0x290 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x2a35/0x2b70 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x430 mm/page_alloc.c:4457 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_slab_page+0x4f/0x170 mm/slub.c:1883 allocate_slab mm/slub.c:2028 [inline] new_slab+0x70/0x260 mm/slub.c:2081 ___slab_alloc+0xa3e/0xee0 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+0x19c/0x250 mm/slub.c:3534 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc_node+0x97/0x1c0 mm/slab_common.c:1014 kmalloc_array_node include/linux/slab.h:698 [inline] kcalloc_node include/linux/slab.h:703 [inline] memcg_alloc_slab_cgroups+0x87/0x130 mm/memcontrol.c:2928 account_slab mm/slab.h:641 [inline] allocate_slab mm/slub.c:2046 [inline] new_slab+0xa8/0x260 mm/slub.c:2081 ___slab_alloc+0xa3e/0xee0 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] slab_alloc mm/slub.c:3503 [inline] __kmem_cache_alloc_lru mm/slub.c:3510 [inline] kmem_cache_alloc_lru+0x193/0x290 mm/slub.c:3526 alloc_inode_sb include/linux/fs.h:2946 [inline] sock_alloc_inode+0x28/0xc0 net/socket.c:308 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x63/0x1d0 fs/inode.c:1049 sock_alloc net/socket.c:634 [inline] __sock_create+0x128/0x8b0 net/socket.c:1535 sock_create net/socket.c:1627 [inline] __sys_socket_create net/socket.c:1664 [inline] __sys_socket+0xd7/0x1a0 net/socket.c:1715 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7d5/0x8e0 mm/page_alloc.c:2336 free_unref_page_list+0xbe/0x7c0 mm/page_alloc.c:2475 release_pages+0x1c35/0x1ea0 mm/swap.c:1022 tlb_batch_pages_flush mm/mmu_gather.c:98 [inline] tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu+0x36a/0x4e0 mm/mmu_gather.c:300 tlb_finish_mmu+0xc3/0x1d0 mm/mmu_gather.c:392 exit_mmap+0x3e0/0xa90 mm/mmap.c:3315 __mmput+0x118/0x3c0 kernel/fork.c:1355 exit_mm+0x12e/0x200 kernel/exit.c:569 do_exit+0x7b3/0x2500 kernel/exit.c:870 do_group_exit+0x21b/0x2d0 kernel/exit.c:1024 __do_sys_exit_group kernel/exit.c:1035 [inline] __se_sys_exit_group kernel/exit.c:1033 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1033 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 Memory state around the buggy address: ffff88807b945500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807b945580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff88807b945600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807b945680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88807b945700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================