From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Linux kernel module (.ko)" |
|---|
| claim | "Section __versions holds one 64-byte record per imported symbol on LP64: an unsigned long CRC and a name[MODULE_NAME_LEN] field (MODULE_NAME_LEN = 64 - sizeof(unsigned long) in v6.6); modpost emits '{ 0x%08x, "%s" }' entries. Current sources also emit __version_ext_crcs (u32 array) and __version_ext_names (consecutive NUL-terminated names) for long names." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Linux kernel module (.ko)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "modversion_info" |
|---|
| size | "0x40" |
|---|
| abi | "lp64" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "unsigned long" |
|---|
| name | "crc" |
|---|
|
| offset | "0x8" |
|---|
| size | 56 |
|---|
| type | "char[56]" |
|---|
| name | "name" |
|---|
| notes | "NUL padded" |
|---|
|
|
|---|
| endianness | "native" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MAX_PARAM_PREFIX_LEN (64 - sizeof(unsigned long)), used as MODULE_NAME_LEN in v6.6" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "ffc253263a1375a65fa6c9f62a893e9767fbebfa" |
|---|
| path | "include/linux/moduleparam.h" |
|---|
| lines | "21" |
|---|
|
| type | "source" |
|---|
| detail | "add_extended_versions and add_versions" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "32c52ec87d6245ee2d12ed5dd509e40062939b50" |
|---|
| path | "scripts/mod/modpost.c" |
|---|
| lines | "1940-2008" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "modversion info" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T11:41:18.079Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:28:06.172Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read struct modversion_info {unsigned long crc; char name[MODULE_NAME_LEN];} in module.h and MAX_PARAM_PREFIX_LEN = 64 - sizeof(unsigned long) in moduleparam.h at the cited commit; modpost.c part and the extended version tables not re-read." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:49:18.629Z" |
|---|
| summary | "Byte order: target CPU native (kernel structure in __versions section)" |
|---|
| changed | |
|---|
|
|
|---|