Re: Early crash (was: Re: module: show version information forbuilt-in modules in sysfs)

From: Geert Uytterhoeven
Date: Tue Feb 01 2011 - 17:03:31 EST


On Tue, Feb 1, 2011 at 22:09, Dmitry Torokhov <dtor@xxxxxxxxxx> wrote:
> On Tue, Feb 01, 2011 at 12:33:29PM -0800, Geert Uytterhoeven wrote:
>> On Mon, Jan 24, 2011 at 11:59, Linux Kernel Mailing List
>> <linux-kernel@xxxxxxxxxxxxxxx> wrote:
>> > Gitweb: Â Â http://git.kernel.org/linus/e94965ed5beb23c6fabf7ed31f625e66d7ff28de
>>
>> > Â Âmodule: show version information for built-in modules in sysfs
>> >
>> > Â ÂCurrently only drivers that are built as modules have their versions
>> > Â Âshown in /sys/module/<module_name>/version, but this information might
>> > Â Âalso be useful for built-in drivers as well. This especially important
>> > Â Âfor drivers that do not define any parameters - such drivers, if
>> > Â Âbuilt-in, are completely invisible from userspace.
>> >
>> > Â ÂThis patch changes MODULE_VERSION() macro so that in case when we are
>> > Â Âcompiling built-in module, version information is stored in a separate
>> > Â Âsection. Kernel then uses this data to create 'version' sysfs attribute
>> > Â Âin the same fashion it creates attributes for module parameters.
>>
>> This commit causes the crash below on m68k (ARAnyM).
>> Reverting this commit and its dependency
>> 3b90a5b292321b2acac3921f77046ae195aef53f
>> ("module: fix linker error for MODULE_VERSION when !MODULE and CONFIG_SYSFS=n")
>> makes it boot again.
>>
>
> Hi Geert,
>
> Does the follwing help by any chance?
>
> From d6fd4a6e0fc2d3f0a74962d4a6f663a46d230ecd Mon Sep 17 00:00:00 2001
> diff --git a/arch/m68knommu/kernel/vmlinux.lds.S b/arch/m68knommu/kernel/vmlinux.lds.S
> index ef33213..47e15eb 100644
> --- a/arch/m68knommu/kernel/vmlinux.lds.S
> +++ b/arch/m68knommu/kernel/vmlinux.lds.S

The crash happened on m68k with MMU, not m68knommu.

Gr{oetje,eeting}s,

            Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
             Â Â -- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/