From 6312c6c6a6b1b5e671fad6f247126a8c5be563d7 Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Sun, 15 Aug 2010 11:09:26 +0100 Subject: [PATCH] linuxulator - Acquire MPLOCK for ksignal * Don't forget to acquire mplock for ksignal, or otherwise we'll get a panic (MP_LOCK_HELD: Not held thread foo). --- sys/emulation/linux/i386/linux_machdep.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/emulation/linux/i386/linux_machdep.c b/sys/emulation/linux/i386/linux_machdep.c index dad054f863..782d15b3a5 100644 --- a/sys/emulation/linux/i386/linux_machdep.c +++ b/sys/emulation/linux/i386/linux_machdep.c @@ -424,7 +424,9 @@ sys_linux_exit_group(struct linux_exit_group_args *args) if ((e->flags & EMUL_DIDKILL) == 0) { e->flags |= EMUL_DIDKILL; KKASSERT(pfind(e->proc->p_pid) == e->proc); + get_mplock(); ksignal(e->proc, SIGKILL); + rel_mplock(); } } -- 2.41.0