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(-)

Comments

Xuan Zhuo Nov. 6, 2024, 9:52 a.m. UTC | #1
For serial:

Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>

On Tue,  5 Nov 2024 17:43:56 +0000, Eric Dumazet <edumazet@google.com> wrote:
> 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(-)
>
> --
> 2.47.0.199.ga7371fff76-goog
>
>
patchwork-bot+netdevbpf@kernel.org Nov. 7, 2024, 2 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue,  5 Nov 2024 17:43:56 +0000 you wrote:
> 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()
> 
> [...]

Here is the summary with links:
  - [net-next,1/7] net: skb_reset_mac_len() must check if mac_header was set
    https://git.kernel.org/netdev/net-next/c/1e4033b53db4
  - [net-next,2/7] net: add debug check in skb_reset_inner_transport_header()
    https://git.kernel.org/netdev/net-next/c/cfe8394e06f2
  - [net-next,3/7] net: add debug check in skb_reset_inner_network_header()
    https://git.kernel.org/netdev/net-next/c/1732e4bedb3e
  - [net-next,4/7] net: add debug check in skb_reset_inner_mac_header()
    https://git.kernel.org/netdev/net-next/c/78a0cb2f45dc
  - [net-next,5/7] net: add debug check in skb_reset_transport_header()
    https://git.kernel.org/netdev/net-next/c/ae50ea52bdd7
  - [net-next,6/7] net: add debug check in skb_reset_network_header()
    https://git.kernel.org/netdev/net-next/c/305ae87dafc1
  - [net-next,7/7] net: add debug check in skb_reset_mac_header()
    https://git.kernel.org/netdev/net-next/c/3b6167e9bfc9

You are awesome, thank you!