From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] l2tp: fix missing refcount drop in pppol2tp_tunnel_ioctl() Date: Fri, 03 Aug 2018 12:42:22 -0700 (PDT) Message-ID: <20180803.124222.615955511660952852.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 To: g.nault@alphalink.fr Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:38702 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728734AbeHCVkD (ORCPT ); Fri, 3 Aug 2018 17:40:03 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Guillaume Nault Date: Fri, 3 Aug 2018 17:00:11 +0200 > If 'session' is not NULL and is not a PPP pseudo-wire, then we fail to > drop the reference taken by l2tp_session_get(). > > Fixes: ecd012e45ab5 ("l2tp: filter out non-PPP sessions in pppol2tp_tunnel_ioctl()") > Signed-off-by: Guillaume Nault > --- > Sorry for the stupid mistake. I guess I got blinded by the apparent > simplicity of the bug when I wrote the original patch. Applied, thanks. I'm pretty sure I backported the commit this fixes, so I'm queueing this up for -stable as well.