Article View: linux.kernel.netdev
Article #9070Re: [PATCH net] ppp: remove SC_MUST_COMP
From: Qingfang Deng
Date: Sat, 31 Oct 2026 01:28
Date: Sat, 31 Oct 2026 01:28
40 lines
10106 bytes
10106 bytes
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.
Technical Details
Message-ID:
<84396bab-166b-435f-9663-0aa2939de3fc@linux.dev>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354008-linux-kernel-netdev=dewy.ruReferences:
<20261029074935.40509-1-qingfang.deng@linux.dev> <179339596607.3131.10030375792154782283@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-354008-linux-kernel-netdev=dewy.ru From: qingfang.deng@linux.dev (Qingfang Deng) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] ppp: remove SC_MUST_COMP Date: Sat, 31 Oct 2026 09:28:10 +0800 Organization: Usenet Network Message-ID: <84396bab-166b-435f-9663-0aa2939de3fc@linux.dev> References: <20261029074935.40509-1-qingfang.deng@linux.dev> <179339596607.3131.10030375792154782283@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2352082"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bZnusNEbVeJpw66m0RDXOGakPSs= sha256:IT3AT2+baeNE+cKa8u/sSy3UrH1E5onJTOoQGf8Yyno= sha1:f28uKhTuOrm1qwKl75h5+llR2Xc= sha256:x/SzSm5wHw8CZcyvieQcQyxk4KDW0ckBKaoiHs6g/Oc= Content-Language: en-US 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 9A480125BBF; Sat, 31 Oct 2026 04:29:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 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, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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 (1024-bit key) header.d=linux.dev 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 TDadItk-a-xm; Sat, 31 Oct 2026 04:28:58 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354008-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 8E5ED125CAD; Sat, 31 Oct 2026 04:28:48 +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 A80172C904; Sat, 31 Oct 2026 01:28:30 +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=1793410110; b=eX4ZqRT2MEvALeXvsl74bl9wKT/EjAvCKX90h7rZ0kaMVA0umePPL65jvobho3/MNwzF CMoE6OcWfujtBdjAnv83MJDX5wbT7yiFIzek2azGqeWJgQ0XRCDTJimDXxO+JulAqTPth 5OvlMhiQnFjTUc0D/Qt8cfruURmOZst5rEgdrm6nSo9c2d0aCjHAmErPOIx0FusHsVru0 G84eayvgcsYfJ7Wc3XPJF4fSz6I56Y0F6Bg0SFG2/Fwuq5aMjHhy4gtTCLsaeWFsczJSp 9544KzWc/l1a90p7wj3BacQe7v7bzG/3qsh6DYkLOUTYzqOzwdID7bEQX7AhOwJF8Jw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793410110; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=a6ooV5rVY1GQuE6ouKZNNisI0guDE/GpOjIpdYXk4Rs=; b=jkA4iv+y1bj2QCEXcR7NNJffa4pr9DIPXCJWfa2DXIE4sRDKevFHxN+CBhbcBaqwgpKS ULy2sCYwBhI4iKy9tKp8ves5HhzVfEEoolKfwdf8wG+DE5twMp1WtakU17vZ9sQpkG/bN WxFYh3GayD6H4x6a1zCnw8Rndd7RIJ9dDMFYmZQUEf8MJQKriRDL97gNHVRagj2oHzOx+ GTaR6DPsDX2nveGfapRRIQviwtbjmZn9wZMp9W0ygJwPcdz39qGZNAh+0lObB7Y5B9foc AKuJCM3WnGMXOkhziAXsl0hod05gnHA29Gf5SFKCXxkXsziB2MDjLnjmKweMvbZUpvQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Pq9hKRpu; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; 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 27346606A327; Sat, 31 Oct 2026 01:28:30 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Pq9hKRpu X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.234 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793410103; b=aTMaateYw9iOaT3dAvOdWRv7KDt/awG5/flj+AAGp8PUbifIi3sn9wauEHMgqJUKhr7/ e0VGAjMYN6U1960gUoO7uCgZKFyXwv/6koA8V0QvtQRrRsrfZr86FqP5Xvq206oII3dck U+K4CG90+93tWHMd/6l9WjnTGOUjSo5DujX47FbubZDE1UTVN9dZ6/dFHK6j0rb0QG7Ml 9i8twiaEDOkC32NkqJh14cqJ8pEVpQ1tkVxY58bgr3fc2CM75qH5j6XmSfNKtY/5L7OEy cdZlpRPqy34OZR82AZBIZhE6ZevshMYgD7U/dOajPdKspjjfXEqPS0qm9rVrjFky8GA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793410103; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=a6ooV5rVY1GQuE6ouKZNNisI0guDE/GpOjIpdYXk4Rs=; b=TeHeuH234Sy00nq4O58w2R5oIkoAtQN6C3QFbxI4UyZlnGJOydDDkDQ+xO5nWuxWUD/b HircdMoyyLmcHzadYwr96sLi8UHSye6FIvpmMEbIT5nInh9AoLZ1RX0kdEJZCZ/PAPhj/ SBNbJsSOWjJvwsQJ7eICZauBjAvVbozqAnsbuP9BpHeBjrfR0hZi6nuAWXcn8vKopOkKc HyShYreJhwTjWMnrf1zR2zQNNXkG34IuNaFXqINCriKMtg51Rwe6MDOEeswMhlNcj4+tU hrknG+qVYQBlnTdSOtx2Qdn2I6jtEbdlxRnTv6vsXGmvVWrVEbei4U+/mERwFZzqvuA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Pq9hKRpu; arc=none smtp.remote-ip=95.215.58.234 X-Received: from mta1.migadu.com (out-234.mta1.migadu.com [95.215.58.234]) (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 2AB5F606A31C for <netdev@vger.kernel.org>; Sat, 31 Oct 2026 01:28:21 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2AB5F606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=3UXlybLI0iJDYqrDEMOmBWP5abFQsCQpxQAYz2OkJnc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1793410100; v=1; x=1794014900; b=Pq9hKRpuxr+cse55KGlwBn9UFzX5RIiJ1S35PW1gNCjs0PtQj8h6TeVzFoalPYOH9HIbQEbp L2iK2eodgtisxDXfBuuqNCl2dJbsPMaZGJDw3H9zHuZminoWJ4nt2nch5lnWSmU7gGgGQPLNHKl 9agD44Txr2eIAuuH5lPUvoDQ= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 1701bc76d040e0a1; Sat, 31 Oct 2026 01:28:19 +0000 X-Mizu-Trace-ID: 1701bc76d040e0a1 X-Migadu-Flow: FLOW_OUT 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-User-Agent: Mozilla Thunderbird X-Cc: 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-In-Reply-To: <179339596607.3131.10030375792154782283@kernel.org>