]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add a debug check in __skb_push()
authorEric Dumazet <edumazet@google.com>
Fri, 30 Jan 2026 16:02:53 +0000 (16:02 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Feb 2026 01:24:14 +0000 (17:24 -0800)
commitdc9fd14bd75967d039262d73189fdd123edc5dce
tree2c534a82819d36fbc384226ae788429c1df57403
parent87ef8c26ae40bbac8515f239cc02c3e08916ef4d
net: add a debug check in __skb_push()

Add the following check, to detect bugs sooner for CONFIG_DEBUG_NET=y
builds.

DEBUG_NET_WARN_ON_ONCE(skb->data < skb->head);

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260130160253.2936789-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h