Messages in this thread | | | Date | Mon, 26 Sep 2022 11:23:11 -0700 | From | Kees Cook <> | Subject | Re: [PATCH mm v3] kasan: fix array-bounds warnings in tests |
| |
On Mon, Sep 26, 2022 at 08:08:47PM +0200, andrey.konovalov@linux.dev wrote: > From: Andrey Konovalov <andreyknvl@google.com> > > GCC's -Warray-bounds option detects out-of-bounds accesses to > statically-sized allocations in krealloc out-of-bounds tests. > > Use OPTIMIZER_HIDE_VAR to suppress the warning. > > Also change kmalloc_memmove_invalid_size to use OPTIMIZER_HIDE_VAR > instead of a volatile variable. > > Reported-by: kernel test robot <lkp@intel.com> > Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
-- Kees Cook
| |