<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Dave Anderson wrote:
<blockquote TYPE=CITE>David Wilder wrote:
<blockquote TYPE=CITE> 
<br>crash -d 2 gave me the header..
<br>Elf64_Phdr:
<br>                
p_type: 4 (PT_NOTE)
<br>              
p_offset: 288 (120)
<br>               
p_vaddr: 0
<br>               
p_paddr: 0
<br>              
p_filesz: 1048 (418)
<br>               
p_memsz: 1048 (418)
<br>               
p_flags: 0 ()
<br>               
p_align: 0
<br>Elf64_Phdr:
<br>                
p_type: 1 (PT_LOAD)
<br>              
p_offset: 1336 (538)
<br>               
p_vaddr: c000000000000000
<br>               
p_paddr: 0
<br>              
p_filesz: 32768 (8000)
<br>               
p_memsz: 32768 (8000)
<br>               
p_flags: 7 (PF_X|PF_W|PF_R)
<br>               
p_align: 0
<br>Elf64_Phdr:
<br>                
p_type: 1 (PT_LOAD)
<br>              
p_offset: 34104 (8538)
<br>               
p_vaddr: c000000000008000
<br>               
p_paddr: 8000
<br>              
p_filesz: 33521663 (1ff7fff)
<br>               
p_memsz: 33521663 (1ff7fff)
<br>               
p_flags: 7 (PF_X|PF_W|PF_R)
<br>               
p_align: 0
<br>Elf64_Phdr:
<br>                
p_type: 1 (PT_LOAD)
<br>              
p_offset: 33555767 (2000537)
<br>               
p_vaddr: c00000002fd0f001
<br>               
p_paddr: 2fd0f001
<br>              
p_filesz: 3492745215 (d02f0fff)
<br>               
p_memsz: 3492745215 (d02f0fff)
<br>               
p_flags: 7 (PF_X|PF_W|PF_R)
<br>               
p_align: 0
<p>Looks like that address is in a hole between PT_LOAD segments 2 and
3.</blockquote>
<tt>Right, but something is fundamentally wrong with your</tt>
<br><tt>vmcore:</tt>
<p><tt>                 
p_paddr  p_filesz</tt>
<br><tt>First segment:         
0      8000</tt>
<br><tt>Second segment:      8000  
1ff7fff</tt>
<br><tt>Third segment:   2fd0f001  d02f0fff</tt>
<p><tt>It cannot have a p_paddr address that is not page-aligned,</tt>
<br><tt>nor can you have a p_filesz that is not page-aligned.</tt>
<p><tt>Dave</tt></blockquote>

<p><br><tt>Vivek et al,</tt><tt></tt>
<p><tt>Have there been any recent changes to the kdump code</tt>
<br><tt>that might cause strange PT_LOAD segment contents?</tt><tt></tt>
<p><tt>In addition to Dave Wilder's vmcore above, I also note that</tt>
<br><tt>in Badari's recent x86_64 vmcore, there is a PT_LOAD segment</tt>
<br><tt>that also has a non-page-aligned p_filesz:</tt><tt></tt>
<p><tt># readelf -a vmcore</tt>
<br><tt>ELF Header:</tt>
<br><tt>  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00
00 00 00</tt>
<br><tt>  Class:                            
ELF64</tt>
<br><tt>  Data:                             
2's complement, little endian</tt>
<br><tt>  Version:                          
1 (current)</tt>
<br><tt>  OS/ABI:                           
UNIX - System V</tt>
<br><tt>  ABI Version:                      
0</tt>
<br><tt>  Type:                             
CORE (Core file)</tt>
<br><tt>  Machine:                          
Advanced Micro Devices X86-64</tt>
<br><tt>  Version:                          
0x1</tt>
<br><tt>  Entry point address:              
0x0</tt>
<br><tt>  Start of program headers:         
64 (bytes into file)</tt>
<br><tt>  Start of section headers:         
0 (bytes into file)</tt>
<br><tt>  Flags:                            
0x0</tt>
<br><tt>  Size of this header:              
64 (bytes)</tt>
<br><tt>  Size of program headers:          
56 (bytes)</tt>
<br><tt>  Number of program headers:        
5</tt>
<br><tt>  Size of section headers:          
0 (bytes)</tt>
<br><tt>  Number of section headers:        
0</tt>
<br><tt>  Section header string table index: 0</tt><tt></tt>
<p><tt>There are no sections in this file.</tt><tt></tt>
<p><tt>There are no section groups in this file.</tt><tt></tt>
<p><tt>Program Headers:</tt>
<br><tt>  Type          
Offset            
VirtAddr           PhysAddr</tt>
<br><tt>                
FileSiz           
MemSiz             
Flags  Align</tt>
<br><tt>  NOTE          
0x0000000000000158 0x0000000000000000 0x0000000000000000</tt>
<br><tt>                
0x00000000000002c8 0x00000000000002c8        
0</tt>
<br><tt>  LOAD          
0x0000000000000420 0xffffffff80000000 0x0000000000000000</tt>
<br><tt>                
0x00000000000a0000 0x00000000000a0000  RWE    0</tt>
<br><tt>  LOAD          
0x00000000000a0420 0xffffffff80100000 0x0000000000100000</tt>
<br><tt>                
0x0000000000f00000 0x0000000000f00000  RWE    0</tt>
<br><b><tt>  LOAD          
0x0000000000fa0420 0xffff810005000000 0x0000000005000000</tt></b>
<br><b><tt>                
0x00000000d2fcca80 0x00000000d2fcca80  RWE    0</tt></b>
<br><tt>  LOAD          
0x00000000d3f6cea0 0xffff810100000000 0x0000000100000000</tt>
<br><tt>                
0x0000000028000000 0x0000000028000000  RWE    0</tt><tt></tt>
<p><tt>There is no dynamic section in this file.</tt><tt></tt>
<p><tt>There are no relocations in this file.</tt><tt></tt>
<p><tt>There are no unwind sections in this file.</tt><tt></tt>
<p><tt>No version information found in this file.</tt><tt></tt>
<p><tt>Notes at offset 0x00000158 with length 0x000002c8:</tt>
<br><tt>  Owner         Data
size       Description</tt>
<br><tt>  CORE         
0x00000150      NT_PRSTATUS (prstatus structure)</tt>
<br><tt>  CORE         
0x00000150      NT_PRSTATUS (prstatus structure)</tt>
<br><tt>#</tt>
<br><tt></tt> <tt></tt>
<p><tt>A p_filesz/p_memsz of <b>0x00000000d2fcca80 </b>cannot be correct.</tt><tt></tt>
<p><tt>Dave</tt>
<br> </html>