]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 29 Jun 2013 03:06:43 +0000 (04:06 +0100)
commit480efdbc973db5797f68c3002432427893e78458
tree9f26c6b054191cefbe21df2087f3faaf3566e350
parent4f5a75542dff85553a5b2bd2f38e2fe02bca0577
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: Ben Hutchings <ben@decadent.org.uk>
net/l2tp/l2tp_ppp.c