[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <717b98574a9037a5e81c929f97cc1258e00ee2f7.camel@sipsolutions.net>
Date: Fri, 05 Dec 2025 18:39:49 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Deepakkumar Karn <dkarn@...hat.com>
Cc: Shaul Triebitz <shaul.triebitz@...el.com>,
linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
syzbot+5bb5f06f99924ea0cf86@...kaller.appspotmail.com
Subject: Re: [PATCH] mac80211_hwsim: fix divide error in
mac80211_hwsim_link_info_changed
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
Powered by blists - more mailing lists