opnsense-src/sys/amd64
Mark Johnston 2b76d0699e Simplify kernel sanitizer interceptors
KASAN and KCSAN implement interceptors for various primitive operations
that are not instrumented by the compiler.  KMSAN requires them as well.
Rather than adding new cases for each sanitizer which requires
interceptors, implement the following protocol:
- When interceptor definitions are required, define
  SAN_NEEDS_INTERCEPTORS and SANITIZER_INTERCEPTOR_PREFIX.
- In headers that declare functions which need to be intercepted by a
  sanitizer runtime, use SANITIZER_INTERCEPTOR_PREFIX to provide
  declarations.
- When SAN_RUNTIME is defined, do not redefine the names of intercepted
  functions.  This is typically the case in files which implement
  sanitizer runtimes but is also needed in, for example, files which
  define ifunc selectors for intercepted operations.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit a90d053b84)
2022-11-14 14:23:40 -05:00
..
acpica amd64 wakeup: rework trampoline page allocation 2021-09-20 03:47:21 +03:00
amd64 Simplify kernel sanitizer interceptors 2022-11-14 14:23:40 -05:00
cloudabi32 fork: Allow ABI to specify fork return values for child. 2022-06-17 22:33:28 +03:00
cloudabi64 fork: Allow ABI to specify fork return values for child. 2022-06-17 22:33:28 +03:00
conf Add FIB_ALGO to GENERIC on amd64/arm64. 2022-09-14 23:01:41 +02:00
ia32 x86: Add a NT_X86_SEGBASES register set. 2022-05-13 09:45:19 -07:00
include Simplify kernel sanitizer interceptors 2022-11-14 14:23:40 -05:00
linux linux: populate sv_syscallnames in each sysentvec 2022-11-06 10:54:46 -04:00
linux32 linux32: binutils as requires %eflags instead of %flags for CFI. 2022-11-11 10:18:53 -08:00
pci pci_cfgreg.c: Use io port config access for early boot time. 2019-04-09 18:07:17 +00:00
sgx Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
vmm vmm: Cherry pick illumos commit '13361 bhyve should mask RDT cpuid info' 2022-11-10 17:48:38 -08:00
Makefile Bring the tags and links entries for amd64 up to date. 2021-10-07 16:01:46 -07:00