Commit e0052b8
committed
net: add debug check in skb_reset_mac_header()
JIRA: https://issues.redhat.com/browse/RHEL-96625
Upstream Status: net-next.git commit 3b6167e
commit 3b6167e
Author: Eric Dumazet <edumazet@google.com>
Date: Tue Nov 5 17:44:03 2024 +0000
net: add debug check in skb_reset_mac_header()
Make sure (skb->data - skb->head) can fit in skb->mac_header
This needs CONFIG_DEBUG_NET=y.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://patch.msgid.link/20241105174403.850330-8-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>1 parent b24bfee commit e0052b8
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3055 | 3055 | | |
3056 | 3056 | | |
3057 | 3057 | | |
3058 | | - | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
| 3061 | + | |
3059 | 3062 | | |
3060 | 3063 | | |
3061 | 3064 | | |
| |||
0 commit comments