Re: [PATCH] kasan: test: Consolidate workarounds for unwanted __alloc_size() protection

From: Andrew Morton
Date: Wed Oct 20 2021 - 17:17:58 EST


On Wed, 20 Oct 2021 12:38:07 -0700 Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> This fixes kasan-test-use-underlying-string-helpers.patch to avoid needing
> new helpers. As done in kasan-test-bypass-__alloc_size-checks.patch,
> just use OPTIMIZER_HIDE_VAR(). Additionally converts a use of
> "volatile", which was trying to work around similar detection.
>
> ...
>
> Can you please collapse this into your series?

Folding it into something else is messy, due to dependencies and
ordering/timing issues. I queued it as a standalone thing.