Messages in this thread | | | From | Arnd Bergmann <> | Date | Wed, 20 Oct 2021 21:41:03 +0200 | Subject | Re: [PATCH] kasan: test: Consolidate workarounds for unwanted __alloc_size() protection |
| |
On Wed, Oct 20, 2021 at 9:38 PM Kees Cook <keescook@chromium.org> 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. > > Cc: Arnd Bergmann <arnd@arndb.de> > Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com> > Cc: Alexander Potapenko <glider@google.com> > Cc: Andrey Konovalov <andreyknvl@gmail.com> > Cc: Dmitry Vyukov <dvyukov@google.com> > Cc: kasan-dev@googlegroups.com > Signed-off-by: Kees Cook <keescook@chromium.org>
Yes, that's much better than my version
Acked-by: Arnd Bergmann <arnd@arndb.de>
| |