From cdac8ca009e93dc9d71ec5ac0aa2af73c96e3a5b Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 29 Apr 2017 17:07:09 +0000 Subject: [PATCH] Call refreshcreds() in ast() since we may get there without going through do_el0_sync() or mi_syscall(). --- sys/arch/arm64/arm64/ast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm64/arm64/ast.c b/sys/arch/arm64/arm64/ast.c index 0cec1177cc9..d00087021b0 100644 --- a/sys/arch/arm64/arm64/ast.c +++ b/sys/arch/arm64/arm64/ast.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ast.c,v 1.2 2017/02/19 19:42:40 patrick Exp $ */ +/* $OpenBSD: ast.c,v 1.3 2017/04/29 17:07:09 kettenis Exp $ */ /* * Copyright (c) 2015 Dale Rahn * @@ -37,11 +37,11 @@ void ast(struct trapframe *tf) { struct proc *p = curcpu()->ci_curproc; - int want_resched = curcpu()->ci_want_resched; p->p_md.md_astpending = 0; + refreshcreds(p); uvmexp.softs++; - mi_ast(p, want_resched); + mi_ast(p, curcpu()->ci_want_resched); userret(p); } -- 2.20.1