Re: futex: use-after-free in futex_wait_requeue_pi

From: Peter Zijlstra
Date: Mon Mar 13 2017 - 04:06:44 EST


On Fri, Mar 10, 2017 at 07:10:30PM +0100, Dmitry Vyukov wrote:
> Hello,
>
> The following program triggers use-after-free in futex_wait_requeue_pi:
> https://gist.githubusercontent.com/dvyukov/42e596153263793b75ad587c8d0626b0/raw/35461a6c1b0a4163a67191ff5d35202f35ecbf44/gistfile1.txt

There's a known use-after-free there, see:

http://lkml.kernel.org/r/20170304093558.801744246@xxxxxxxxxxxxx

I've not woken up enough; or actually looked at your report to see if
its the same.