From: Greg KH <gregkh@linuxfoundation.org>
To: Shiraz Saleem <shiraz.saleem@intel.com>
Cc: stable@vger.kernel.org,
Christopher Bednarz <christopher.n.bednarz@intel.com>
Subject: Re: [PATCH 5.15.x] RDMA/irdma: Prevent zero-length STAG registration
Date: Mon, 18 Dec 2023 12:04:05 +0100 [thread overview]
Message-ID: <2023121856-aviator-subwoofer-d471@gregkh> (raw)
In-Reply-To: <20231215192939.478-1-shiraz.saleem@intel.com>
On Fri, Dec 15, 2023 at 01:29:39PM -0600, Shiraz Saleem wrote:
> From: Christopher Bednarz <christopher.n.bednarz@intel.com>
>
> [Upstream commit bb6d73d9add68ad270888db327514384dfa44958]
>
> Currently irdma allows zero-length STAGs to be programmed in HW during
> the kernel mode fast register flow. Zero-length MR or STAG registration
> disable HW memory length checks.
>
> Improve gaps in bounds checking in irdma by preventing zero-length STAG or
> MR registrations except if the IB_PD_UNSAFE_GLOBAL_RKEY is set.
>
> This addresses the disclosure CVE-2023-25775.
>
> The kernel version to apply this patch is 5.15.x.
>
> Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
> Signed-off-by: Christopher Bednarz <christopher.n.bednarz@intel.com>
> Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
> ---
> drivers/infiniband/hw/irdma/ctrl.c | 6 ++++++
> drivers/infiniband/hw/irdma/type.h | 2 ++
> drivers/infiniband/hw/irdma/verbs.c | 10 ++++++++--
> 3 files changed, 16 insertions(+), 2 deletions(-)
Now queued up, thanks.
greg k-h
prev parent reply other threads:[~2023-12-18 11:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-15 19:29 [PATCH 5.15.x] RDMA/irdma: Prevent zero-length STAG registration Shiraz Saleem
2023-12-18 11:04 ` 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=2023121856-aviator-subwoofer-d471@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=christopher.n.bednarz@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