Article View: linux.kernel.netdev
Article #8576Re: [PATCH net v3] gtp: Require 'CAP_NET_ADMIN' when joining the gtp multicast group
From: Simon Horman
Date: Thu, 29 Oct 2026 13:55
Date: Thu, 29 Oct 2026 13:55
44 lines
9826 bytes
9826 bytes
On Thu, Oct 29, 2026 at 09:49:35AM +0530, Anil Kaushik wrote: > On Thu, Oct 29, 2026 at 9:38 AM <netdev-bot+sashiko@kernel.org> wrote: > > > > Thank you for your contribution! Sashiko AI review found 1 potential > > issue(s) to consider. > > > > Critical: 0 · High: 1 · Medium: 0 · Low: 0 > > > > If you believe none of the issues are legitimate, please reply to each > > issue of Medium severity or higher and explain why the AI is wrong. > > If any of them are legitimate and you plan to respin, please let patchwork > > know by including "pw-bot: cr" as a separate line at the end of your reply > > (one such reply per series is enough). > > > > - [High] An unprivileged local user can still receive gtp multicast > > notifications (PDP add/delete and echo responses) by joining the… > > > > -- > > > > gtp: Require 'CAP_NET_ADMIN' when joining the gtp multicast group > > > > This patch marks the gtp generic netlink multicast group with > > GENL_MCAST_CAP_NET_ADMIN in drivers/net/gtp.c and with uns-admin-perm in > > the gtp netlink spec. The goal is to stop unprivileged users from > > receiving the PDP context add/delete and echo response notifications, > > which carry the same data as a GETPDP reply. > > > > Yes, this works, but the gap is in the genetlink core, not in gtp. > genl_unregister_mc_groups() clears the members of the IDs it frees, but > nothing clears them when free IDs are given to a new family. So it hits > every modular group with a GENL_MCAST_CAP_* flag, psample and > drop_monitor too. > > This patch is still needed, and it does not change. I will send a > separate fix to net that clears the members of the new IDs in > genl_validate_assign_mc_groups(), like the unregister path does. Thanks Anil, One step at a time seems like a good approach to me. Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID:
<20261029135528.GH257209@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353312-linux-kernel-netdev=dewy.ruReferences:
<20261027130623.3136658-1-anilkaushikwireless@gmail.com> <179324692107.3134.14443689892607921337@kernel.org> <CAG0Mgm_DxY=zZwBW3xEeNE-1LC93OWPkO4HHw=qF2Qhti-Mf4g@mail.gmail.com>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-353312-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] gtp: Require 'CAP_NET_ADMIN' when joining the gtp multicast group Date: Thu, 29 Oct 2026 13:55:28 +0000 Organization: Usenet Network Message-ID: <20261029135528.GH257209@horms.kernel.org> References: <20261027130623.3136658-1-anilkaushikwireless@gmail.com> <179324692107.3134.14443689892607921337@kernel.org> <CAG0Mgm_DxY=zZwBW3xEeNE-1LC93OWPkO4HHw=qF2Qhti-Mf4g@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2021702"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:Z9eV/6mhyxKupknSMmXRnZZUwxs= sha256:EK70mrTbe7tsf9x278glppbS0CP4TDMMjBP3nL07cDA= sha1:oApQQa7zClpd7cW0k4/VLci9Ek0= sha256:jIBQmaf3E5wK0vmTpTxuc62Cnzvm/ETQybYGDkcnBUY= Content-Disposition: inline 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 F0622125C66; Thu, 29 Oct 2026 17:02:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org 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 jZGInNp86JBZ; Thu, 29 Oct 2026 17:02:03 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-353312-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id E1B8A125C67; Thu, 29 Oct 2026 17:01:48 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 83346602CDB; Thu, 29 Oct 2026 13:55:51 +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=1793282134; b=pfUEnKFWo07d1EsIG/pVp8hS+MhbuZ6dgr0JkRc7AeqheA1wJQSmLyqIPshafnx6tBtD fqSDyaiBZ/weaSSWn/A5nQc4i8DybsFHIkMtIWii1uJuWODDCR/Wg+VE1JvSAZHeetjS8 vu7q/iOLLzfKyA8PlZIewEg8oxcqYZ1nc2aArPkMW4PdP/3dChgvIzp8bsoTcDBfrQKa9 l8GQGpRbUxob++BWwiroZ9nub/Hyra7uRlGtktfWN9u/8rNlTFjmnFqpLypkIfz4dCS9z fGz2WaVl18PwyaBvJQN/8ju/lqS+KvwNEDZFV4W4oFUhx6P0wJvYTmpmXqByH/c0I3w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793282134; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=GDJQEL1Snxyy99oTMfKYhvEkJfMxmlyGC8C0OGiTR14=; b=sVhRnC7X1QWn8zNgS2oSxO1QiNWwn1sziuqdKj5cG3NnCXFl7wEkJf3X9aUtvEQKxUQo GoL/cLX7kNgi1qoX7/t9DJG80cKW5DoG8WRMBcdyVDMSDIsBYMH+cx7dLF0mgWo+aayCV r9FwT3O9kMDjgE2Y3tpEelc/fHeKLW5bWo8jHvQcEEmYm13mQRMsspzC1qdIdabYYegAJ 9KkehTgH9HI0+LGmW7owkJn4Pu5j7z6xjYH/8R/RY9eZ3CF2DhFccKY1K1XApFkXOuoOU QY+M/de19p/1YbB3VdmeCYVB0MtZuxyhQWLUa9FmYIiTPmm6SlcT7xjXrtfkAnWIq+A== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A3N1i23X; 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 52CF5606A825; Thu, 29 Oct 2026 13:55:34 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A3N1i23X X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793282133; b=DP5YxxRqLZAWoQw8IHBJ3U0KrATHlnJlvyqWDn07UM/O/Joj81637dxC9JY8CcurJ/KT gNEeZnnhXVyfnHd/yeAKuAjJb72S2ZbZtimFY7dmkrxqXj/JrQu8yD3jk8o3U+ZWAvcPO ypAg5Qh+1LiKwGW0LsKRfwpeHHJZXXoE649WC8uwQ75GBPmPKbhPifK2WWodWCM3BmuNW TIYQBFxX2ht0n7Y5xHadTYDW0m6VlVG3im33LuV+XtIImk4t9BCggN3rThwwoOKH9TF1O FBB6Apvr+7xB9z6onwy1idWUJHTqxiakTE73PH0IZuJL7EthaVoF+NVgy+qoF10E4kw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793282133; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=GDJQEL1Snxyy99oTMfKYhvEkJfMxmlyGC8C0OGiTR14=; b=2qY5dBDVR4rD+rUdxheDBW+7UkC2ZRuamT8Vzz3wX6VfVIuvm3krcZSh58BGSWAmv9AX ocjUr6hM727g5SaLIKrISikDkFrvnte/PpxqBDtQwTBzKecc566JUqJ1PBj/ngSsaBMoE Ne9BQ+F190Qdmff9GWCE3PQmb41LETdEp3UUwT8mkn1kQjwZlI1NGAmYa/lwXWrr5g9cP 9Zfj01jV6sLBrP1Z+/zIiiaoBClk/4qyDruCZUUaIOX/jglzwB7KUXF5tSxFO4Tdp0/CH yUxgJl/NRMll7EjyzHcseFbciLyk3kvYyBwY4VsjL3bWQaCfF6/8vuERRV5G9FYLMew== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=A3N1i23X; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34D8C606A327; Thu, 29 Oct 2026 13:55:32 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E16B1F01828; Thu, 29 Oct 2026 13:55:30 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793282132; bh=GDJQEL1Snxyy99oTMfKYhvEkJfMxmlyGC8C0OGiTR14=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=A3N1i23XhdrIQ9DMeTXMW3vzzSBTR039e22JPwAXJsqQ6sWtIu2bVM6BHazLejQA7 UBad1ev0sBeObnthzMnbWTBjva4JsYG/VzIbK0QEPdMsvQxkuAuXc3tx06ekopUu+1 vN2m+rYcAPU/TwZapeZTzm2tzQxWZALcMCVI6BvVn8HiqFzqxUTKyLds0oBQUhCpTe bIfv79xQiO9B+QsGGsurU0fbp78/jDVM1q0vbTnxG5VAkOXvDFaoeZSNt6gr75IfuJ g54f1iBuFvcFnCamJI4lJQYEkLDfuuAQWt5UJetpdCi/TL/zNRtiUrKCLfuIPPA4dt zpcFAUnD39vLg== X-Cc: netdev-bot+sashiko@kernel.org, pablo@netfilter.org, laforge@gnumonks.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, andrew+netdev@lunn.ch, nicolas.dichtel@6wind.com, osmocom-net-gprs@lists.osmocom.org, netdev@vger.kernel.org, linux-kernel@vger.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 X-In-Reply-To: <CAG0Mgm_DxY=zZwBW3xEeNE-1LC93OWPkO4HHw=qF2Qhti-Mf4g@mail.gmail.com>