mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Qingfang Deng <qingfang.deng@linux.dev>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Simon Horman <horms@kernel.org>,
	Tristan Madani <tristan@talencesecurity.com>,
	Norbert Szetei <norbert@doyensec.com>,
	Andrew Morton <akpm@osdl.org>, Paul Mackerras <paulus@ozlabs.org>,
	Matt Domsch <Matt_Domsch@dell.com>,
	Brice Goglin <Brice.Goglin@ens-lyon.org>,
	linux-ppp@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2] ppp: remove SC_MUST_COMP
Date: Thu, 5 Nov 2026 13:32:26 +0100	[thread overview]
Message-ID: <8e63cfcc-6120-4db5-ac2f-8214db2c1fe0@redhat.com> (raw)
In-Reply-To: <20261103015615.2704-1-qingfang.deng@linux.dev>

On 11/3/26 02:56, Qingfang Deng wrote:
> SC_MUST_COMP accidentally shares the same value with SC_DC_ERROR.
> PPPIOCGFLAGS combines configuration flags with transmit and receive
> state, so userspace cannot distinguish them, and a read-modify-write
> sequence can promote a decompression error into SC_MUST_COMP.
> 
> With SC_MUST_COMP set, intentional or not, a fatal decompression error
> (SC_DC_FERROR) causes the receive path to silently drop the failed
> packet before delivering it to userspace. pppd therefore cannot detect
> the error and reset the compressor's state. Subsequent incoming IP and
> CCP packets hit the same check and are also dropped, preventing normal
> recovery.
> 
> The flag entered Linux in 2005 with commit b3f9b92a6ec1 ("[PPP]: add PPP
> MPPE encryption module"). The original patch submission [1] said pppd
> would set it when CCP came up with MPPE enabled. That intended
> integration [2] appears never to have landed upstream.
> 
> Remove the broken and unused SC_MUST_COMP from SC_MASK and SC_FLAG_BITS,
> and remove its transmit and receive drop checks. Keep the uAPI macro and
> mark it as obsolete. PPPIOCSFLAGS will discard this bit while
> PPPIOCGFLAGS can still report it as SC_DC_ERROR.
> 
> [1] https://lore.kernel.org/netdev/20050814141046.GB20944@lists.us.dell.com/
> [2] https://lore.kernel.org/netdev/20050814190529.GA26802@lists.us.dell.com/
> Fixes: b3f9b92a6ec1 ("[PPP]: add PPP MPPE encryption module")
> Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Given the 'broken from beginning' status and the hopefully low impact, I'm
applying this to net-next.

/P


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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03  1:56 Qingfang Deng
2026-11-05 12:32 ` Paolo Abeni [this message]
2026-11-05 12:40 ` patchwork-bot+netdevbpf

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=8e63cfcc-6120-4db5-ac2f-8214db2c1fe0@redhat.com \
    --to=pabeni@redhat.com \
    --cc=Brice.Goglin@ens-lyon.org \
    --cc=Matt_Domsch@dell.com \
    --cc=akpm@osdl.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-ppp@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=norbert@doyensec.com \
    --cc=paulus@ozlabs.org \
    --cc=qingfang.deng@linux.dev \
    --cc=tristan@talencesecurity.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®