]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add skb->data_len and (skb>end - skb->tail) to skb_dump()
authorEric Dumazet <edumazet@google.com>
Mon, 12 Jan 2026 17:26:21 +0000 (17:26 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Jan 2026 03:49:47 +0000 (19:49 -0800)
commit220d89df1da6ed95ac74883a72a5fb43abf2a586
treef0689e600f3ed43b076a66b22bcdc416696f9b29
parent7d7dbafefbe74f5a25efc4807af093b857a7612e
net: add skb->data_len and (skb>end - skb->tail) to skb_dump()

While working on a syzbot report, I found that skb_dump()
is lacking two important parts :

- skb->data_len.

- (skb>end - skb->tail) tailroom is zero if skb is not linear.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260112172621.4188700-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c