mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 11:21:15 -05:00
Rename sev-nmi.c to noinstr.c, and move the get/put GHCB routines into it too, which are also annotated as 'noinstr' and suffer from the same problem as the NMI code, i.e., that GCC may ignore the __no_sanitize_address__ function attribute implied by 'noinstr' and insert KASAN instrumentation anyway. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/20250828102202.1849035-37-ardb+git@google.com
11 lines
321 B
Makefile
11 lines
321 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-y += core.o noinstr.o vc-handle.o
|
|
|
|
# Clang 14 and older may fail to respect __no_sanitize_undefined when inlining
|
|
UBSAN_SANITIZE_noinstr.o := n
|
|
|
|
# GCC may fail to respect __no_sanitize_address or __no_kcsan when inlining
|
|
KASAN_SANITIZE_noinstr.o := n
|
|
KCSAN_SANITIZE_noinstr.o := n
|