mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: ZhaoJinming <zhaojinming@uniontech.com>
Cc: jv@jvosburgh.net, andrew+netdev@lunn.ch, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	jarod@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, stable@vger.kernel.org
Subject: Re: [PATCH] net: bonding: fix NULL pointer dereference in bond_do_ioctl()
Date: Thu, 04 Jun 2026 09:50:06 +0000	[thread overview]
Message-ID: <178056660688.2344782.1689826187240652656.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260601085649.4029067-1-zhaojinming@uniontech.com>

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Mon,  1 Jun 2026 16:56:49 +0800 you wrote:
> In bond_do_ioctl(), slave_dev is obtained via __dev_get_by_name() which
> can return NULL if the requested interface name does not exist. However,
> the subsequent slave_dbg() call is placed before the NULL check:
> 
>     slave_dev = __dev_get_by_name(net, ifr->ifr_slave);
>     slave_dbg(bond_dev, slave_dev, "slave_dev=%p:\n", slave_dev); //here
>     if (!slave_dev)
>         return -ENODEV;
> 
> [...]

Here is the summary with links:
  - net: bonding: fix NULL pointer dereference in bond_do_ioctl()
    https://git.kernel.org/netdev/net/c/a764b0e8317a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



      reply	other threads:[~2026-06-04  9:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-01  8:56 ZhaoJinming
2026-06-04  9:50 ` patchwork-bot+netdevbpf [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=178056660688.2344782.1689826187240652656.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=jarod@redhat.com \
    --cc=jv@jvosburgh.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=zhaojinming@uniontech.com \
    /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

Powered by JetHome