mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
973df19420
mtrr_type_lookup() should always return a valid memory type. In case there is no information available, it should return the default UC. This will remove the last case where mtrr_type_lookup() can return MTRR_TYPE_INVALID, so adjust the comment in include/uapi/asm/mtrr.h. Note that removing the MTRR_TYPE_INVALID #define from that header could break user code, so it has to stay. At the same time the mtrr_type_lookup() stub for the !CONFIG_MTRR case should set uniform to 1, as if the memory range would be covered by no MTRR at all. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Tested-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20230502120931.20719-15-jgross@suse.com Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> |
||
---|---|---|
.. | ||
a.out.h | ||
amd_hsmp.h | ||
auxvec.h | ||
bitsperlong.h | ||
boot.h | ||
bootparam.h | ||
byteorder.h | ||
debugreg.h | ||
e820.h | ||
hw_breakpoint.h | ||
hwcap2.h | ||
ist.h | ||
Kbuild | ||
kvm_para.h | ||
kvm_perf.h | ||
kvm.h | ||
ldt.h | ||
mce.h | ||
mman.h | ||
msgbuf.h | ||
msr.h | ||
mtrr.h | ||
perf_regs.h | ||
posix_types_32.h | ||
posix_types_64.h | ||
posix_types_x32.h | ||
posix_types.h | ||
prctl.h | ||
processor-flags.h | ||
ptrace-abi.h | ||
ptrace.h | ||
sembuf.h | ||
setup.h | ||
sgx.h | ||
shmbuf.h | ||
sigcontext32.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
stat.h | ||
statfs.h | ||
svm.h | ||
swab.h | ||
ucontext.h | ||
unistd.h | ||
vm86.h | ||
vmx.h | ||
vsyscall.h |