mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anil Kaushik <anilkaushikwireless@gmail.com>
To: netdev@vger.kernel.org
Cc: netdev-bot+sashiko@kernel.org,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>, Ido Schimmel <idosch@nvidia.com>,
	Nicolas Dichtel <nicolas.dichtel@6wind.com>,
	Jacob Keller <jacob.e.keller@intel.com>,
	Jiri Pirko <jiri@resnulli.us>, Florian Westphal <fw@strlen.de>,
	Mat Martineau <martineau@kernel.org>,
	XingWang Xiang <v3rdant.xiang@gmail.com>,
	Alice Ryhl <aliceryhl@google.com>,
	linux-kernel@vger.kernel.org,
	Anil Kaushik <anilkaushikwireless@gmail.com>
Subject: Re: [PATCH net v5 1/2] genetlink: Reject joining multicast groups no family owns
Date: Thu,  5 Nov 2026 12:49:27 +0000	[thread overview]
Message-ID: <20261105124927.336300-1-anilkaushikwireless@gmail.com> (raw)
In-Reply-To: <179387152067.488856.5027284112549941042@kernel.org>

> The commit message says:
>
>     Nothing is ever sent to such a group, so joining it has no use.
>
> Does this hold for the group IDs that genetlink assigns as fixed values?

No, that sentence is too broad. An early join does get the messages once
a family registers. That is the problem this patch fixes.

> Is this regression intended for privileged callers? I couldn't find
> existing userspace that does this; dropwatch appears to resolve the
> family first.

Yes. Before the family registers there are no group flags to check, so
the patch rejects every caller. I don't know of a program that joins
early either. A program that resolves the family first still joins.

> The commit message mentions the getsockname() change and the setsockopt()
> -ENOENT. Could it also say that early subscription to fixed IDs stops
> working for privileged callers, and that NETLINK_LIST_MEMBERSHIPS output
> changes as well?

I can add both, and a comment on the -ENOENT meaning on the bind member,
if a new version is needed. I won't send one only for this unless
someone asks.

Anil

  reply	other threads:[~2026-11-05 12:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  9:21 [PATCH net v5 0/2] genetlink: fix " Anil Kaushik
2026-11-04  9:21 ` [PATCH net v5 1/2] genetlink: Reject " Anil Kaushik
2026-11-05  9:38   ` netdev-bot+sashiko
2026-11-05 12:49     ` Anil Kaushik [this message]
2026-11-04  9:21 ` [PATCH net v5 2/2] netlink: Check a group again if it was released while joining it Anil Kaushik

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=20261105124927.336300-1-anilkaushikwireless@gmail.com \
    --to=anilkaushikwireless@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=fw@strlen.de \
    --cc=horms@kernel.org \
    --cc=idosch@nvidia.com \
    --cc=jacob.e.keller@intel.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martineau@kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nicolas.dichtel@6wind.com \
    --cc=pabeni@redhat.com \
    --cc=v3rdant.xiang@gmail.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

all inboxes | Powered by JetHome®