================================================================== 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 ffff888024e55418 by task syz.0.228/6429 CPU: 0 PID: 6429 Comm: syz.0.228 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:0x7f76cf58efc9 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:00007f76cebfe038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f76cf7e5fa0 RCX: 00007f76cf58efc9 RDX: 0000000000000000 RSI: 0000200000000000 RDI: 0000000000000000 RBP: 00007f76cf611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000001c0030 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f76cf7e6038 R14: 00007f76cf7e5fa0 R15: 00007fff59d57cd8 Allocated by task 6429: 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 6429: 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 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+0x3d/0x310 kernel/workqueue.c:1651 __queue_work+0xd2c/0x1020 kernel/workqueue.c:1804 queue_work_on+0x121/0x1e0 kernel/workqueue.c:1835 inet6addr_event+0xa0/0xd0 drivers/infiniband/core/roce_gid_mgmt.c:882 notifier_call_chain+0x197/0x390 kernel/notifier.c:93 atomic_notifier_call_chain+0xda/0x180 kernel/notifier.c:231 ipv6_add_addr+0xdad/0x1090 net/ipv6/addrconf.c:1189 addrconf_add_linklocal+0x289/0x6b0 net/ipv6/addrconf.c:3284 addrconf_addr_gen+0x4ac/0x5a0 net/ipv6/addrconf.c:3415 addrconf_init_auto_addrs+0x70e/0xaa0 net/ipv6/addrconf.c:-1 addrconf_notify+0xb62/0x1010 net/ipv6/addrconf.c:3712 notifier_call_chain+0x197/0x390 kernel/notifier.c:93 netdev_state_change+0xd6/0x150 net/core/dev.c:1408 linkwatch_do_dev+0x10d/0x160 net/core/link_watch.c:191 __linkwatch_run_queue+0x40f/0x660 net/core/link_watch.c:244 linkwatch_event+0x4c/0x60 net/core/link_watch.c:287 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 Second to 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 __call_rcu_common kernel/rcu/tree.c:2721 [inline] call_rcu+0x158/0x930 kernel/rcu/tree.c:2837 inetdev_destroy net/ipv4/devinet.c:331 [inline] inetdev_event+0x7df/0x15c0 net/ipv4/devinet.c:1636 notifier_call_chain+0x197/0x390 kernel/notifier.c:93 call_netdevice_notifiers_extack net/core/dev.c:2064 [inline] call_netdevice_notifiers net/core/dev.c:2078 [inline] unregister_netdevice_many_notify+0xf36/0x1810 net/core/dev.c:11086 vti6_exit_batch_net+0x3ca/0x410 net/ipv6/ip6_vti.c:1189 ops_exit_list net/core/net_namespace.c:178 [inline] cleanup_net+0x77f/0xb90 net/core/net_namespace.c:652 process_one_work kernel/workqueue.c:2634 [inline] process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 The buggy address belongs to the object at ffff888024e55400 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 24 bytes inside of freed 192-byte region [ffff888024e55400, ffff888024e554c0) The buggy address belongs to the physical page: page:ffffea0000939540 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x24e55 flags: 0xfff00000000800(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000800 ffff888017841a00 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 0x12c00(GFP_NOIO|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 12105691983, 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_status+0xe7/0x2a0 drivers/usb/core/message.c:1149 usb_get_std_status include/linux/usb.h:1872 [inline] hub_configure drivers/usb/core/hub.c:1625 [inline] hub_probe+0x1e2f/0x37e0 drivers/usb/core/hub.c:1975 usb_probe_interface+0x5a4/0xb00 drivers/usb/core/driver.c:396 call_driver_probe drivers/base/dd.c:-1 [inline] really_probe+0x25b/0xb40 drivers/base/dd.c:658 __driver_probe_device+0x18c/0x330 drivers/base/dd.c:800 page_owner free stack trace missing Memory state around the buggy address: ffff888024e55300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888024e55380: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc >ffff888024e55400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888024e55480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888024e55500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================