Skip to content

l2tp: pppol2tp_connect() fixes

Guillaume Nault netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4l2tp: fix pseudo-wire type for sessions created by pppol2tp_connect()net/l2tp/l2tp_ppp.c+1 -00 replies
2/4l2tp: only accept PPP sessions in pppol2tp_connect()net/l2tp/l2tp_ppp.c+6 -00 replies
3/4l2tp: prevent pppol2tp_connect() from creating kernel socketsnet/l2tp/l2tp_ppp.c+9 -00 replies
4/4l2tp: clean up stale tunnel or session in pppol2tp_connect's error pathnet/l2tp/l2tp_ppp.c+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/4] l2tp: pppol2tp_connect() fixes

This series fixes a few remaining issues with pppol2tp_connect().

It doesn't try to prevent invalid configurations that have no effect on kernel's reliability. That would be work for a future patch set.

Patch 2 is the most important as it avoids an invalid pointer dereference crashing the kernel. It depends on patch 1 for correctly identifying L2TP session types.

Patches 3 and 4 avoid creating stale tunnels and sessions.

Guillaume Nault (4):
l2tp: fix pseudo-wire type for sessions created by pppol2tp_connect()
l2tp: only accept PPP sessions in pppol2tp_connect()
l2tp: prevent pppol2tp_connect() from creating kernel sockets
l2tp: clean up stale tunnel or session in pppol2tp_connect's error
path

 net/l2tp/l2tp_ppp.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
Signature · 1 line
2.17.1