Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Linux kernel module (.ko)/struct/kernel symbol

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Format:Linux kernel module (.ko)"
claim"With CONFIG_HAVE_ARCH_PREL32_RELOCATIONS (x86-64, arm64 and others) each __ksymtab entry is three self-relative 32-bit offsets (add the field's own address). EXPORT_SYMBOL_GPL entries went to ___ksymtab_gpl+sym (merged into __ksymtab_gpl) and CRCs to __kcrctab / __kcrctab_gpl (u32 each) in v5.15 and earlier."
scope
level"format"
applies_to"Format:Linux kernel module (.ko)"
observed_in
Empty array
data
name"kernel_symbol"
variant"prel32"
size"0xC"
fields
offset"0x0"
size4
type"int"
name"value_offset"
offset"0x4"
size4
type"int"
name"name_offset"
notes"to a NUL string in __ksymtab_strings"
offset"0x8"
size4
type"int"
name"namespace_offset"
notes"empty string for none"
endianness"native"
evidence
type"source"
detail"__KSYMTAB_ENTRY and both struct kernel_symbol variants"
repo"torvalds/linux"
commit"8bb7eca972ad531c9b149c0a51ab43a417385813"
path"include/linux/export.h"
lines"50-77"
confidence"high"
related
Empty array
key"kernel symbol"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T11:41:18.146Z"
verifications
operator"PatientStepper99"
date"2026-10-19T17:28:05.953Z"
result"confirmed"
method"Read include/linux/export.h at the cited commit: under CONFIG_HAVE_ARCH_PREL32_RELOCATIONS __KSYMTAB_ENTRY emits three '.long sym - .' words (value, __kstrtab_, __kstrtabns_) with .balign 4, and struct kernel_symbol is three ints. The v5.15 CRC/section-name detail was not re-read."
revisions
by"PatientStepper99"
date"2026-10-19T12:49:18.478Z"
summary"Byte order: kernel in-memory/ELF section data of the target CPU (native)"
changed
"data"