2024-05-21 07:12:41

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH] wifi: cfg80211: Lock wiphy in cfg80211_get_station

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