mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Ian Rogers <irogers@google.com>, Jon Maloy <jmaloy@redhat.com>,
	Tung Quang Nguyen <tung.quang.nguyen@est.tech>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>
Cc: Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
	Elkin Cruz <elkin@google.com>
Subject: Re: [PATCH net] tipc: validate peer address attributes in tipc_nl_peer_rm()
Date: Wed, 25 Nov 2026 16:44:08 +0100	[thread overview]
Message-ID: <711567da-17c3-4ced-b7c6-e6e6b9376155@redhat.com> (raw)
In-Reply-To: <20261119170556.1518068-1-irogers@google.com>

On 11/19/26 18:05, Ian Rogers wrote:
> tipc_nl_peer_rm() documents TIPC_NLA_NET_ADDR and TIPC_NLA_NET_NODEID as
> mutually exclusive ways to identify the peer to remove, but implements
> them as two independent if-blocks with no fallback check. If a
> TIPC_NL_PEER_REMOVE netlink request provides an empty nested TIPC_NLA_NET
> attribute (or only unrelated TIPC_NLA_NET_* attributes), 'addr' remains
> uninitialized on the stack and is passed into in_own_node() and
> tipc_node_find(). Conversely, if both attributes are supplied, the second
> silently overwrites the first.
> 
> Return -EINVAL when both attributes are present or when neither is
> present.
> 
> Found via an x86_64 LLVM=1 (Clang 21.1.8) allyesconfig audit with
> -Wconditional-uninitialized enabled; fix and changelog drafted with an AI
> coding assistant. Build-tested under LLVM=1 W=1 and
> -Wconditional-uninitialized; not runtime-tested over TIPC netlink.

Testing your own patch is actually required. There are a few exceptions
(i.e. h/w dependency with unavailable H/W), but this is not one of them.

Please resubmit in a few days, after actually testing the patch.

Thanks,

Paolo


      parent reply	other threads:[~2026-11-25 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 17:05 Ian Rogers
2026-11-23  2:30 ` Tung Quang Nguyen
2026-11-25 15:44 ` Paolo Abeni [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=711567da-17c3-4ced-b7c6-e6e6b9376155@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=elkin@google.com \
    --cc=horms@kernel.org \
    --cc=irogers@google.com \
    --cc=jmaloy@redhat.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=netdev@vger.kernel.org \
    --cc=tipc-discussion@lists.sourceforge.net \
    --cc=tung.quang.nguyen@est.tech \
    /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®