From: Johannes Berg <johannes@sipsolutions.net>
To: Ibrahim Hashimov <security@auditcode.ai>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH net] wifi: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO
Date: Tue, 21 Jul 2026 13:05:06 +0200 [thread overview]
Message-ID: <52df51b04ffce900a95c159319b1cd419f9a3b0f.camel@sipsolutions.net> (raw)
In-Reply-To: <20260711151551.65504-1-security@auditcode.ai>
On Sat, 2026-07-11 at 17:15 +0200, Ibrahim Hashimov wrote:
> hwsim_tx_info_frame_received_nl() casts the HWSIM_ATTR_TX_INFO
> attribute payload to a `struct hwsim_tx_rate *` and then
> unconditionally walks IEEE80211_TX_MAX_RATES (4) entries of it:
[snip]
Way too much text. Please edit manually, LLMs like to be super verbose.
> [HWSIM_ATTR_TX_INFO] = { .type = NLA_BINARY,
> .len = IEEE80211_TX_MAX_RATES *
> sizeof(struct hwsim_tx_rate)},
So, you found the policy, why not fix that instead?
johannes
prev parent reply other threads:[~2026-07-21 11:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-11 15:15 Ibrahim Hashimov
2026-07-21 11:05 ` Johannes Berg [this message]
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=52df51b04ffce900a95c159319b1cd419f9a3b0f.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=security@auditcode.ai \
--cc=stable@vger.kernel.org \
/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®