# Re: \[RFC v2 PATCH\] futex: extend set\_robust\_list to allow 2 locking ABIs at the same time.

- From: Florian Weimer \<hidden\>
- Date: 2019-11-06 14:04:43 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2019/11/5767010
- Thread: https://ratatoskr.run/linux-api/2019/11/5767010/t.md

```text
* Zack Weinberg:

> On Tue, Nov 5, 2019 at 9:28 AM Thomas Gleixner [ref] wrote:
>>
>> The real issue is that the robust list could be circular by incident or
>> malice and there is no way for the kernel to figure that out. That would
>> prevent the task from exiting and make it iterate over the list until
>> doomsday, i.e. a nice unpriviledged DoS.
>
> Why can't the kernel use the standard tortoise-and-hare algorithm for
> detecting circular linked lists here?

It's not guaranteed to terminate if the list is in shared memory.

Thanks,
Florian
```
