All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Guangshuo Li" <liguangshuo@mail.sdu.edu.cn>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net] net/mlx4_core: Fix potential special QP allocation leak on setup failure
Date: Sat, 05 Dec 2026 13:05:36 +0000	[thread overview]
Message-ID: <sashiko-outbox-251547@kernel.org> (raw)
In-Reply-To: <20261204130524.2418940-1-liguangshuo@mail.sdu.edu.cn>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] net/mlx4_core: Fixes tag cites refactoring c73c8b1e47ca not
  47605df95398
--

commit 9cb8c4f443dafa8c2e714c8933e5fc6c94a6dd46
Author: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>

> net/mlx4_core: Fix potential special QP allocation leak on setup failure
>
> Multi-function masters also allocate the special QP capability array.
> If later setup fails, the load error path only frees it for slaves.
>
> Release the array for either role, as the normal unload path does.
>
> This issue was found by our static analysis tool under development.
>
> Fixes: c73c8b1e47ca ("net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>

[Severity: Low]
Should the Fixes tag point to 47605df95398 ("mlx4: Modify proxy/tunnel QP
mechanism so that guests do no calculations") instead?

Commit c73c8b1e47ca ("net/mlx4_core: Dynamically allocate structs at
mlx4_slave_cap") only consolidated the special QP arrays into
dev->caps.spec_qps and kept the existing slave-only guard in mlx4_load_one().

The multi-function master allocations in mlx4_init_qp_table() without
load-failure cleanup were introduced earlier by 47605df95398 ("mlx4: Modify
proxy/tunnel QP mechanism so that guests do no calculations"):

  Fixes: 47605df95398 ("mlx4: Modify proxy/tunnel QP mechanism so that guests do no calculations")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204130524.2418940-1-liguangshuo@mail.sdu.edu.cn?part=1

      parent reply	other threads:[~2026-12-05 13:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 13:05 [PATCH net] net/mlx4_core: Fix potential special QP allocation leak on setup failure Guangshuo Li
2026-12-04 13:07 ` netdev-bot+sinfo
2026-12-05 13:05 ` sashiko-bot [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=sashiko-outbox-251547@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=liguangshuo@mail.sdu.edu.cn \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sashiko-reviews@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.