diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-25 09:49:08 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-04-27 03:23:19 +0000 |
| commit | bd8edba0792b71be3f8ed5dea9c22287e95c986a (patch) | |
| tree | dd0c4e40bf4da138adadccce7f03142f89688e6c /contrib/llvm-project/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp | |
| parent | 912f9dfca451e359dda7cdf45539b7c19764f54d (diff) | |
64bit processes can issue INT $0x80 instruction, and get the syscall
dispatched through ia32_syscall(). This works because syscall argument
fetch and result return are selected from the process sysent.
But, ia32_syscall() does not verify some conditions and does not perform
some actions which are considered unnecessary because the caller is
supposed to only access lower 4G. The INT syscall path breaks this
assumption.
We never supported such hack, so disable it. Send the offending thread
SIGBUS as if #GP was issued by hardware due to IDT vector 0x80 having
not numerically high enough DPL value.
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D56630
Diffstat (limited to 'contrib/llvm-project/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp')
0 files changed, 0 insertions, 0 deletions
