[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [discuss] [PATCH] fix module loading with 32-bit modutils



On Thursday 18 September 2003 02:05, Andi Kleen wrote:
> The usual way was to install a script that selects between them
> based on uname output.

Well, modutils has support for a dual-boot setup without such hacks,
so why not use it...

> On Thu, Sep 18, 2003 at 01:21:30AM +0200, Arnd Bergmann wrote:
> > The problem is fixed on all other 64 bit architectures, so it is
> > relatively straightforward to port this. The kernel changes
> > are simply copied from sparc64 and work fine.
>
> How do you catch old modutils trying to load a 32bit module?

First, modversions mangling should lead to different symbol names.
If modversions are disabled, many symbol names are still
different, e.g. practically all i386 modules need
__generic_copy_to_user which isn't defined on x86_64.

Even if all symbol names can be resolved, sys_init_module has some
consistency checks that are guaranteed to fail for 32 bit modules.

	Arnd <><




Reply to: