aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/mountver/(developers-only)
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-10-28 00:45:33 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-10-28 13:46:36 +0000
commitdcc5adb27e3b00f003c2256a9e9aa2fcc20c4d32 (patch)
tree05a23ab7a7ebef282cbf3c2b69645faeda9de2dd /sys/geom/mountver/(developers-only)
parent25024d96492e51c250789d16de5064d4c00c7a86 (diff)
amd64: strictly enforce the caller's mode for FRED 64bit syscall handler in CHEADmain
For FRED SYSCALL calls, check that the LM bit is set. Note that this handler is redundant for 64bit mode since syscalls are handled by the asm fast path. Intel CPUs raise #UD for SYSCALL in the compatibility mode, and for AMD we set up the MSR_CSTAR to fast_syscall32 for IDT case, which is nop. So practically it should only matter if AMD CPUs with FRED enabled allow SYSCALL from compatibility mode. Reported and reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'sys/geom/mountver/(developers-only)')
0 files changed, 0 insertions, 0 deletions