wlan0 speed is unknown, defaulting to 1000 ================================================================== BUG: KASAN: use-after-free in siw_query_port+0x342/0x430 drivers/infiniband/sw/siw/siw_verbs.c:175 Read of size 4 at addr ffff88805ff940d8 by task kworker/0:6/4212 CPU: 0 PID: 4212 Comm: kworker/0:6 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Workqueue: infiniband ib_cache_event_task Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 print_address_description+0x63/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x16b/0x1c0 mm/kasan/report.c:451 siw_query_port+0x342/0x430 drivers/infiniband/sw/siw/siw_verbs.c:175 ib_cache_update+0x1a8/0xaf0 drivers/infiniband/core/cache.c:1477 ib_cache_event_task+0xef/0x1e0 drivers/infiniband/core/cache.c:1551 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the page: page:ffffea00017fe500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5ff94 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x102a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_HARDWALL), pid 0, ts 100440854013, free_ts 100381989388 create_dummy_stack mm/page_owner.c:59 [inline] register_dummy_stack+0x86/0xe0 mm/page_owner.c:65 init_page_owner+0x30/0x730 mm/page_owner.c:83 kernel_init_freeable+0x420/0x5c0 init/main.c:1613 kernel_init+0x19/0x290 init/main.c:1506 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396 free_nonslab_page+0xe4/0x150 mm/slub.c:3535 kfree+0x1cf/0x270 mm/slub.c:4556 device_release+0x91/0x1c0 kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x224/0x460 lib/kobject.c:761 netdev_run_todo+0xaaf/0xc40 net/core/dev.c:10670 ieee80211_unregister_hw+0x5a/0x220 net/mac80211/main.c:1401 mac80211_hwsim_del_radio+0x2bb/0x4a0 drivers/net/wireless/mac80211_hwsim.c:3473 hwsim_exit_net+0x5b8/0x660 drivers/net/wireless/mac80211_hwsim.c:4243 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x7f1/0xc90 net/core/net_namespace.c:618 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Memory state around the buggy address: ffff88805ff93f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805ff94000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88805ff94080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88805ff94100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88805ff94180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================