Re: Patch: linux-2.5.8-pre1/kernel/exit.c change caused BUG() at

Robert Love (rml@tech9.net)
04 Apr 2002 13:51:49 -0500


On Thu, 2002-04-04 at 13:28, Dave Hansen wrote:

> I've replicated the problem too.
> I've diabled preemption in the area where it used to be disabled because
> of the old lock_kernel(). I'm sending this message from a machine with
> that patch applied, so the patch does fix it. As the comment says, this
> is something that the preempt experts need to take a look at.
> Linus, this is a hack, and there is probably still a window where
> preemption can happen. But, it is a band-aid until we find the real
> problem.

Thanks for the CC. I've been looking into this problem. I am not too
sure why we require protection from concurrency via preemption and not
via SMP. In other words, why are we SMP-safe but not preempt-safe here.

I don't really have an answer.

The problem I saw on boot was the BUG being triggered on the last line.
If we are able to preempt here and cause some problem, what proof is
there that we don't have a race wrt SMP?

Robert Love

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/