Messages in this thread |  | | Subject | Re: [PATCH] mac80211_hwsim: fix divide error in mac80211_hwsim_link_info_changed | | From | Johannes Berg <> | | Date | Fri, 05 Dec 2025 18:39:49 +0100 |
| |
On Fri, 2025-12-05 at 21:05 +0530, Deepakkumar Karn wrote: > Prevent a division by zero crash when userspace provides a zero beacon > interval value. The crash occurs in the beacon timer setup code path when > info->beacon_int is 0, causing bcn_int to be 0 and triggering a divide > error in the do_div() macro.The issue can be triggered from userspace via > nl80211/cfg80211 when configuring a virtual interface in AP mode with an > invalid beacon interval.
Seems like we should not let userspace do that, to protect all other drivers too, not just hwsim.
johannes
|  |