[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170329.092657.563935153265006232.davem@davemloft.net>
Date: Wed, 29 Mar 2017 09:26:57 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: g.nault@...halink.fr
Cc: netdev@...r.kernel.org, jchapman@...alix.com
Subject: Re: [PATCH net] l2tp: hold tunnel socket when handling control
frames in l2tp_ip and l2tp_ip6
From: Guillaume Nault <g.nault@...halink.fr>
Date: Wed, 29 Mar 2017 08:44:59 +0200
> The code following l2tp_tunnel_find() expects that a new reference is
> held on sk. Either sk_receive_skb() or the discard_put error path will
> drop a reference from the tunnel's socket.
>
> This issue exists in both l2tp_ip and l2tp_ip6.
>
> Fixes: a3c18422a4b4 ("l2tp: hold socket before dropping lock in l2tp_ip{, 6}_recv()")
> Signed-off-by: Guillaume Nault <g.nault@...halink.fr>
Applied.
Powered by blists - more mailing lists