[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181113145117.GF1415@alphalink.fr>
Date: Tue, 13 Nov 2018 15:51:17 +0100
From: Guillaume Nault <g.nault@...halink.fr>
To: Xin Long <lucien.xin@...il.com>
Cc: network dev <netdev@...r.kernel.org>, davem@...emloft.net
Subject: Re: [PATCH net] l2tp: fix a sock refcnt leak in l2tp_tunnel_register
On Tue, Nov 13, 2018 at 01:08:25AM +0800, Xin Long wrote:
> This issue happens when trying to add an existent tunnel. It
> doesn't call sock_put() before returning -EEXIST to release
> the sock refcnt that was held by calling sock_hold() before
> the existence check.
>
> This patch is to fix it by holding the sock after doing the
> existence check.
>
Nice fix. Thanks Xin!
Reviewed-by: Guillaume Nault <g.nault@...halink.fr>
Powered by blists - more mailing lists