From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net 0/2] l2tp: tunnel creation fixes Date: Wed, 11 Apr 2018 17:42:06 -0400 (EDT) Message-ID: <20180411.174206.1962052793463557355.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, jchapman@katalix.com, tparkin@katalix.com To: g.nault@alphalink.fr Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:47160 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbeDKVnU (ORCPT ); Wed, 11 Apr 2018 17:43:20 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Guillaume Nault Date: Tue, 10 Apr 2018 21:01:07 +0200 > L2TP tunnel creation is racy. We need to make sure that the tunnel > returned by l2tp_tunnel_create() isn't going to be freed while the > caller is using it. This is done in patch #1, by separating tunnel > creation from tunnel registration. > > With the tunnel registration code in place, we can now check for > duplicate tunnels in a race-free way. This is done in patch #2, which > incidentally removes the last use of l2tp_tunnel_find(). Series applied and queued up for -stable, thanks.