Re: [PATCH] wifi: cfg80211: Fix page fault in __cfg80211_connect_result()

From: Johannes Berg
Date: Tue Sep 09 2025 - 08:01:53 EST


On Tue, 2025-09-09 at 14:32 +0800, James Guan wrote:
> When I attempted to connect to a virt_wifi device using iw on 6.17-rc5,
> a page fault occurred in __cfg80211_connect_result(), preventing successful
> connection.
>
> The page fault is triggered because virt_wifi_connect_complete() sets
> requested_bss to NULL when no BSSID is specified.
>
> This patch fixes the bug by adding a check for a NULL connected_addr
> before calling ether_addr_copy() in __cfg80211_connect_result().

That might fix the bug, but it makes no sense to have a connection
without an address of the AP that you connected to ...

johannes