aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorKristofer Peterson <kris@tranception.com>2026-03-09 19:40:34 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-04-12 13:43:46 +0000
commit9d87f30b3322c910a2cb68442e5d35daea59df82 (patch)
tree3a493a297beacfeb113c3d1d6d7a7a4ce3b2a321 /usr.bin/mail
parent06f98df4b7a3a16e19166e6007c8023dc9098ffd (diff)
kern/amd64/machdep: Replace memset in wrmsr_early_safe_endstable/14
GENERIC-KASAN kernel failed to boot on a Dell PowerEdge C6615 with an AMD EPYC 8224P CPU; UEFI BIOS caught a #GP exception with %RIP in kasan_memset where %GS relative pointer (curthread->td_pflags2) was dereferenced. Investigation led to wrmsr_early_safe_end which calls memset to clear early #GP IDT entry. Replacing memset with __builtin_memset_inline still resulted in the compiler emitting a call to the memset resolver in GENERIC-KASAN build and the kernel stil faulted during boot. This version which has been successfully tested with both GENERIC and GENERIC-KASAN kernels uses memset_early. Signed-off-by: Kristofer Peterson <kris@tranception.com> Reviewed-by: kib (cherry picked from commit 615f1b9eb17c921bbcb0cce2b9ad61910361325b)
Diffstat (limited to 'usr.bin/mail')
0 files changed, 0 insertions, 0 deletions