mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
fix(native): a guest's own seccomp filter gets its SIGSYS, so Firefox tabs stop crashing (#2360)
This commit is contained in:
1 parent
c85b84a964
commit
1b19837fc6
5 files changed
+162
-13
No files matched your search
@@ -74,11 +74,14 @@ long fp_svc_dispatch(const long *r) {
|
||||
int saved_errno = errno;
|
||||
long result = svc_blocked(r);
|
||||
uintptr_t frame = (uintptr_t)r;
|
||||
if (result == FP_SLOW && (!svc_busy || frame >= svc_busy)) {
|
||||
if (result == FP_SLOW && __atomic_load_n(&fp_on, __ATOMIC_RELAXED) && (!svc_busy || frame >= svc_busy)) {
|
||||
uintptr_t previous = svc_busy;
|
||||
svc_busy = frame;
|
||||
if (svc_stack_room(frame)) { result = svc_path_call(r); svc_busy = 0; }
|
||||
else svc_busy = previous;
|
||||
if (svc_stack_room(frame)) {
|
||||
result = svc_path_call(r);
|
||||
if (refused()) result = FP_SLOW;
|
||||
svc_busy = 0;
|
||||
} else svc_busy = previous;
|
||||
}
|
||||
if (result == FP_SLOW) {
|
||||
__atomic_fetch_add(&svc_slow, 1, __ATOMIC_RELAXED);
|
||||
|
||||
Reference in new issue
Block a user