From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Linux kernel module (.ko)" |
|---|
| claim | "Since the 6.x series EXPORT_SYMBOL only records the symbol and its license string in section .export_symbol; modpost writes KSYMTAB_FUNC/KSYMTAB_DATA and SYMBOL_CRC lines into <module>.mod.c, which put names in __ksymtab_strings (flags aMS) and entries in ___ksymtab+name sections. Current master also emits SYMBOL_FLAGS (GPL flag byte per symbol, ___kflagstab) in modpost. Section names therefore differ by kernel version; check which are present." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Linux kernel module (.ko)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "building a module or vmlinux with kernel 6.x or later sources" |
|---|
| effect | "export tables are generated by modpost into .mod.c rather than by EXPORT_SYMBOL itself" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "add_exported_symbols emits KSYMTAB_*, SYMBOL_FLAGS, SYMBOL_CRC" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "32c52ec87d6245ee2d12ed5dd509e40062939b50" |
|---|
| path | "scripts/mod/modpost.c" |
|---|
| lines | "1895-1915" |
|---|
|
| type | "source" |
|---|
| detail | "__KSYMTAB and SYMBOL_CRC with section suffixes" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "ffc253263a1375a65fa6c9f62a893e9767fbebfa" |
|---|
| path | "include/linux/export-internal.h" |
|---|
| lines | "25-70" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Export tables generated by modpost" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T11:41:18.369Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T22:32:43.670Z" |
|---|
| result | "partial" |
|---|
| method | "Read scripts/mod/modpost.c at 32c52ec8 lines 1895-1915: add_exported_symbols emits KSYMTAB_FUNC/DATA, SYMBOL_FLAGS and SYMBOL_CRC lines; include/linux/export-internal.h at ffc25326: __KSYMTAB puts names in __ksymtab_strings with flags aMS and entries in ___ksymtab<sec>+name; SYMBOL_CRC in ___kcrctab<sec>+name." |
|---|
| notes | "Not re-read: the statement that EXPORT_SYMBOL records the symbol in .export_symbol, the 6.x version boundary, and the ___kflagstab section name (not in export-internal.h at the cited commit)." |
|---|
|
|
|---|