[lvc-project] [PATCH] cfg80211: Convert WARN_ON() to warning message

Johannes Berg johannes at sipsolutions.net
Thu Sep 26 22:51:45 MSK 2024


On Thu, 2024-09-26 at 16:34 +0300, Vladislav Efanov wrote:
> syzkaller got the following warning:
> ------------[ cut here ]------------
> WARNING: CPU: 0 PID: 9992 at net/wireless/ibss.c:36 __cfg80211_ibss
> 
> This warning is the result of the race condition between the following
> events:
> 
> event1                          event2                      event3
> __ieee80211_sta_join_ibss()        |                          |
> creates new cgf80211_bss           |                          |
> structure.                         |                          |
> Calls cfg80211_ibss_joined()       |                          |
> which will scheduled               |                          |
> new event_work.                    |                          |
>                          ieee80211_ibss_disconnect()          |
>                          is called due to connection          |
>                          dropped/ibss leaves to               |
>                          remove cfg80211_bss structure.       |
>                                                 event_work starts.
>                                           __cfg80211_ibss_joined()
> 

Seems almost better though to solve it by removing the pending work when
disconnecting?

johannes



More information about the lvc-project mailing list