From: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
To: "Михаил Лимаренко" <m.limarencko@yandex.ru>,
"Baochen Qiang" <baochen.qiang@oss.qualcomm.com>,
"jjohnson@kernel.org" <jjohnson@kernel.org>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"ath12k@lists.infradead.org" <ath12k@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH ath-next 1/4] wifi: ath12k: validate survey index when frequency is not found
Date: Thu, 12 Feb 2026 08:47:25 -0800 [thread overview]
Message-ID: <8d244744-9897-4c12-8590-423b6a8b1f0c@oss.qualcomm.com> (raw)
In-Reply-To: <1277331770898332@mail.yandex.ru>
On 2/12/2026 4:12 AM, Михаил Лимаренко wrote:
>
> Hi Baochen,
>
> Thanks for the review, good point.
>
> You are right that the current callers already check
> idx >= ARRAY_SIZE(ar->survey), so a direct OOB write is blocked there.
>
> My intent is to make the "frequency not found" case explicit in freq_to_idx(),
> instead of returning a synthetic index, and have callers reject negative values.
> I will respin v2 with corrected commit message/subject (no OOB claim).
>
> Thanks,
> Mikhail
https://subspace.kernel.org/etiquette.html
Please don't top post and don't send HTML e-mail.
Note that lore.kernel.org doesn't archive HTML e-mails...
https://lore.kernel.org/all/1277331770898332@mail.yandex.ru/
/jeff
next prev parent reply other threads:[~2026-02-12 16:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 3:02 [PATCH ath-next 0/4] wifi: ath12k: harden stats/rate handling for WCN785x stability m.limarencko
2026-02-09 3:02 ` [PATCH ath-next 1/4] wifi: ath12k: validate survey index when frequency is not found m.limarencko
2026-02-10 3:37 ` Baochen Qiang
[not found] ` <1277331770898332@mail.yandex.ru>
2026-02-12 16:47 ` Jeff Johnson [this message]
2026-02-09 3:02 ` [PATCH ath-next 2/4] wifi: ath12k: avoid long fw_stats waits on vdev stats hot path m.limarencko
2026-02-10 5:31 ` Baochen Qiang
2026-02-09 3:02 ` [PATCH ath-next 3/4] wifi: ath12k: sanitize invalid MCS metadata in rx path m.limarencko
2026-02-09 3:02 ` [PATCH ath-next 4/4] wifi: ath12k: sanitize invalid MCS metadata in monitor " m.limarencko
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=8d244744-9897-4c12-8590-423b6a8b1f0c@oss.qualcomm.com \
--to=jeff.johnson@oss.qualcomm.com \
--cc=ath12k@lists.infradead.org \
--cc=baochen.qiang@oss.qualcomm.com \
--cc=jjohnson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=m.limarencko@yandex.ru \
/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®