wlan0 speed is unknown, defaulting to 1000 ================================================================== BUG: KASAN: use-after-free in siw_query_port+0x358/0x450 drivers/infiniband/sw/siw/siw_verbs.c:177 Read of size 4 at addr ffff88802fa1c0e0 by task kworker/0:1/14 CPU: 0 PID: 14 Comm: kworker/0:1 Not tainted 6.1.141-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: infiniband ib_cache_event_task Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 print_address_description mm/kasan/report.c:316 [inline] print_report+0xa8/0x220 mm/kasan/report.c:427 kasan_report+0x10b/0x140 mm/kasan/report.c:531 siw_query_port+0x358/0x450 drivers/infiniband/sw/siw/siw_verbs.c:177 ib_cache_update+0x1bb/0x980 drivers/infiniband/core/cache.c:1483 ib_cache_event_task+0xd4/0x1c0 drivers/infiniband/core/cache.c:1557 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 The buggy address belongs to the physical page: page:ffffea0000be8700 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2fa1c flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 ffff8880b8e412b0 ffff8880b8e412b0 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 2, migratetype Unmovable, gfp_mask 0x546dc0(GFP_USER|__GFP_NOWARN|__GFP_RETRY_MAYFAIL|__GFP_COMP|__GFP_ZERO|__GFP_ACCOUNT), pid 7247, tgid 7247 (syz-executor), ts 447144627782, free_ts 571734331752 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] __kmalloc_large_node+0x8c/0x1e0 mm/slab_common.c:1077 __do_kmalloc_node mm/slab_common.c:924 [inline] __kmalloc_node+0x10e/0x240 mm/slab_common.c:943 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0x6c/0x180 mm/util.c:581 kvmalloc include/linux/slab.h:716 [inline] kvzalloc include/linux/slab.h:724 [inline] alloc_netdev_mqs+0x84/0xf00 net/core/dev.c:10719 ieee80211_if_add+0xc08/0x1590 net/mac80211/iface.c:2178 ieee80211_register_hw+0x2d46/0x38c0 net/mac80211/main.c:1402 mac80211_hwsim_new_radio+0x28c2/0x4c40 drivers/net/wireless/mac80211_hwsim.c:4582 hwsim_new_radio_nl+0xafa/0xce0 drivers/net/wireless/mac80211_hwsim.c:5176 genl_family_rcv_msg_doit+0x22e/0x320 net/netlink/genetlink.c:756 genl_family_rcv_msg net/netlink/genetlink.c:833 [inline] genl_rcv_msg+0x5f2/0x780 net/netlink/genetlink.c:850 netlink_rcv_skb+0x1de/0x420 net/netlink/af_netlink.c:2493 genl_rcv+0x24/0x40 net/netlink/genetlink.c:861 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0x74c/0x8c0 net/netlink/af_netlink.c:1337 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare mm/page_alloc.c:1509 [inline] free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479 free_large_kmalloc+0xfd/0x190 mm/slab_common.c:913 device_release+0x92/0x1c0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:681 [inline] kobject_release lib/kobject.c:712 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x21d/0x460 lib/kobject.c:729 netdev_run_todo+0xc8f/0xd80 net/core/dev.c:10509 ieee80211_unregister_hw+0xfc/0x290 net/mac80211/main.c:1485 mac80211_hwsim_del_radio+0x270/0x450 drivers/net/wireless/mac80211_hwsim.c:4683 hwsim_exit_net+0x581/0x640 drivers/net/wireless/mac80211_hwsim.c:5470 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x6f0/0xb80 net/core/net_namespace.c:640 process_one_work+0x898/0x1160 kernel/workqueue.c:2292 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Memory state around the buggy address: ffff88802fa1bf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802fa1c000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88802fa1c080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88802fa1c100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88802fa1c180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================