================================================================== BUG: KASAN: slab-use-after-free in lbmIODone+0x130e/0x16b0 fs/jfs/jfs_logmgr.c:2192 Read of size 4 at addr ffff88803e343208 by task kworker/u8:3/60 CPU: 1 UID: 0 PID: 60 Comm: kworker/u8:3 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: netns cleanup_net Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 lbmIODone+0x130e/0x16b0 fs/jfs/jfs_logmgr.c:2192 blk_update_request+0x57b/0xe50 block/blk-mq.c:1036 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1167 blk_complete_reqs block/blk-mq.c:1242 [inline] blk_done_softirq+0x10a/0x160 block/blk-mq.c:1247 handle_softirqs+0x1d4/0x6c0 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] __local_bh_enable_ip+0x16f/0x2b0 kernel/softirq.c:325 local_bh_enable include/linux/bottom_half.h:33 [inline] __ieee80211_wake_txqs net/mac80211/util.c:-1 [inline] _ieee80211_wake_txqs+0x909/0xbc0 net/mac80211/util.c:427 ieee80211_wake_queues_by_reason net/mac80211/util.c:663 [inline] __ieee80211_flush_queues+0x6f1/0xa70 net/mac80211/util.c:734 __ieee80211_idle_on net/mac80211/iface.c:99 [inline] __ieee80211_recalc_idle+0x399/0x4b0 net/mac80211/iface.c:146 ieee80211_recalc_idle+0x18/0x50 net/mac80211/iface.c:156 ieee80211_del_chanctx+0x296/0x4d0 net/mac80211/chan.c:1096 ieee80211_free_chanctx+0x2c6/0x390 net/mac80211/chan.c:1110 __ieee80211_link_release_channel+0x55b/0x6a0 net/mac80211/chan.c:2212 ieee80211_ibss_leave+0x47/0x140 net/mac80211/ibss.c:1808 rdev_leave_ibss net/wireless/rdev-ops.h:616 [inline] cfg80211_leave_ibss+0x1d7/0x410 net/wireless/ibss.c:208 cfg80211_leave+0x186/0x200 net/wireless/core.c:1666 cfg80211_netdev_notifier_call+0x208/0x14b0 net/wireless/core.c:1840 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2353 [inline] call_netdevice_notifiers net/core/dev.c:2367 [inline] __dev_close_many+0x114/0x6e0 net/core/dev.c:1809 netif_close_many+0x249/0x660 net/core/dev.c:1864 netif_close+0x160/0x220 net/core/dev.c:1882 dev_close+0xf7/0x210 net/core/dev_api.c:221 cfg80211_shutdown_all_interfaces+0xb0/0x220 net/wireless/core.c:436 ieee80211_remove_interfaces+0x108/0x6a0 net/mac80211/iface.c:2504 ieee80211_unregister_hw+0x5d/0x2d0 net/mac80211/main.c:1725 mac80211_hwsim_del_radio+0x31a/0x500 drivers/net/wireless/virtual/mac80211_hwsim_main.c:6302 hwsim_exit_net+0xea9/0xf70 drivers/net/wireless/virtual/mac80211_hwsim_main.c:7365 ops_exit_list net/core/net_namespace.c:200 [inline] ops_undo_list+0x451/0x8f0 net/core/net_namespace.c:253 cleanup_net+0x57b/0x810 net/core/net_namespace.c:713 process_one_work kernel/workqueue.c:3497 [inline] process_scheduled_works+0xc5d/0x1650 kernel/workqueue.c:3580 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3661 kthread+0x38b/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 5949: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 poison_kmalloc_redzone mm/kasan/common.c:412 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:429 kasan_kmalloc include/linux/kasan.h:267 [inline] __kmalloc_cache_noprof+0x3d0/0x670 mm/slub.c:5680 _kmalloc_noprof include/linux/slab.h:991 [inline] lbmLogInit fs/jfs/jfs_logmgr.c:1819 [inline] lmLogInit+0x3e5/0x1a20 fs/jfs/jfs_logmgr.c:1267 open_inline_log fs/jfs/jfs_logmgr.c:1173 [inline] lmLogOpen+0x4e3/0xf90 fs/jfs/jfs_logmgr.c:1067 jfs_mount_rw+0xf3/0x670 fs/jfs/jfs_mount.c:257 jfs_fill_super+0x769/0xda0 fs/jfs/super.c:533 get_tree_bdev_flags+0x436/0x500 fs/super.c:1821 vfs_get_tree+0x92/0x2a0 fs/super.c:1881 fc_mount fs/namespace.c:1282 [inline] do_new_mount_fc fs/namespace.c:3910 [inline] do_new_mount+0x325/0xb00 fs/namespace.c:3986 do_mount fs/namespace.c:4350 [inline] __do_sys_mount fs/namespace.c:4563 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4540 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5622: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3f/0x90 mm/kasan/common.c:79 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:599 poison_slab_object mm/kasan/common.c:267 [inline] __kasan_slab_free+0x70/0x90 mm/kasan/common.c:299 kasan_slab_free include/linux/kasan.h:239 [inline] slab_free_hook mm/slub.c:2780 [inline] slab_free mm/slub.c:6637 [inline] kfree+0x1c7/0x6d0 mm/slub.c:6930 lbmLogShutdown fs/jfs/jfs_logmgr.c:1862 [inline] lmLogShutdown+0x456/0x850 fs/jfs/jfs_logmgr.c:1681 lmLogClose+0x28c/0x530 fs/jfs/jfs_logmgr.c:1457 jfs_umount+0x2da/0x3b0 fs/jfs/jfs_umount.c:124 jfs_put_super+0x8c/0x190 fs/jfs/super.c:194 generic_shutdown_super+0x140/0x2d0 fs/super.c:723 kill_block_super+0x44/0xa0 fs/super.c:1852 deactivate_locked_super+0xbe/0x110 fs/super.c:558 cleanup_mnt+0x204/0x2a0 fs/namespace.c:1396 task_work_run+0x1d9/0x260 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x705/0x2360 kernel/exit.c:980 do_group_exit+0x22d/0x2f0 kernel/exit.c:1123 __do_sys_exit_group kernel/exit.c:1134 [inline] __se_sys_exit_group kernel/exit.c:1132 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1132 x64_sys_call+0x18c6/0x18d0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803e343200 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 8 bytes inside of freed 256-byte region [ffff88803e343200, ffff88803e343300) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803e342600 pfn:0x3e342 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000240(workingset|head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000240 ffff88813ff16b40 ffffea0000b6d210 ffffea0000b87390 raw: ffff88803e342600 000000000010000c 00000000f5000000 0000000000000000 head: 0080000000000240 ffff88813ff16b40 ffffea0000b6d210 ffffea0000b87390 head: ffff88803e342600 000000000010000c 00000000f5000000 0000000000000000 head: 0080000000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5622, tgid 5622 (syz-executor), ts 86595452786 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1873 prep_new_page+0x22/0xb0 mm/page_alloc.c:1881 get_page_from_freelist+0x280d/0x2850 mm/page_alloc.c:3963 __alloc_frozen_pages_noprof+0x230/0x470 mm/page_alloc.c:5505 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d8/0x350 mm/slub.c:7546 refill_sheaf mm/slub.c:2917 [inline] __pcs_replace_empty_main+0x339/0x690 mm/slub.c:4811 alloc_from_pcs mm/slub.c:4887 [inline] slab_alloc_node mm/slub.c:5021 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_noprof+0x546/0x790 mm/slub.c:5556 _kmalloc_noprof include/linux/slab.h:995 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] new_dir fs/proc/proc_sysctl.c:968 [inline] get_subdir fs/proc/proc_sysctl.c:1012 [inline] sysctl_mkdir_p fs/proc/proc_sysctl.c:1322 [inline] __register_sysctl_table+0xc02/0x1370 fs/proc/proc_sysctl.c:1397 neigh_sysctl_register+0x9b1/0xa90 net/core/neighbour.c:3947 devinet_sysctl_register+0xad/0x200 net/ipv4/devinet.c:2771 inetdev_init+0x2c8/0x4f0 net/ipv4/devinet.c:294 inetdev_event+0x11c4/0x1610 net/ipv4/devinet.c:1580 notifier_call_chain+0x1a5/0x3d0 kernel/notifier.c:86 call_netdevice_notifiers_extack net/core/dev.c:2353 [inline] call_netdevice_notifiers net/core/dev.c:2367 [inline] register_netdevice+0x1c15/0x2290 net/core/dev.c:11784 ip6gre_newlink_common+0x403/0x5b0 net/ipv6/ip6_gre.c:1986 page last free pid 5623 tgid 5623 ts 86531983904 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1415 [inline] __free_frozen_pages+0xfb6/0x1090 mm/page_alloc.c:2971 __slab_free+0x26e/0x2c0 mm/slub.c:5926 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:364 kasan_slab_alloc include/linux/kasan.h:257 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] slab_alloc_node mm/slub.c:5033 [inline] __do_kmalloc_node mm/slub.c:5530 [inline] __kmalloc_node_track_caller_noprof+0x500/0x7b0 mm/slub.c:5662 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x42/0x100 mm/util.c:84 kobject_set_name_vargs+0x61/0x110 lib/kobject.c:274 dev_set_name+0xe2/0x140 drivers/base/core.c:3566 netdev_register_kobject+0xb7/0x350 net/core/net-sysfs.c:2364 register_netdevice+0x17d5/0x2290 net/core/dev.c:11746 veth_newlink+0x4ef/0xde0 drivers/net/veth.c:1885 rtnl_newlink_create+0x305/0x7b0 net/core/rtnetlink.c:4006 __rtnl_newlink net/core/rtnetlink.c:4135 [inline] rtnl_newlink+0x167a/0x1c30 net/core/rtnetlink.c:4252 rtnetlink_rcv_msg+0x802/0xc00 net/core/rtnetlink.c:7169 netlink_rcv_skb+0x226/0x4a0 net/netlink/af_netlink.c:2585 Memory state around the buggy address: ffff88803e343100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803e343180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88803e343200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803e343280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88803e343300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================