Re: [PATCH] arm: kasan: clear stale stack poison

From: Linus Walleij
Date: Tue Apr 02 2024 - 06:33:20 EST


On Fri, Dec 22, 2023 at 3:28 AM boy.wu <boy.wu@xxxxxxxxxxxx> wrote:

> From: Boy Wu <boy.wu@xxxxxxxxxxxx>
>
> We found below OOB crash:
(...)
> We find the root cause of this OOB is that arm does not clear stale stack
> poison in the case of cpuidle.
>
> This patch refer to arch/arm64/kernel/sleep.S to resolve this issue.
>
> Signed-off-by: Boy Wu <boy.wu@xxxxxxxxxxxx>

With the commit context pointed out by Mark Rutland:
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij