RFC: Fix (another) bug in rtas logging

Benjamin Herrenschmidt benh at kernel.crashing.org
Sat Jul 17 00:44:19 EST 2004


On Fri, 2004-07-16 at 02:13, David Gibson wrote:
> Have I missed anything here?  This bug certainly fixes the crash on
> boot I've been getting on our p630.
>
> The recent patch changing the rtas error logging had a bug.  It can
> result in rtas_call() attempting to call kmalloc() too early (from
> setup_arch() before the slab caches are initialized), leading to an
> oops on boot.
>
> I can see no reason that log_error() can't be called with the
> rtas.lock still held, so this patch avoids race addresses by the
> original race by simply moving the log_error() call under the lock.

No, log_error can call ppc_md.log_error which can call some nvram
stuff itself calling RTAS afaik

Ben.


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list