lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 10 Feb 2007 21:18:30 +1100
From:	Rusty Russell <rusty@...tcorp.com.au>
To:	"Leisner, Martin" <Martin.Leisner@...ox.com>
Cc:	linux-kernel@...r.kernel.org, leisner@...hester.rr.com
Subject: Re: force insmod on 2.6

On Fri, 2007-02-09 at 12:27 -0500, Leisner, Martin wrote:
> I had modules which were compiled with another kernel version string
> (same kernel though).
> 
> In 2.4, you could do a force in the modules.conf files or in the insmod
> command line.
> 
> The current insmod doesn't have a force option.
> 
> Modprobe CAN force, but the modules has to be in the modules tree (i.e.
> not arbitrary places on the 
> file system)
> 
> Is there a way to force load a module at an arbitrary location?
> 
> This is very handy for development (not production).

Sure, you simply remove the information from the module, then the kernel
will load it.  To strip modversions, remove the __versions section.  To
strip the version magic, it's easiest to remove the entire .modinfo
section.  You can use objcopy for this...

Hope that helps!
Rusty.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ