Re: futex: use-after-free in futex_wait_requeue_pi

From: Dmitry Vyukov
Date: Mon Mar 13 2017 - 06:05:04 EST


On Mon, Mar 13, 2017 at 11:02 AM, Sebastian Andrzej Siewior
<bigeasy@xxxxxxxxxxxxx> wrote:
> On 2017-03-13 09:06:20 [+0100], Peter Zijlstra wrote:
>> On Fri, Mar 10, 2017 at 07:10:30PM +0100, Dmitry Vyukov wrote:
>> > 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:
>> I've not woken up enough; or actually looked at your report to see if
>> its the same.
>
> It seems so, yes. The test-case triggered on the commit mentioned in
> less than a minute and after the patch applied it runs now for 16
> without complains.
> A stable tag would be nice then :)


Yes, looking at the fix, I would expect that it fixes the problem.
Thanks