GSO: Reload iph after pskb_may_pull
authorArnaldo Carvalho de Melo <acme@kernel.org>
Mon, 28 Nov 2016 15:36:58 +0000 (12:36 -0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 01:45:54 +0000 (20:45 -0500)
commita510887824171ad260cc4a2603396c6247fdd091
tree0ced3affea36b2952e9fbced2373080e2a314668
parent725cbb62e7ade1bb29aa21a902d74e72b42a0f3d
GSO: Reload iph after pskb_may_pull

As it may get stale and lead to use after free.

Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Alexander Duyck <aduyck@mirantis.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Fixes: cbc53e08a793 ("GSO: Add GSO type for fixed IPv4 ID")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c