mbox series

[net-next,0/2] inet: prevent skb changes in udp{4|6}_lib_lookup_skb()

Message ID 20201109231349.20946-1-eric.dumazet@gmail.com
Headers show
Series inet: prevent skb changes in udp{4|6}_lib_lookup_skb() | expand

Message

Eric Dumazet Nov. 9, 2020, 11:13 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

This came while reviewing Alexander Lobakin patch against UDP GRO:

We want to make sure skb wont be changed by these helpers
while it is owned by GRO stack.

Eric Dumazet (2):
  inet: constify inet_sdif() argument
  inet: udp{4|6}_lib_lookup_skb() skb argument is const

 include/net/ip.h  | 2 +-
 include/net/udp.h | 6 +++---
 net/ipv4/udp.c    | 2 +-
 net/ipv6/udp.c    | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

Comments

Jakub Kicinski Nov. 11, 2020, 1:58 a.m. UTC | #1
On Mon,  9 Nov 2020 15:13:47 -0800 Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@google.com>

> 

> This came while reviewing Alexander Lobakin patch against UDP GRO:

> 

> We want to make sure skb wont be changed by these helpers

> while it is owned by GRO stack.


Applied, thank you!