https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108777

            Bug ID: 108777
           Summary: Add support for --param
                    asan-kernel-mem-intrinsic-prefix=1
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at 
gcc dot gnu.org
  Target Milestone: ---

As mentioned in the https://lkml.org/lkml/2023/2/9/1182 thread, Linux kernel
would like
to have --param asan-kernel-mem-intrinsic-prefix=1 support which would use
__asan_memcpy, __asan_memmove and __asan_memset with -fsanitize=kernel-address
and
__hwasan_memcpy, __hwasan_memmove and __hwasan_memset with
-fsanitize=kernel-hwaddress
instead of memcpy, memmove and memset calls in kasan instrumented functions,
such that
kernel memcpy/memmove/memset could remain uninstrumented for use in kernel
functions
with no_sanitize ("kernel-address").

Reply via email to