Re: 2.5.48: BUG() at kernel/module.c:1000

From: mbm@mort.demon.co.uk
Date: Mon Nov 18 2002 - 17:39:11 EST


> Date: Mon, 18 Nov 2002 19:06:56 +0100
> From: Petr Vandrovec <vandrove@vc.cvut.cz>
> To: rusty@rustcorp.com.au
> Cc: linux-kernel@vger.kernel.org
> Subject: 2.5.48: BUG() at kernel/module.c:1000
>
> Hi Rusty,
> I'm trying to get VMware working, and unfortunately new insmod
> is not able to load generated module. It died at line 1000 of
> kernel/module.c, because of used.core_size > mod->core_size:
> INIT=0/0 CORE=34252/34228

Hi,

This appears to be due to the COMMON symbol "errno".

The code (get_sizes) that calculates the amount of space required
by the sections assumes that the first one is loaded at address
zero (or large alignment) when performing subsequent alignments.

Unfortunately, this is not the case when the actual load takes
place because the common area (length common_length) is allocated
first. This needs to be rounded up to the strictest alignment of
any of the ALLOC sections before the copies start. (Hence the
difference of (2**5 - 8) which is apparent in the CORE values above.)

cheers,

-Malcolm

-
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/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:25 EST