Netdev List
 help / color / mirror / Atom feed
From: Ryan Prinz <rc4d5a@protonmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: Alexander Aring <alex.aring@gmail.com>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Simon Horman <horms@kernel.org>, Jakub Kicinski <kuba@kernel.org>,
	linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>,
	Ryan Prinz <rc4d5a@protonmail.com>,
	Stefan Schmidt <stefan@datenfreihafen.org>
Subject: Re: [PATCH net v2] ieee802154: 6lowpan: validate fragment offset against datagram size
Date: Mon, 23 Nov 2026 13:42:08 +0000	[thread overview]
Message-ID: <20261123134144.1637522-1-rc4d5a@protonmail.com> (raw)
In-Reply-To: <179484385868.3136.2031122352295651681@kernel.org>

Thanks again, these are correct, and I've made the adjustments.

- [High] Zero-length fragments: agreed, the new check doesn't reject
  skb->len == 0. lowpan_get_cb() only checks !skb->len on the FRAG1
  branch, and that check runs before lowpan_rx_h_ipv6() pulls the
  dispatch byte, so a FRAG1 whose only payload is that byte, or a
  FRAGN carrying nothing but its header, both reach
  lowpan_frag_queue() empty. Adding !skb->len to the bounds check, and
  dropping the "a zero-length final fragment is accepted" wording from
  the commit message. It shouldn't be accepted, and won't be.

- [Medium] Commit message mechanism: agreed, and it follows from your
  next point. Reworded the impact description to stop asserting one
  specific mechanism (the overlap-eviction splice), since that isn't
  reliable given the issue below. The new wording just states what the
  fix itself guarantees: no out-of-range or empty fragment is accepted
  into the queue.

- [High, pre-existing] end = d_size passed to inet_frag_queue_insert()
  instead of the fragment's own offset + skb->len: confirmed by
  tracing both of your examples against the actual insert logic. This
  predates this patch and isn't something this bounds-check patch
  should carry. I'm tracking it as a separate issue to address on its
  own rather than folding it in here.

v4 incoming with the zero-length check added and the commit message
reworded to not overstate the mechanism.

pw-bot: cr


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

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07 22:32 [PATCH] ieee802154: 6lowpan: validate fragment offset against datagram size Ryan Prinz
2026-11-08 13:05 ` [PATCH RESEND] " Ryan Prinz
2026-11-08 14:20 ` [PATCH net " Ryan Prinz
2026-11-09  9:03 ` Ryan Prinz
2026-11-12  9:05   ` netdev-bot+sashiko
2026-11-12 15:29     ` Ryan Prinz
2026-11-12 15:31   ` [PATCH net v2] " Ryan Prinz
2026-11-16 15:44     ` netdev-bot+sashiko
2026-11-23 13:42       ` Ryan Prinz [this message]
2026-11-23 13:43     ` [PATCH net v4] " Ryan Prinz

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=20261123134144.1637522-1-rc4d5a@protonmail.com \
    --to=rc4d5a@protonmail.com \
    --cc=alex.aring@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wpan@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=stefan@datenfreihafen.org \
    /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