[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6f32f383-a9ba-7e1f-2c65-3546c833a4c1@iogearbox.net>
Date: Tue, 29 Jan 2019 00:24:43 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Jakub Sitnicki <jakub@...udflare.com>, netdev@...r.kernel.org
Cc: John Fastabend <john.fastabend@...il.com>,
Marek Majkowski <marek@...udflare.com>
Subject: Re: [PATCH net] sk_msg: Always cancel strp work before freeing the
psock
On 01/28/2019 10:13 AM, Jakub Sitnicki wrote:
> Despite having stopped the parser, we still need to deinitialize it by
> calling strp_done so that it cancels its work. Otherwise the worker
> thread can run after we have freed the parser, and attempt to access its
> workqueue resulting in a use-after-free:
>
[...]
> Reported-by: Marek Majkowski <marek@...udflare.com>
> Link: https://lore.kernel.org/netdev/CAJPywTLwgXNEZ2dZVoa=udiZmtrWJ0q5SuBW64aYs0Y1khXX3A@mail.gmail.com
> Signed-off-by: Jakub Sitnicki <jakub@...udflare.com>
Applied, thanks!
Powered by blists - more mailing lists