public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Edwin Peer <edwin.peer@broadcom.com>
Cc: stable@vger.kernel.org, Michael Chan <michael.chan@broadcom.com>,
	Andrew Gospodarek <andrew.gospodarek@broadcom.com>,
	Andrew Boyer <andrew.boyer@dell.com>,
	Shiraz Saleem <shiraz.saleem@intel.com>,
	Doug Ledford <dledford@redhat.com>,
	Henry Orosco <henry.orosco@intel.com>,
	Mustafa Ismail <mustafa.ismail@intel.com>
Subject: Re: RDMA/i40iw: Avoid panic when reading back the IRQ affinity hint
Date: Mon, 17 May 2021 12:33:22 +0200	[thread overview]
Message-ID: <YKJGcjv0nRH+ayTN@kroah.com> (raw)
In-Reply-To: <CAKOOJTwPx5MTU=rjNmmBMD9u22AdSwgiGcf38C5Dj6064XEwaQ@mail.gmail.com>

On Thu, May 13, 2021 at 09:34:46AM -0700, Edwin Peer wrote:
> Hello stable team,
> 
> Please consider adding the following upstream commit to the 4.14 stable series:
> 
> commit 43731753c4b7d832775cf6b2301dd0447a5a1851
> Author: Andrew Boyer <andrew.boyer@dell.com>
> Date:   Mon May 7 13:23:38 2018 -0400
> 
> RDMA/i40iw: Avoid panic when reading back the IRQ affinity hint
> 
> The current code sets an affinity hint with a cpumask_t stored on the
> stack. This value can then be accessed through /proc/irq/*/affinity_hint/,
> causing a segfault or returning corrupt data.
> 
> Move the cpumask_t into struct i40iw_msix_vector so it is available later.
> ...
> ...
> ...
> Fixes: 8e06af711bf2 ("i40iw: add main, hdr, status")
> Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
> Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
> Signed-off-by: Doug Ledford <dledford@redhat.com>
> 
> Note, the fixes tag above appears to be incorrect. The problem was
> introduced in:
> 
> commit e69c5093617afdbd2ab02c289d0adaac044dff66
> Author: Henry Orosco <henry.orosco@intel.com>
> Date:   Wed Nov 9 21:24:48 2016 -0600
> 
> i40iw: Use vector when creating CQs
> 
> Assign each CEQ vector to a different CPU when possible, then
> when creating a CQ, use the vector for the CEQ id. This
> allows completion work to be distributed over multiple cores.
> 
> Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
> Signed-off-by: Henry Orosco <henry.orosco@intel.com>
> Signed-off-by: Doug Ledford <dledford@redhat.com>
> 
> Thus, affected kernels range from 4.10 to pre 4.17.
> 
> Regards,
> Edwin Peer

Now queued up, thanks.

greg k-h


      reply	other threads:[~2021-05-17 10:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-13 16:34 RDMA/i40iw: Avoid panic when reading back the IRQ affinity hint Edwin Peer
2021-05-17 10:33 ` Greg KH [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=YKJGcjv0nRH+ayTN@kroah.com \
    --to=greg@kroah.com \
    --cc=andrew.boyer@dell.com \
    --cc=andrew.gospodarek@broadcom.com \
    --cc=dledford@redhat.com \
    --cc=edwin.peer@broadcom.com \
    --cc=henry.orosco@intel.com \
    --cc=michael.chan@broadcom.com \
    --cc=mustafa.ismail@intel.com \
    --cc=shiraz.saleem@intel.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