The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Martin Schiller <ms@dev.tdt.de>
To: benquike@gmail.com
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, linux-x25@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: lapb: fix uninitialized stack frame fields in lapb_decode()
Date: Mon, 23 Nov 2026 19:17:46 +0100 (CET)	[thread overview]
Message-ID: <4b13f8daeb814d4efbd04427debc1013@dev.tdt.de> (raw)
In-Reply-To: <179018861262.2160803.7893822871484169869@kernel.org>

On Wed, 23 Sep 2026 20:36:52 +0200, netdev-bot wrote:
> - [Medium] The second justification in the commit message is factually
>   wrong.
> - [Medium] The patch bundles an orthogonal receive-path acceptance-policy
>   change into what is presented as an uninitialized-memory fix.

I agree with both points. frame->cr is really left uninitialized for
an unexpected address byte, and it is used by lapb_check_need_response()
and lapb_transmit_frmr(), so zeroing the frame is the right fix for
net. control[1], however, is always set in extended mode and never sent
in standard mode.

Hui, please send a v2 for net, as a new thread with [PATCH net v2] in
the subject, that only adds the memset() and describes this effect,
including how you found the issue. Please drop the Assisted-by: line;
checkpatch rejects it, and tool details can go below the "---" line.

Rejecting frames with an unexpected address byte is a separate
behavioural change: such frames are then dropped silently, and a peer
with a mismatching configuration can no longer bring the link up.
Discarding them matches ISO 7776, as the review notes, so I'm open to
that as a separate patch for net-next, with the consequence spelled out
in the commit message and ideally a lapb_dbg() message for the dropped
frame.

      reply	other threads:[~2026-11-23 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19 21:36 [PATCH] net: lapb: fix uninitialized stack frame fields in lapb_decode() Hui Peng
2026-09-23 18:36 ` netdev-bot+sashiko
2026-11-23 18:17   ` Martin Schiller [this message]

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=4b13f8daeb814d4efbd04427debc1013@dev.tdt.de \
    --to=ms@dev.tdt.de \
    --cc=benquike@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-x25@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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