Re: 2.6.13-rc3-mm2 doesn't boot

Andrew Morton
2005-07-27T21:28:09Z

Adrian Bunk <bunk@stusta.de> wrote:
>
> 2.6.13-rc3-mm2 doesn't boot on my computer:
> Badness in nr_blockdev_pages at fs/block_dev.c:399
> ...
> kmem_cache_create: Early error in slab inet_peer_cache
>
> A screenshot is available at [1].
>
> My .config is attached.
>
> 2.6.13-rc3-mm1 boots and works without problems.
>
> cu
> Adrian
>
> [1] http://www.fs.tum.de/~bunk/kernel/boot_failure.jpg

I'd be suspecting there's been a huge preempt_count() windup and the kernel
thinks that it's running in_interrupt(), so various checks are triggering.

Please try this one:

--- devel/net/netlink/af_netlink.c~netlink-locking-fix 2005-07-27 14:10:07.000000000 -0700
+++ devel-akpm/net/netlink/af_netlink.c 2005-07-27 14:10:16.000000000 -0700
@@ -349,12 +349,12 @@ static int netlink_create(struct socket

netlink_table_grab();
if (!nl_table[protocol].hash.entries) {
- netlink_table_ungrab();
#ifdef CONFIG_KMOD
/* We do 'best effort'. If we find a matching module,
* it is loaded. If not, we don't return an error to
* allow pure userspace<->userspace communication. -HW
*/
+ netlink_table_ungrab();
request_module("net-pf-%d-proto-%d", PF_NETLINK, protocol);
netlink_table_grab();
#endif
_

And if that doesn't fix, enable CONFIG_DEBUG_PREEMPT and see if the
sub_preempt_count() check triggers.