summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2018-06-26 10:00:09 +0000
committerkettenis <kettenis@openbsd.org>2018-06-26 10:00:09 +0000
commitbaaac09e3160541bd8884b45732a9acd22823ad3 (patch)
tree692a9715a28bf3047d4b2894ae3831f2e5f3a353
parentAdd "socket owner" to allow changing the owner of the vmd control socket. (diff)
downloadwireguard-openbsd-baaac09e3160541bd8884b45732a9acd22823ad3.tar.xz
wireguard-openbsd-baaac09e3160541bd8884b45732a9acd22823ad3.zip
Make ast() call refreshcreds(). Tweak this code to be similar to the amd64.
ok phessler@, guenther@
-rw-r--r--sys/arch/arm/arm/ast.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/arch/arm/arm/ast.c b/sys/arch/arm/arm/ast.c
index cd2968a92c9..9d43211a4af 100644
--- a/sys/arch/arm/arm/ast.c
+++ b/sys/arch/arm/arm/ast.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ast.c,v 1.15 2018/06/22 15:20:37 kettenis Exp $ */
+/* $OpenBSD: ast.c,v 1.16 2018/06/26 10:00:09 kettenis Exp $ */
/* $NetBSD: ast.c,v 1.6 2003/10/31 16:44:34 cl Exp $ */
/*
@@ -79,22 +79,10 @@ ast(struct trapframe *tf)
{
struct proc *p = curproc;
- /* Interrupts were restored by exception_exit. */
-
- p->p_addr->u_pcb.pcb_tf = tf;
-
uvmexp.traps++;
-
-#ifdef DEBUG
- if (p == NULL)
- panic("ast: no curproc!");
- if (&p->p_addr->u_pcb == 0)
- panic("ast: no pcb!");
-#endif
-
+ p->p_addr->u_pcb.pcb_tf = tf;
+ refreshcreds(p);
uvmexp.softs++;
mi_ast(p, want_resched);
userret(p);
}
-
-/* End of ast.c */