From: Ping-Ke Shih <pkshih@realtek.com>
To: Dan Carpenter <dan.carpenter@linaro.org>,
Zong-Zhe Yang <kevin_yang@realtek.com>
Cc: Ping-Ke Shih <pkshih@realtek.com>,
<linux-wireless@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH v2 next] wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
Date: Tue, 10 Jun 2025 09:31:41 +0800 [thread overview]
Message-ID: <74c6ccbf-708d-4ee6-9b4f-16f6b163980a@RTEXDAG02.realtek.com.tw> (raw)
In-Reply-To: <aDbFFkX09K7FrL9h@stanley.mountain>
Dan Carpenter <dan.carpenter@linaro.org> wrote:
> The "link_id" value comes from the user via debugfs. If it's larger
> than BITS_PER_LONG then that would result in shift wrapping and
> potentially an out of bounds access later. In fact, we can limit it
> to IEEE80211_MLD_MAX_NUM_LINKS (15).
>
> Fortunately, only root can write to debugfs files so the security
> impact is minimal.
>
> Fixes: 9dd85e739ce0 ("wifi: rtw89: debug: add mlo_mode dbgfs")
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
> Reviewed-by: Zong-Zhe Yang <kevin_yang@realtek.com>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
53cf488927a0 wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
---
https://github.com/pkshih/rtw.git
prev parent reply other threads:[~2025-06-10 1:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 8:11 Dan Carpenter
2025-05-29 2:15 ` Zong-Zhe Yang
2025-05-29 2:21 ` Ping-Ke Shih
2025-06-10 1:31 ` Ping-Ke Shih [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=74c6ccbf-708d-4ee6-9b4f-16f6b163980a@RTEXDAG02.realtek.com.tw \
--to=pkshih@realtek.com \
--cc=dan.carpenter@linaro.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=kevin_yang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@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®