From: Eric Dumazet <edumazet@kernel.org>
To: "David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Alexander Aring <alex.aring@gmail.com>
Cc: Simon Horman <horms@kernel.org>,
netdev@vger.kernel.org, edumazet@google.com,
Eric Dumazet <edumazet@kernel.org>
Subject: [PATCH v2 net 0/2] ieee802154: 6lowpan: fix transmit address handling
Date: Fri, 2 Oct 2026 08:27:10 +0000 [thread overview]
Message-ID: <20261002082712.3535213-1-edumazet@kernel.org> (raw)
SEFCOM lab reported a warning in lowpan_compress_addr_64(),
triggered by an AF_PACKET socket sending on a lowpan device.
lowpan_header_create() stores the 802.15.4 addresses in the skb
headroom, where lowpan_xmit() cannot tell if they are valid.
It also reads the IPv6 header before AF_PACKET SOCK_DGRAM sockets
have copied it.
Patch 1 moves the neighbour short address lookup to lowpan_xmit().
Patch 2 pushes the destination address as an 8 byte pseudo header,
like IPoIB, and lets lowpan_xmit() compute the 802.15.4 addresses.
v2: move skb_reset_network_header() from patch 1 to patch 2.
In patch 1, hard_header_len is still 40, and the reset left a stale
transport header for AF_PACKET SOCK_RAW packets (Sashiko).
The code after patch 2 is unchanged.
v1: https://lore.kernel.org/netdev/20260928183753.3550210-1-edumazet@kernel.org/
Eric Dumazet (2):
ieee802154: 6lowpan: look up the neighbour short address in
lowpan_xmit()
6lowpan: fix warning in lowpan_compress_addr_64()
net/ieee802154/6lowpan/6lowpan_i.h | 5 ++
net/ieee802154/6lowpan/core.c | 4 +-
net/ieee802154/6lowpan/tx.c | 128 ++++++++++++++---------------
3 files changed, 70 insertions(+), 67 deletions(-)
--
2.56.0.rc1.315.gc6ed9934b7-goog
next reply other threads:[~2026-10-02 8:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 8:27 Eric Dumazet [this message]
2026-10-02 8:27 ` [PATCH v2 net 1/2] ieee802154: 6lowpan: look up the neighbour short address in lowpan_xmit() Eric Dumazet
2026-10-02 8:27 ` [PATCH v2 net 2/2] 6lowpan: fix warning in lowpan_compress_addr_64() Eric Dumazet
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=20261002082712.3535213-1-edumazet@kernel.org \
--to=edumazet@kernel.org \
--cc=alex.aring@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@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