aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorAndrey Konovalov <[email protected]>2022-09-26 20:08:47 +0200
committerAndrew Morton <[email protected]>2022-10-12 18:51:50 -0700
commitd6e5040bd8e53371fafd7e0c7c63b090b3a675db (patch)
treea208556051175e33f635a69351d3f710e58c406d /drivers/fpga/tests/fpga-bridge-test.c
parentad4c365221b0f92f9c24a203119f2bade30c970e (diff)
kasan: fix array-bounds warnings in tests
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. Link: https://lkml.kernel.org/r/e94399242d32e00bba6fd0d9ec4c897f188128e8.1664215688.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <[email protected]> Reported-by: kernel test robot <[email protected]> Reviewed-by: Kees Cook <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Marco Elver <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions