🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9167

Re: [PATCH net] ppp: remove SC_MUST_COMP

#9167
From: Simon Horman
Date: Sat, 31 Oct 2026 17:48
46 lines
9784 bytes
On Sat, Oct 31, 2026 at 09:28:10AM +0800, Qingfang Deng wrote:
> On 10/31/2026 5:32 AM, netdev-bot+sashiko@kernel.org wrote:
> > [Severity: Medium]
> > Does the fix need the define to be removed from the UAPI header?
> > 
> > PPPIOCSFLAGS already masks the user value with the kernel-internal
> > SC_FLAG_BITS:
> > 
> > drivers/net/ppp/ppp_generic.c:ppp_ioctl() {
> >      ...
> > 		ppp->flags = val & SC_FLAG_BITS;
> >      ...
> > }
> > 
> > Removing the bit from SC_FLAG_BITS (and SC_MASK), together with the two
> > checks, looks like enough to stop SC_DC_ERROR from being stored as a
> > config flag.
> > 
> > Deleting the define is a separate change at the source level. Userspace
> > that includes <linux/ppp-ioctl.h>, directly or through <linux/if_ppp.h>,
> > and refers to SC_MUST_COMP would no longer build.
> > 
> > The commit message calls the flag unused, but the evidence is that one
> > pppd integration from 2005 never landed upstream. That does not rule out
> > out-of-tree pppd MPPE forks or other daemons that use the name.
> > 
> > With the Fixes: tag pointing at a 2005 commit, this header change will
> > likely be backported to the stable kernel-headers as well.
> > 
> > Would it work to keep the define, with a comment that the kernel ignores
> > it and that it aliases SC_DC_ERROR, while still dropping it from
> > SC_FLAG_BITS and SC_MASK and removing the checks?
> 
> I found no trace of existing users (searched GitHub). Even _if_ there are
> any, _and_ SC_MUST_COMP does not alias SC_DC_ERROR, the logic is still
> flawed - received packets are silently dropped without noticing the
> userspace.
> 
> If the goal is to prevent the removal from backports, I may split out the
> removal part into a net-next patch.

I lean towards your existing approach: it's broken, and that brought
to the attention of any user of it.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261031174807.GS257209@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-354114-linux-kernel-netdev=dewy.ru
References: <20261029074935.40509-1-qingfang.deng@linux.dev> <179339596607.3131.10030375792154782283@kernel.org> <84396bab-166b-435f-9663-0aa2939de3fc@linux.dev>

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-354114-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] ppp: remove SC_MUST_COMP
Date: Sat, 31 Oct 2026 17:48:07 +0000
Organization: Usenet Network
Message-ID: <20261031174807.GS257209@horms.kernel.org>
References: <20261029074935.40509-1-qingfang.deng@linux.dev>
 <179339596607.3131.10030375792154782283@kernel.org>
 <84396bab-166b-435f-9663-0aa2939de3fc@linux.dev>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2514680"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0gOOTIzvKF6RyqguoQ54A5ElpYQ= sha256:Em6wuKJ45AotU2tFHRWyr5SwFMNxNArqQckbU95oQ10=
	sha1:z8YuUmZlcQrOA23ok4/BiKsxpCI= sha256:i5VX2WI1Ns7OAYFeVgSWMYHN/CD0pGkm0CgHBRxqFyU=
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 F3018125CB7; Sat, 31 Oct 2026 20:51:11 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 ltL9EouRMHlc;
	Sat, 31 Oct 2026 20:51:08 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354114-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2FB06125CB6; Sat, 31 Oct 2026 20:51:00 +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 CB810277EE; Sat, 31 Oct 2026 17:48:23 +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=1793468903;
	b=1tTcl1JkN/16wiNK3rBC5tS7S5pJSD/Z330dOX67SFSUudIQnXP1gmoadA0iFqnIXFuJ
	 i6EYRzRlcowJ15MpuduTvrKPguod9N2fCk5oBXYT1qYEQf3Et5esmpwscMKVLihbhrQdU
	 pyYz1XfY7Xw24G5ZWaf+l6oNa/turhilwVfD6iFyRS25QSCyFrgW1tg+HvKCl2vIvhFhC
	 5oBozX+h/dnbPmMj8DbydYT/YUCxu6YQ+u2C670dqUH86B4ZI7KAtteGrP40h6Un8IH0x
	 BGC2waHcKKBpjrc2eannslnQyRVG1LZ7gPhjwKQ1MU6IDSz7YabP6BYcnvSAadqiI3A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793468903;
	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:In-Reply-To;
	bh=ijyk755RKB9PH7Ivb9JZ9BkwDVCr81ydGZssI4CFSRs=;
	b=lO5v4PKhXT/Jy6b6cDaK9rmGOtnT45zhpuxnTai57bCPMb6ydU8Khv7XqlIZNJdmvFID
	 IIQyZQBnWo7HxdAyive3tgWXMyXE4XymWZLVJeUyWt7RFXXF0eb1c7hCMWksJdg6AOYUF
	 aJFp7PNMK0cF81NexC0pkiXyMRGvBYNs6iPOt3hC68ntOW0D1lBSJh3wlRdUDDZMMMGw/
	 rWXWqckIYKZ5fetR7+AjMaaEmqY+5r9rzMjX+rsAW6eKIbIopM+YL4O8ZA8HKQTZ5gNwI
	 urPx2r3HvXWSZMiROPmNk5xnKa6rBP94BNbq8puDJV3eBfXVJXl0/Spl0DaK5+h3TRw==
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=la2vvVQR;
	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 A0C21606A322;
	Sat, 31 Oct 2026 17:48:23 +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=la2vvVQR
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=1793468892;
	b=Onii3zYNvxDdZRS5OGHfuhSnCYOWoiiDj4baytp/BgjANgUQrCrEdKOMkuGG9gHO+i7M
	 EeZWql3SAg4I31rxEWHeBi+laVbK8mJYpi+x2DmyerSIqPZAn1vGVRluQHNtsvngMvTiJ
	 xXjENLdfJHP1cyGoCZFqIrt+kf2QNfQyNUiYppXG9j/ILDD0Ry1Eu+oK4cv/oXjUmmHCy
	 F6waj4DTrbBkKSABkqrgD0ApVcIEWQayCt4wzava/eh82mFVPIXdh2M9gigaS1792KGWd
	 G4Z0oCviUTbMH62ZF/w9kGYSXcGs2HJ4wpiaZKj33R3EBkoHw1v6/PJeDl2IEoNqP0w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793468892;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=ijyk755RKB9PH7Ivb9JZ9BkwDVCr81ydGZssI4CFSRs=;
	b=clSmc0RZTcrjmYotIi6anwaCQMJJ6dPgof2yTv5w5VF2+0frUGzfOMAXfoY/InAFxmKL
	 zEkwshgitNXvcS1ajeLcWOno0FPiXKeq4B7Jhzn6gHFn87PZfIJPRtr2IcGpAv+ODju+E
	 DJ1cLsY9IIJ8h3oM+zLULom0dQzG3rYZR+X92jpAdxu33KmaDvSF8MwcrYG/KRg/QKCSk
	 kfpKMHcu/JEyqaK0kmwfp4mZ6xJJLr3+JKraxuuo3PBwnRq5bdOcTZJ2OWz11csi5m6Xv
	 CTyLqzXOr/y0MM6Qg1T4OVWECrku0w/GCd1hdmyGcP4hZNwRF+c/N9hJc8lzAz03HTg==
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=la2vvVQR;
	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 7F205606A31C;
	Sat, 31 Oct 2026 17:48:12 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 218611F000C1;
	Sat, 31 Oct 2026 17:48:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793468892;
	bh=ijyk755RKB9PH7Ivb9JZ9BkwDVCr81ydGZssI4CFSRs=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=la2vvVQRE8Z6QHAsCS0fKIzAKtPb+FEGjiQ48EUiVneGviCjka8mkeMQpPKyEU93A
	 S9gEf20u97yU8JnPvLfu9UngWuC0GPVoxEjkabpjbsuOdQdNqkXEBUG92yuqsU+Bdb
	 MGhctkHvgDU6EmGFfWUVtwnUEU4M8qEWW0TpZ8PNI4nr0BBBvKRu3Si1YMJ/Q/MVCW
	 6UgKUNjyFOD48SH+G+NxiqQxPG9lcj1OnuV6irc+qxuF4eN3yrLc8zU5uvVtN81RGi
	 E6W+YZV7BzCzDCebZTN8HzyfhylhtoaUEjMdNqggPJ9iDtRif/7bSYKOZRLyYI40HS
	 mVv7TzrFt4iQg==
X-Cc: netdev-bot+sashiko@kernel.org, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, leitao@debian.org, norbert@doyensec.com,
	hataegu0826@gmail.com, paulus@ozlabs.org, Brice.Goglin@ens-lyon.org,
	akpm@osdl.org, Matt_Domsch@dell.com, linux-ppp@vger.kernel.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: <84396bab-166b-435f-9663-0aa2939de3fc@linux.dev>