public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Dumping the checksums in a module
@ 2007-06-19 11:59 John Sigler
  2007-06-19 13:18 ` Arjan van de Ven
  0 siblings, 1 reply; 10+ messages in thread
From: John Sigler @ 2007-06-19 11:59 UTC (permalink / raw)
  To: linux-kernel

Hello everyone,

As far as I understand (which is not very far), if I define
CONFIG_MODVERSIONS, then checksums for various functions (all exported
functions?) and various structures (which ones?) will be included inside
the kernel image, and written to Module.symvers. When an out-of-tree
module is built, it will *also* include these checksums.

How do I list ALL the checksums within a module?

$ /sbin/modinfo -V
module-init-tools version 3.2.2

$ uname -a
Linux venus 2.6.18.6 #1 PREEMPT Thu Feb 8 18:04:49 CET 2007 i686
pentium4 i386 GNU/Linux

$ /sbin/modinfo test.ko
filename:       test.ko
vermagic:       2.6.20.7-rt8 preempt mod_unload PENTIUMIII REGPARM
depends:
parm:           pConfig_file:charp
parm:           allocator_himem:An integer (int)
parm:           EnableIdleMode:An integer (int)
parm:           Board_ID:An integer (int)
parm:           Diagnostic:An integer (int)

$ hexdump -C test.ko | grep -A2 struct_
000752e0  17 98 07 0e 73 74 72 75  63 74 5f 6d 6f 64 75 6c
|....struct_modul|
000752f0  65 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|e...............|
00075300  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
|................|

I think this means that, in this module, the checksum for symbol
struct_module is 0x1798070e, right?

Is there a simpler way to list all the checksums?

Regards.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Dumping the checksums in a module
@ 2007-05-18 15:02 John Sigler
  2007-05-18 20:27 ` Jan Engelhardt
  0 siblings, 1 reply; 10+ messages in thread
From: John Sigler @ 2007-05-18 15:02 UTC (permalink / raw)
  To: linux-kernel

Hello everyone,

I'm getting "disagrees about version of symbol struct_module" messages, 
and I'm trying to understand why.

As far as I understand (which is not very far), if I define 
CONFIG_MODVERSIONS, then checksums for various functions (all exported 
functions?) and various structures (which ones?) will be included inside 
the kernel image, and written to Module.symvers. When an out-of-tree 
module is built, it will also include these checksums.

How do I list the checksums within a module?

$ /sbin/modinfo -V
module-init-tools version 3.2.2

$ uname -a
Linux venus 2.6.18.6 #1 PREEMPT Thu Feb 8 18:04:49 CET 2007 i686 
pentium4 i386 GNU/Linux

$ /sbin/modinfo test.ko
filename:       test.ko
vermagic:       2.6.20.7-rt8 preempt mod_unload PENTIUMIII REGPARM
depends:
parm:           pConfig_file:charp
parm:           allocator_himem:An integer (int)
parm:           EnableIdleMode:An integer (int)
parm:           Board_ID:An integer (int)
parm:           Diagnostic:An integer (int)

$ hexdump -C test.ko | grep -A2 struct_
000752e0  17 98 07 0e 73 74 72 75  63 74 5f 6d 6f 64 75 6c 
|....struct_modul|
000752f0  65 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
|e...............|
00075300  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
|................|

I think this means that, in this module, the checksum for symbol 
struct_module is 0x1798070e, right?

Is there a simpler way to list all the checksums?

Regards.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-06-19 14:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 11:59 Dumping the checksums in a module John Sigler
2007-06-19 13:18 ` Arjan van de Ven
2007-06-19 14:40   ` John Sigler
  -- strict thread matches above, loose matches on Subject: below --
2007-05-18 15:02 John Sigler
2007-05-18 20:27 ` Jan Engelhardt
2007-05-18 20:46   ` Sam Ravnborg
2007-05-22  8:19     ` John Sigler
2007-05-22  8:13   ` John Sigler
2007-05-22 19:53     ` Jan Engelhardt
2007-05-23 15:18       ` John Sigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox