From: Johannes Berg <johannes@sipsolutions.net>
To: Deepakkumar Karn <dkarn@redhat.com>
Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org,
shaul.triebitz@intel.com,
syzbot+5bb5f06f99924ea0cf86@syzkaller.appspotmail.com
Subject: Re: [PATCH] mac80211_hwsim: fix divide error in mac80211_hwsim_link_info_changed
Date: Sat, 06 Dec 2025 15:56:43 +0100 [thread overview]
Message-ID: <6cc422bb9525be529c6b0d2d25f9869ca41ec77d.camel@sipsolutions.net> (raw)
In-Reply-To: <20251205230344.326220-1-dkarn@redhat.com>
On Sat, 2025-12-06 at 04:33 +0530, Deepakkumar Karn wrote:
> On Fri, 05 Dec 2025 18:39:49 +0100, Johannes Berg wrote:
> > Seems like we should not let userspace do that, to protect all other
> > drivers too, not just hwsim.
>
> As suggested, we should provide a zero-value division check for other
> drivers as well. I will investigate other places where divide errors can
> occur due to edge cases.
What, no no.
> Please let me know if you meant something different. In the meantime,
> I will analyze other drivers for similar cases.
I did. My point is we shouldn't _have_ to check any drivers for this at
all, it's nonsense and higher layers (here cfg80211) should reject it.
johannes
next prev parent reply other threads:[~2025-12-06 14:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 15:35 Deepakkumar Karn
2025-12-05 17:39 ` Johannes Berg
2025-12-05 23:03 ` Deepakkumar Karn
2025-12-06 14:56 ` Johannes Berg [this message]
2025-12-06 17:33 ` Deepakkumar Karn
2025-12-08 8:29 ` Johannes Berg
2025-12-10 18:56 ` Deepak Karn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6cc422bb9525be529c6b0d2d25f9869ca41ec77d.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=dkarn@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=shaul.triebitz@intel.com \
--cc=syzbot+5bb5f06f99924ea0cf86@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®