From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Nault Subject: [PATCH net 0/4] l2tp: pppol2tp_connect() fixes Date: Wed, 13 Jun 2018 15:09:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: James Chapman To: netdev@vger.kernel.org Return-path: Received: from zimbra.alphalink.fr ([217.15.80.77]:56029 "EHLO zimbra.alphalink.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935575AbeFMNJU (ORCPT ); Wed, 13 Jun 2018 09:09:20 -0400 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: 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(+) -- 2.17.1