mbox series

[net-next,0/7] net: add debug checks to skb_reset_xxx_header()

Message ID 20241105174403.850330-1-edumazet@google.com (mailing list archive)
Headers show
Series net: add debug checks to skb_reset_xxx_header() | expand

Message

Eric Dumazet Nov. 5, 2024, 5:43 p.m. UTC
Add debug checks (only enabled for CONFIG_DEBUG_NET=y builds),
to catch bugs earlier.

Eric Dumazet (7):
  net: skb_reset_mac_len() must check if mac_header was set
  net: add debug check in skb_reset_inner_transport_header()
  net: add debug check in skb_reset_inner_network_header()
  net: add debug check in skb_reset_inner_mac_header()
  net: add debug check in skb_reset_transport_header()
  net: add debug check in skb_reset_network_header()
  net: add debug check in skb_reset_mac_header()

 include/linux/skbuff.h | 47 +++++++++++++++++++++++++++++++-----------
 1 file changed, 35 insertions(+), 12 deletions(-)