Re: BUG: KASAN: use-after-free in __list_add_valid+0x81/0xa0 (5.11-rc4)

From: Mikhail Gavrilov
Date: Sun Jan 24 2021 - 13:25:47 EST


On Sun, 24 Jan 2021 at 16:11, Hillf Danton <hdanton@xxxxxxxx> wrote:
>
> If it is supposed due to the race between pool->stale_lock and
> pool->lock that are both protecting the buddy list_head then adding
> another one can be a cure. The diff below is not for any test.

Thanks for looking at the issue.
Why the proposed patch not intended for testing?
It is not the final (optimal) variant?


--
Best Regards,
Mike Gavrilov.