From: Kees Cook <kees@kernel.org>
To: Jeff Johnson <quic_jjohnson@quicinc.com>
Cc: Greg KH <gregkh@linuxfoundation.org>,
stable@vger.kernel.org, Johannes Berg <johannes@sipsolutions.net>,
Kalle Valo <kvalo@kernel.org>,
Koen Vandeputte <koen.vandeputte@citymesh.com>
Subject: Re: Please backport 2ae5c9248e06 ("wifi: mac80211: Use flexible array in struct ieee80211_tim_ie")
Date: Thu, 27 Jun 2024 09:55:13 -0700 [thread overview]
Message-ID: <202406270953.338CBD20D5@keescook> (raw)
In-Reply-To: <b77e4ae4-fea5-4032-9d76-fbefc1c5dc65@quicinc.com>
On Thu, Jun 27, 2024 at 07:44:48AM -0700, Jeff Johnson wrote:
> On 6/27/2024 12:18 AM, Greg KH wrote:
> > On Wed, Jun 26, 2024 at 11:32:22AM -0700, Jeff Johnson wrote:
> >> Refer to:
> >> https://lore.kernel.org/all/CAPh3n83zb1PwFBFijJKChBqY95zzpYh=2iPf8tmh=YTS6e3xPw@mail.gmail.com/
> >
> > Please provide the information in the email, for those of us traveling
> > with store-and-forward email systems, links don't always work.
>
> Apologies. I was trying to be concise, but over did it.
>
> The issue reported is a splat in 6.6 due to FORTIFY_SOURCE complaining about
> access to an "old style" variable array declared with size 1:
> u8 virtual_map[1];
>
> >> Looks like this should be backported to all LTS kernels where FORTIFY_SOURCE
> >> is expected to be enabled.
> >
> > And where would that exactly be? Have you verified that it will apply
> > properly to those unnamed kernel trees?
>
> I don't know which trees are actively enabling FORTIFY_SOURCE. Since the
> report is coming from 6.6, I would expect we should backport at least to there.
FWIW, FORTIFY_SOURCE is enabled in every distro kernel config I know of
(and has been for a very long time).
> I've cc'd Kees in case he has more definite information, as well as the
> wireless maintainers and the reporter in case they have anything else to add.
>
> The actual fix is trivial, containing just a change to a data structure along
> with a related documentation change. Any conflicts would more likely occur due
> to the documentation rather than the code, since that code definition had been
> unchanged since 2012 but the documentation has been refined over time.
Right, this is fixing the splat -- no other behavioral changes were
seen.
-Kees
--
Kees Cook
next prev parent reply other threads:[~2024-06-27 16:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 18:32 Please backport 2ae5c9248e06 ("wifi: mac80211: Use flexible array in struct ieee80211_tim_ie") Jeff Johnson
2024-06-27 7:18 ` Greg KH
2024-06-27 14:44 ` Jeff Johnson
2024-06-27 16:55 ` Kees Cook [this message]
2024-07-01 12:26 ` Greg KH
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=202406270953.338CBD20D5@keescook \
--to=kees@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=johannes@sipsolutions.net \
--cc=koen.vandeputte@citymesh.com \
--cc=kvalo@kernel.org \
--cc=quic_jjohnson@quicinc.com \
--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