Subject: Re: more funky stuff with kthreads and interrupts
To: Toru Nishimura <firstname.lastname@example.org>
From: Hubert Feyrer <email@example.com>
Date: 05/08/2001 13:51:41
[moved to tech-kern]
On Tue, 8 May 2001, Toru Nishimura wrote:
> I thought NetBSD/mips was immune from it as pcb0 was forced to have
> spl0 condition which was propagated to all of children, but it was a
> wrong fix. The issue is pcb0 gets overwritten before the first
> kthread_create1() is called. For a normal process which has user mode
> it doesn't matter because proc_trampoline() makes the process to have
> spl0 during exception return path to user mode, however, kthreads stay
> in kernel mode mistakenly left in splhigh condition.
> /// FIX ///
> Make sure to have spl0 condition whenever a new thread of control
> is created.
Would it make sense to check that in the the thread create function (I
forgot what it's called)?
Hubert Feyrer <firstname.lastname@example.org>