Re: [PATCH] wifi: cfg80211: Lock wiphy in cfg80211_get_station

From: Johannes Berg
Date: Tue May 21 2024 - 03:12:46 EST


On Sat, 2024-05-18 at 17:50 +0200, Remi Pommarel wrote:
> Wiphy should be locked before calling rdev_get_station() (see lockdep
> assert in ieee80211_get_station()).
>
> This fixes the following kernel NULL dereference:

How do you get a NULL pointer dereference from a locking issue? Was
something else removing the station simultaneously?

johannes