Article View: linux.kernel.netdev
Article #11697Re: [PATCH net v5 1/2] genetlink: Reject joining multicast groups no family owns
From: Anil Kaushik
Date: Thu, 05 Nov 2026 12:49
Date: Thu, 05 Nov 2026 12:49
28 lines
12407 bytes
12407 bytes
> 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
Technical Details
Message-ID:
<20261105124927.336300-1-anilkaushikwireless@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357341-linux-kernel-netdev=dewy.ruReferences:
<179387152067.488856.5027284112549941042@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357341-linux-kernel-netdev=dewy.ru
From: anilkaushikwireless@gmail.com (Anil Kaushik)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5 1/2] genetlink: Reject joining multicast groups no family owns
Date: Thu, 5 Nov 2026 12:49:27 +0000
Organization: Usenet Network
Message-ID: <20261105124927.336300-1-anilkaushikwireless@gmail.com>
References: <179387152067.488856.5027284112549941042@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3641353"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WN7FIZpjeg6oeONYKVcjokZ5tFg= sha256:sx5PFaV1upXaLQXjI+7v3O+5FCgIT+hkYaXEFXKWJuM=
sha1:gwqmiPbUn0i2mBHNkMwkd409mIo= sha256:0MnSa9g2yrdxLyVId9oyyCOSWB9aOKRaqPWyQ+FgHWM=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id DB91E112F90; Thu, 5 Nov 2026 16:05:29 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id DshaICzeXJ1y;
Thu, 5 Nov 2026 16:05:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357341-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 978F8112F8C; Thu, 5 Nov 2026 16:05:17 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 0520B3F0DF; Thu, 5 Nov 2026 12:49:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793882982;
b=iKqaBdvfP7+SOEvBLDchnIiCRl1Oc+e4AZfcCYhN5dZCnY4mizILOjXoKP4CvJNHQbxS
lbkIiH8ScYHrRVTzTxjBDt8mhO1CKE+Kxh9W3VPqHeszFD+X1F2CHPjPmsm0MADkhc4w1
9FgSSgrxMxBOMz1Gr7wEk3a08jUQrU1czKBwPP3KCxWEfoo4N0V+4POhjlJEVSfgiQUGL
jUKT1x/3yAMuX5d66oNAGgrXklosS1tWMJzEyUqAWymLA8bXwXKLfgJ2YH742VUR8QwAD
8MW88qZkVq+p7pA43JkDxCvwxWdnbyZPiGyWLFPKnS1AT+afB5tyYjb/A0Je96bhKqw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793882982;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=n8S5ScCzZMKTwtLSsBjbF893S2FXC4EMIPZpDHsFCCs=;
b=ZGZvAowERDb7PmQmSw1pvzUtc36x3mQxPJL/UiWy/WfuxPXog3pm/9sxsEz6o2uwc/Y+
7291/kKPNDoQb/62XgYkxpnYOIjUvmwHN1QpAaB81MhPkEuvsf7X/o/oUFWiLx51Q9uLV
458M6C0s26IAzl7vGOrB4nxDBe2o7NCWTZim5/2GMqzLFeFM1AB6uiRLpCk6hJFQyIpk4
Uc0tnFagtxKaY9aFKhHF/8cQGZGK4zZ3TUIBPd1SdHraIinw7jJtLMTfHW8RD6xfnCtPe
xjTECgGc338csHGSXSqVr3EXGo2B0ylJTl37nsToYEwpmBkyLHeztSpTny60x2212Aw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=wdP5O4ti;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id D6348606D805;
Thu, 5 Nov 2026 12:49:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=wdP5O4ti
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.169
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793882977;
b=LKX+r0iwkrTsGIAgaoyc4Z36rDZkCpPMBfov3PbFMKpCca9fXEexAFfKcCcxNrY1i0bz
RGwx5lC9ILvfXF4Mpho9Morb6zO4CYpggzCCncdW3djQJVH9kZ9N/Ix2+gPIJwwVvlIYw
P4t4XiuLIXw/zptV+0TkrRrwqxXeDwTunHdJndsiVl5+kdxCwKDOOkEXasNjzyaSt6BOF
B6x8kDeKjWfzvOEQyOMfeJE5CEqE70AOI6Xn4/k5Adr8PomCOhXNJ/pd9umBwX4OVufIu
1Bje+7AFkMysnKCNaiYhCFuYONJp0Zi8lUvCUl2VRBCVnu/GHtOSX6RDZ5QGF2tenXg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793882977;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-Id:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=n8S5ScCzZMKTwtLSsBjbF893S2FXC4EMIPZpDHsFCCs=;
b=3q4b4RoEOIjicjroR1ZCokvTWxmrwzspCK1fXumNzE1GvtaJsbnHOdUyfAiQ27Z0ap05
9vM0Frx176heU412orudifL+uOgZjsLXSkVcxOAYBQGXfjWmZ1I9eVXWrblJNbI8uLoip
D9+jyTcrLZ3FTXV8iaPtdNK9MduHW5cJH1G2QcXQPh1dfvP71q37PaKhfBv4R+pBd7lF0
8XGt2wfSfwc3XP2q+Ss1O9TlDjz3Xz7zsYmVT3GokaAsQAWW1fssdiHnYARq4Oh5qEHco
gAHMQsuskljI35PzLTiH/cdWxbfu/QbxIjbDdgCTHBNo2mVB1BixRL9X0GK6cJNC9fw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=wdP5O4ti;
arc=none smtp.remote-ip=74.125.82.169
X-Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4202606D809
for <netdev@vger.kernel.org>; Thu, 5 Nov 2026 12:49:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A4202606D809
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f169.google.com with SMTP id 5a478bee46e88-36dbde64409so1458455eec.0
for <netdev@vger.kernel.org>; Thu, 05 Nov 2026 04:49:36 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793882976; x=1794487776; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=n8S5ScCzZMKTwtLSsBjbF893S2FXC4EMIPZpDHsFCCs=;
b=wdP5O4tihaK2Jy6TtTKVgO20LnlYjG4+DN+QYUKpqF4o5ThaWx8S5x9dW2QuzqFAWc
UrfiSF0epJZ4FEspPg44KxM3lyMbLafCKwJw9Ey4a9oohV80dncqX+8EZdwf1nqQHoUe
uWcEqHo9bcXhPmC+lqEawurzWvIjnJZTcGZgDjU3sVs6I1PIaWV0A+zjmmLLYFay+XTo
zEqRaFDxtzwKO28fnFSA1bM1RO8UewfYH8gITryphoUGLaGsPXVRaUh5xqBBWrYhmG1N
uPiBnzZnjr7MbEE9NatDqYLxEe5JedRsrKNr16FOouw1Uty2calT24LzmtR49wRhJIds
plsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793882976; x=1794487776;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=n8S5ScCzZMKTwtLSsBjbF893S2FXC4EMIPZpDHsFCCs=;
b=ESemeeQZWCppirkEvnU2Qf7dv9ulg6JFRwJ5m6Tn/qUA2QkR0YI9NB3V2g/flE6K4I
S+qdWDe5IjOziK2HJ02MXeht2mw2BWSIXEQbGdxTDPKaeFcd1LJXS2Hcl06nWiW8DbgL
SDZ6UsFPK+uHCzxJP0qz/E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c28rPGNw
==
X-Received: by 2002:a05:7301:6194:10b0:369:f937:9a7a with SMTP id 5a478bee46e88-36a42437876mr29038541eec.34.1793882975233;
Thu, 05 Nov 2026 04:49:35 -0800 (PST)
X-Received: from ramen-dev-security-2.asia-south1-c.c.ramen-dev-345017.internal (90.156.200.35.bc.googleusercontent.com. [35.200.156.90])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-36ca38d46fcsm17708130eec.13.2026.11.05.04.49.29
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 04:49:34 -0800 (PST)
X-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>
X-Mailer: git-send-email 2.25.1
X-In-Reply-To: <179387152067.488856.5027284112549941042@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list