aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-12-20 16:00:27 +0000
committerDavid S. Miller <davem@davemloft.net>2012-12-21 13:14:01 -0800
commitf7e75ba1772bc712af0070655ffd8b09906993b5 (patch)
treeef32b318efe584f845f05eb7f65daca803abb6a1 /net/core/sock.c
parentip_gre: make ipgre_tunnel_xmit() not parse network header as IP unconditionally (diff)
downloadlinux-dev-f7e75ba1772bc712af0070655ffd8b09906993b5.tar.xz
linux-dev-f7e75ba1772bc712af0070655ffd8b09906993b5.zip
ip_gre: fix possible use after free
Once skb_realloc_headroom() is called, tiph might point to freed memory. Cache tiph->ttl value before the reallocation, to avoid unexpected behavior. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions