diff options
| author | 2006-11-29 12:24:15 +0000 | |
|---|---|---|
| committer | 2006-11-29 12:24:15 +0000 | |
| commit | 46718002fd92ad6071bc17d0a8671800e19e703e (patch) | |
| tree | c3e4d563248952d16989ab42dacbccaf45ff4422 /sys/kern/init_main.c | |
| parent | Add an alignment parameter to uvm_km_alloc1(), and change all callers to (diff) | |
| download | wireguard-openbsd-46718002fd92ad6071bc17d0a8671800e19e703e.tar.xz wireguard-openbsd-46718002fd92ad6071bc17d0a8671800e19e703e.zip | |
Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.
From art@, tested by many some time ago.
Diffstat (limited to 'sys/kern/init_main.c')
| -rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 3ebb901b5cc..5e69f2e3748 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.131 2006/11/14 18:00:27 jmc Exp $ */ +/* $OpenBSD: init_main.c,v 1.132 2006/11/29 12:24:17 miod Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -273,7 +273,7 @@ main(void *framep) p->p_thrparent = p; LIST_INIT(&p->p_thrchildren); - p->p_flag = P_INMEM | P_SYSTEM | P_NOCLDWAIT; + p->p_flag = P_SYSTEM | P_NOCLDWAIT; p->p_stat = SONPROC; p->p_nice = NZERO; p->p_emul = &emul_native; |
