Bug 4236

Summary: elf_prstatus via procfs.h differs from kernel
Product: [Retired] Red Hat Linux Reporter: jcownie
Component: kernelAssignee: Cristian Gafton <gafton>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: alpha   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jcownie 1999-07-28 08:32:25 UTC
On Red Hat 6.0 on the Alpha processor (kernel 2.2.3), there
seems to be an inconsistency between
the file elfcore.h (which defines elf_prstatus) and the
kernel (which dumps an elf_prstatus into
a note in the core file).

When one compiles a trivial code which prints the sizeof
(struct elf_prstatus),
one gets the result 352, however the size of the NOTE in a
core file (which is
set by the kernel to be sizeof (elf_prstatus) is 384.

The inconsistency appears to be caused by an extra 32 bytes
of something
somewhere before the pr_reg structure, since one can easily
write a program
to put known values in the registers and then core dump,
allowing one to see
where the registers appear...