artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01c8cda
)
Call refreshcreds() in ast() since we may get there without going through
author
kettenis
<kettenis@openbsd.org>
Sat, 29 Apr 2017 17:07:09 +0000
(17:07 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 29 Apr 2017 17:07:09 +0000
(17:07 +0000)
do_el0_sync() or mi_syscall().
sys/arch/arm64/arm64/ast.c
patch
|
blob
|
history
diff --git
a/sys/arch/arm64/arm64/ast.c
b/sys/arch/arm64/arm64/ast.c
index
0cec117
..
d000870
100644
(file)
--- 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 <drahn@dalerahn.com>
*
@@
-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);
}