[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Mach branch, master, updated. v1.8-654-g5e597575
From: |
Samuel Thibault |
Subject: |
[SCM] GNU Mach branch, master, updated. v1.8-654-g5e597575 |
Date: |
Sat, 17 Jun 2023 17:18:40 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via 5e597575b78af2464117437c8bc41e632d7e112d (commit)
from 54d025d426d0442a0f33c98272dee167acdb8613 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5e597575b78af2464117437c8bc41e632d7e112d
Author: Luca Dariz <luca@orpolo.org>
Date: Sat Jun 17 23:17:54 2023 +0200
x86_64: add a critical section on entry and exit from syscall/sysret
When entering a syscall we're still using the user stack, so we can't
reliably handle exceptions or interrupts, otherwise a user thread can
easily crash the machine with an invalid stack. Instead, disable
interrupts and (hopefullly) avoid traps in the fragments where we need
to have the user stack in RSP.
* i386/i386/ldt.c: mask interrupts and IOPL on syscall entry
* x86_64/locore.S: keep interrupts disabled when we use the user stack
-----------------------------------------------------------------------
Summary of changes:
i386/i386/ldt.c | 3 ++-
x86_64/locore.S | 4 +++-
2 files changed, 5 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU Mach
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Mach branch, master, updated. v1.8-654-g5e597575,
Samuel Thibault <=