]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fix a potential use after free in ip_tunnel_core.c
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 17 Oct 2014 08:53:23 +0000 (16:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Oct 2014 03:45:26 +0000 (23:45 -0400)
commita0a51c742959754c32acd1a0a1bb65c3d95db7fc
tree38a3993b3d7e13526c5a9980eb43aaff9ee3c0ad
parent99afe07285320092bd7d78227ee35760b817c674
ipv4: fix a potential use after free in ip_tunnel_core.c

pskb_may_pull() maybe change skb->data and make eth pointer oboslete,
so set eth after pskb_may_pull()

Fixes:fb37cc47("ip_tunnel: push generic protocol handling to ip_tunnel module")
Cc: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c