[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170329.092707.886770535007645317.davem@davemloft.net>
Date: Wed, 29 Mar 2017 09:27:07 -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: purge socket queues in the .destruct()
callback
From: Guillaume Nault <g.nault@...halink.fr>
Date: Wed, 29 Mar 2017 08:45:29 +0200
> The Rx path may grab the socket right before pppol2tp_release(), but
> nothing guarantees that it will enqueue packets before
> skb_queue_purge(). Therefore, the socket can be destroyed without its
> queues fully purged.
>
> Fix this by purging queues in pppol2tp_session_destruct() where we're
> guaranteed nothing is still referencing the socket.
>
> Fixes: 9e9cb6221aa7 ("l2tp: fix userspace reception on plain L2TP sockets")
> Signed-off-by: Guillaume Nault <g.nault@...halink.fr>
Applied.
Powered by blists - more mailing lists