l2tp: Fix PPP header erasure and memory leak
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 12 Jun 2013 14:07:23 +0000 (16:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jun 2013 18:27:33 +0000 (11:27 -0700)
commit3bf35eb3ed7e643b9562cf05b919b281e0f1b79a
tree6e7b6e37f667a8c5d83923ec97c69d2b0e8e1604
parent991e73ccb5a0499588565dd8b9fd06c4bd6bce81
l2tp: Fix PPP header erasure and memory leak

[ Upstream commit 55b92b7a11690bc377b5d373872a6b650ae88e64 ]

Copy user data after PPP framing header. This prevents erasure of the
added PPP header and avoids leaking two bytes of uninitialised memory
at the end of skb's data buffer.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/l2tp/l2tp_ppp.c