Messages in this thread | | | From | Alexander Potapenko <> | Date | Fri, 17 Feb 2023 10:11:00 +0100 | Subject | Re: [PATCH -tip v4 3/3] kasan: test: Fix test for new meminstrinsic instrumentation |
| |
On Fri, Feb 17, 2023 at 12:45 AM Marco Elver <elver@google.com> wrote: > > The tests for memset/memmove have been failing since they haven't been > instrumented in 69d4c0d32186. > > Fix the test to recognize when memintrinsics aren't instrumented, and > skip test cases accordingly. We also need to conditionally pass > -fno-builtin to the test, otherwise the instrumentation pass won't > recognize memintrinsics and end up not instrumenting them either. > > Fixes: 69d4c0d32186 ("entry, kasan, x86: Disallow overriding mem*() functions") > Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> > Signed-off-by: Marco Elver <elver@google.com> Tested-by: Alexander Potapenko <glider@google.com>
Now the tests pass with Clang-17 and are correctly skipped with GCC-12.
| |