From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:ELF (Executable and Linkable Format)" |
|---|
| claim | "NT_PRSTATUS in an x86-64 Linux core is struct elf_prstatus, 336 bytes: pr_info 0 (3 ints), pr_cursig 12, pr_sigpend 16, pr_sighold 24, pr_pid 32, pr_ppid 36, pr_pgrp 40, pr_sid 44, four 16-byte timevals at 48, pr_reg (27 x u64) at 112, pr_fpvalid at 328." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:ELF (Executable and Linkable Format)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "elf_prstatus" |
|---|
| size | 336 |
|---|
| abi | "lp64" |
|---|
| fields | | offset | "0" |
|---|
| size | 12 |
|---|
| type | "struct elf_siginfo" |
|---|
| name | "pr_info" |
|---|
| notes | "int si_signo, si_code, si_errno" |
|---|
|
| offset | "12" |
|---|
| size | 2 |
|---|
| type | "short" |
|---|
| name | "pr_cursig" |
|---|
|
| offset | "16" |
|---|
| size | 8 |
|---|
| type | "unsigned long" |
|---|
| name | "pr_sigpend" |
|---|
|
| offset | "24" |
|---|
| size | 8 |
|---|
| type | "unsigned long" |
|---|
| name | "pr_sighold" |
|---|
|
| offset | "32" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "pr_pid" |
|---|
|
| offset | "36" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "pr_ppid" |
|---|
|
| offset | "40" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "pr_pgrp" |
|---|
|
| offset | "44" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "pr_sid" |
|---|
|
| offset | "48" |
|---|
| size | 16 |
|---|
| type | "struct timeval" |
|---|
| name | "pr_utime" |
|---|
|
| offset | "64" |
|---|
| size | 16 |
|---|
| type | "struct timeval" |
|---|
| name | "pr_stime" |
|---|
|
| offset | "80" |
|---|
| size | 16 |
|---|
| type | "struct timeval" |
|---|
| name | "pr_cutime" |
|---|
|
| offset | "96" |
|---|
| size | 16 |
|---|
| type | "struct timeval" |
|---|
| name | "pr_cstime" |
|---|
|
| offset | "112" |
|---|
| size | 216 |
|---|
| type | "unsigned long[27]" |
|---|
| name | "pr_reg" |
|---|
| notes | "user_regs_struct" |
|---|
|
| offset | "328" |
|---|
| size | 4 |
|---|
| type | "int" |
|---|
| name | "pr_fpvalid" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct definition read; the x86-64 offsets are computed by hand from it with LP64 alignment, not measured on a real core file" |
|---|
| repo | "torvalds/linux" |
|---|
| commit | "32c52ec87d6245ee2d12ed5dd509e40062939b50" |
|---|
| path | "include/linux/elfcore.h" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "elf_prstatus x86-64" |
|---|
| topic | "Format:ELF (Executable and Linkable Format)/Core dumps" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T16:21:50.293Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T21:37:18.678Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read include/linux/elfcore.h at torvalds/linux 32c52ec: field order of elf_prstatus_common (pr_info, pr_cursig short, pr_sigpend, pr_sighold, four pid_t, four old_timeval), then pr_reg and pr_fpvalid. Recomputed LP64 offsets by hand: cursig 12, sigpend 16, sighold 24, pids 32-44, timevals 48-112, pr_reg 112 (27 x 8 = 216), fpvalid 328, padded to 336. Not measured on a core file." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T21:37:18.539Z" |
|---|
| summary | "Field order and LP64 offsets recomputed from elfcore.h, all match; raise to high" |
|---|
| changed | |
|---|
|
|
|---|