mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: yanjun.zhu@linux.dev, jgg@ziepe.ca, linux-rdma@vger.kernel.org,
	 Peiyang He <peiyang_he@smail.nju.edu.cn>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	 pandit.parav@gmail.com, dledford@redhat.com
Subject: Re: [PATCH v2] RDMA/rxe: Fix OOB in free_rd_atomic_resources()
Date: Wed, 12 Aug 2026 07:54:32 -0400	[thread overview]
Message-ID: <178653567224.16595.8974973380065494257.b4-ty@kernel.org> (raw)
In-Reply-To: <A8FFB80EB4DA06C9+20260730022827.2906506-1-peiyang_he@smail.nju.edu.cn>


On Thu, 30 Jul 2026 10:28:27 +0800, Peiyang He wrote:
> free_rd_atomic_resources() iterates using qp->attr.max_dest_rd_atomic.
> Updating max_dest_rd_atomic before freeing the old array can make the
> free path walk past the old allocation and trigger a slab out-of-bounds
> write catched by KASAN:
> ==================================================================
> BUG: KASAN: slab-out-of-bounds in free_rd_atomic_resource drivers/infiniband/sw/rxe/rxe_qp.c:180 [inline]
> BUG: KASAN: slab-out-of-bounds in free_rd_atomic_resources drivers/infiniband/sw/rxe/rxe_qp.c:171 [inline]
> BUG: KASAN: slab-out-of-bounds in free_rd_atomic_resources drivers/infiniband/sw/rxe/rxe_qp.c:163 [inline]
> BUG: KASAN: slab-out-of-bounds in rxe_qp_from_attr+0x1e88/0x2150 drivers/infiniband/sw/rxe/rxe_qp.c:712
> Write of size 4 at addr ffff88802b8dddb8 by task syz.3.451/11063
> 
> [...]

Applied, thanks!

[1/1] RDMA/rxe: Fix OOB in free_rd_atomic_resources()
      https://git.kernel.org/rdma/rdma/c/2f96d52eabe576

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


      reply	other threads:[~2026-08-12 11:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  2:28 Peiyang He
2026-08-12 11:54 ` Leon Romanovsky [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=178653567224.16595.8974973380065494257.b4-ty@kernel.org \
    --to=leon@kernel.org \
    --cc=dledford@redhat.com \
    --cc=jgg@ziepe.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=pandit.parav@gmail.com \
    --cc=peiyang_he@smail.nju.edu.cn \
    --cc=stable@vger.kernel.org \
    --cc=yanjun.zhu@linux.dev \
    /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®