public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Hardik Gohil <hgohil@mvista.com>, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH v5.10.277] wifi: mac80211: Avoid address calculations via out of bounds array indexing
Date: Thu,  5 Dec 2024 08:34:02 -0500	[thread overview]
Message-ID: <20241205070135-0f425913e33c9d90@stable.kernel.org> (raw)
In-Reply-To: <1729316200-15234-1-git-send-email-hgohil@mvista.com>

[ Sasha's backport helper bot ]

Hi,

The upstream commit SHA1 provided is correct: 2663d0462eb32ae7c9b035300ab6b1523886c718

WARNING: Author mismatch between patch and upstream commit:
Backport author: Hardik Gohil <hgohil@mvista.com>
Commit author: Kenton Groombridge <concord@gentoo.org>


Status in newer kernel trees:
6.12.y | Present (exact SHA1)
6.11.y | Present (exact SHA1)
6.6.y | Present (different SHA1: 26b177ecdd31)
6.1.y | Present (different SHA1: a2bb0c5d0086)
5.15.y | Not found
5.10.y | Not found

Note: The patch differs from the upstream commit:
---
1:  2663d0462eb32 ! 1:  102f30cc3d0ad wifi: mac80211: Avoid address calculations via out of bounds array indexing
    @@ Metadata
      ## Commit message ##
         wifi: mac80211: Avoid address calculations via out of bounds array indexing
     
    +    [ Upstream commit 2663d0462eb32ae7c9b035300ab6b1523886c718 ]
    +
         req->n_channels must be set before req->channels[] can be used.
     
         This patch fixes one of the issues encountered in [1].
    @@ Commit message
         Signed-off-by: Kenton Groombridge <concord@gentoo.org>
         Link: https://msgid.link/20240605152218.236061-1-concord@gentoo.org
         Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    +    [Xiangyu: Modified to apply on 6.1.y and 6.6.y]
    +    Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
    +    Signed-off-by: Sasha Levin <sashal@kernel.org>
    +    Signed-off-by: Hardik Gohil <hgohil@mvista.com>
     
      ## net/mac80211/scan.c ##
     @@ net/mac80211/scan.c: static bool ieee80211_prep_hw_scan(struct ieee80211_sub_if_data *sdata)
    @@ net/mac80211/scan.c: static bool ieee80211_prep_hw_scan(struct ieee80211_sub_if_
      	}
      
     -	local->hw_scan_req->req.n_channels = n_chans;
    - 	ieee80211_prepare_scan_chandef(&chandef);
    + 	ieee80211_prepare_scan_chandef(&chandef, req->scan_width);
      
      	if (req->flags & NL80211_SCAN_FLAG_MIN_PREQ_CONTENT)
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.10.y       |  Success    |  Success   |

      parent reply	other threads:[~2024-12-05 14:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-19  5:36 [PATCH v5.10.277] wifi: mac80211: Avoid address calculations via out of bounds array indexing Hardik Gohil
2024-10-21  9:40 ` Greg KH
2024-10-28 11:32   ` Hardik Gohil
     [not found]   ` <CAH+zgeGXXQOqg5aZnvCXfBhd4ONG25oGoukYJL5-uHYJAo11gQ@mail.gmail.com>
2024-11-06  7:29     ` Greg KH
2024-12-05  6:11       ` [PATCH v5.10.y v5.4.y] " Hardik Gohil
2024-12-05 13:34         ` Sasha Levin
2024-12-12  8:20         ` Greg KH
2024-12-13 10:24           ` Hardik Gohil
2024-12-13 11:12             ` Greg KH
2024-12-05 13:34 ` Sasha Levin [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=20241205070135-0f425913e33c9d90@stable.kernel.org \
    --to=sashal@kernel.org \
    --cc=hgohil@mvista.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