ipv4: fix a potential use after free in fou.c
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 17 Oct 2014 08:53:47 +0000 (16:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Oct 2014 03:45:26 +0000 (23:45 -0400)
commitd8f00d27105a1553a13d4a96c3eb4544f70ca908
tree2233da4c4587011d7b10e5ce76e5b3be57ae3d62
parent1245dfc8cadb258386fcd27df38215a0eccb1f17
ipv4: fix a potential use after free in fou.c

pskb_may_pull() maybe change skb->data and make uh pointer oboslete,
so reload uh and guehdr

Fixes: 37dd0247 ("gue: Receive side for Generic UDP Encapsulation")
Cc: Tom Herbert <therbert@google.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fou.c