From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Kallsyms" |
|---|
| claim | "/proc/kallsyms lines are '<address> <type> <name>' and, for symbols of loaded modules, '<address> <type> <name>\t[<module>]'. The address is printed as zeros unless kallsyms_show_value() is true for the reader: with kptr_restrict 0 everybody sees it only if perf_event_paranoid <= 1 (CONFIG_PERF_EVENTS), otherwise CAP_SYSLOG is needed; kptr_restrict 1 needs CAP_SYSLOG; kptr_restrict 2 (or higher) hides it from everyone, root included. Module symbol letters are upper case when exported, lower case when not; built-in symbols keep the stored type letter. Symbols with an empty name are skipped." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Kallsyms" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "reading /proc/kallsyms" |
|---|
| effect | "seq_printf "%px %c %s\n" or "%px %c %s\t[%s]\n"; value is NULL when iter->show_value (kallsyms_show_value(cred) at open time) is false" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "s_show(): skips empty names; value = iter->show_value ? iter->value : NULL; module branch uses toupper(type) if exported else tolower(type) and prints the tab and [module]; built-in branch prints iter->type unchanged. Read at tag v6.12 (whole function)." |
|---|
| repo | "https://github.com/torvalds/linux" |
|---|
| commit | "adc218676eef25575469234709c2d87185ca223a" |
|---|
| path | "kernel/kallsyms.c" |
|---|
| lines | "728-754" |
|---|
|
| type | "source" |
|---|
| detail | "kallsyms_show_value(): switch on kptr_restrict: case 0 true if sysctl_perf_event_paranoid <= 1 (kallsyms_for_perf), else falls to case 1: true if the reader has CAP_SYSLOG; default (2+) false for everyone." |
|---|
| repo | "https://github.com/torvalds/linux" |
|---|
| commit | "adc218676eef25575469234709c2d87185ca223a" |
|---|
| path | "kernel/ksyms_common.c" |
|---|
| lines | "8-40" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "proc kallsyms format" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T21:56:25.711Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:06:17.167Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read linux kernel/ksyms_common.c kallsyms_show_value (kptr_restrict switch with fallthrough, perf paranoid <= 1, CAP_SYSLOG) and kernel/kallsyms.c s_show (lines 728-754) at adc2186. Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T06:08:26.684Z" |
|---|
| summary | "Narrow the address rule: zeros are decided by kallsyms_show_value(), not by privilege alone (read kernel/kallsyms.c and kernel/ksyms_common.c at v6.12)" |
|---|
| changed | | "claim" |
| "data" |
| "evidence replaced" |
|
|---|
|
|
|---|