What is it?¶
VMCOREINFO is a special ELF note section. It contains various information from the kernel like structure size, page size, symbol values, field offsets, etc. These data are packed into an ELF note section and used by user-space tools like crash and makedumpfile to analyze a kernel’s memory layout.
The version of the Linux kernel. Used to find the corresponding source code from which the kernel has been built. For example, crash uses it to find the corresponding vmlinux in order to process vmcore.
The size of a page. It is the smallest unit of data used by the memory management facilities. It is usually 4096 bytes of size and a page is aligned on 4096 bytes. Used for computing page addresses.
The UTS namespace which is used to isolate two specific elements of the system that relate to the uname(2) system call. It is named after the data structure used to store information returned by the uname(2) system call.
User-space tools can get the kernel name, host name, kernel release number, kernel version, architecture name and OS type from it.
Offset of the name’s member. Crash Utility and Makedumpfile get the start address of the init_uts_ns.name from this.
An array node_states[N_ONLINE] which represents the set of online nodes in a system, one bit position per node number. Used to keep track of which nodes are in the system and online.
The global page directory pointer of the kernel. Used to translate virtual to physical addresses.
Defines the beginning of the text section. In general, _stext indicates the kernel start address. Used to convert a virtual address from the direct kernel map to a physical address.
Stores the virtual area list. makedumpfile gets the vmalloc start value from this variable and its value is necessary for vmalloc translation.
Physical addresses are translated to struct pages by treating them as an index into the mem_map array. Right-shifting a physical address PAGE_SHIFT bits converts it into a page frame number which is an index into that mem_map array.
Used to map an address to the corresponding struct page.
Makedumpfile gets the pglist_data structure from this symbol, which is used to describe the memory layout.
User-space tools use this to exclude free pages when dumping memory.
mem_section|(mem_section, NR_SECTION_ROOTS)|(mem_section, section_mem_map)¶
The address of the mem_section array, its length, structure size, and the section_mem_map offset.
It exists in the sparse memory mapping model, and it is also somewhat similar to the mem_map variable, both of them are used to translate an address.
Defines the maximum supported physical address space memory.
The size of a page structure. struct page is an important data structure and it is widely used to compute contiguous memory.
The size of a pglist_data structure. This value is used to check if the pglist_data structure is valid. It is also used for checking the memory type.
The size of a zone structure. This value is used to check if the zone structure has been found. It is also used for excluding free pages.
The size of a free_area structure. It indicates whether the free_area structure is valid or not. Useful when excluding free pages.
The size of a list_head structure. Used when iterating lists in a post-mortem analysis session.
The size of a nodemask_t type. Used to compute the number of online nodes.
User-space tools compute their values based on the offset of these variables. The variables are used when excluding unnecessary pages.
On NUMA machines, each NUMA node has a pg_data_t to describe its memory layout. On UMA machines there is a single pglist_data which describes the whole memory.
These values are used to check the memory type and to compute the virtual address for memory map.
Each node is divided into a number of blocks called zones which represent ranges within memory. A zone is described by a structure zone.
User-space tools compute required values based on the offset of these variables.
Offset of the free_list’s member. This value is used to compute the number of free pages.
Each zone has a free_area structure array called free_area[MAX_ORDER]. The free_list represents a linked list of free page blocks.
Offsets of the list_head’s members. list_head is used to define a circular linked list. User-space tools need these in order to traverse lists.
Offsets of the vmap_area’s members. They carry vmalloc-specific information. Makedumpfile gets the start address of the vmalloc region from this.
Free areas descriptor. User-space tools use this value to iterate the free_area ranges. MAX_ORDER is used by the zone buddy allocator.
A pointer to the printk ringbuffer (struct printk_ringbuffer). This may be pointing to the static boot ringbuffer or the dynamically allocated ringbuffer, depending on when the the core dump occurred. Used by user-space tools to read the active kernel log buffer.
A pointer to the static boot printk ringbuffer. If @prb has a different value, this is useful for viewing the initial boot messages, which may have been overwritten in the dynamically allocated ringbuffer.
The sequence number of the
printk() record after the last clear
command. It indicates the first record after the last
SYSLOG_ACTION_CLEAR, like issued by ‘dmesg -c’. Used by user-space
tools to dump a subset of the dmesg log.
The size of a printk_ringbuffer structure. This structure contains all information required for accessing the various components of the kernel log buffer.
Offsets for the various components of the printk ringbuffer. Used by user-space tools to view the kernel log buffer without requiring the declaration of the structure.
The size of the prb_desc_ring structure. This structure contains information about the set of record descriptors.
Offsets for the fields describing the set of record descriptors. Used by user-space tools to be able to traverse the descriptors without requiring the declaration of the structure.
The size of the prb_desc structure. This structure contains information about a single record descriptor.
Offsets for the fields describing a record descriptors. Used by user-space tools to be able to read descriptors without requiring the declaration of the structure.
The size of the prb_data_blk_lpos structure. This structure contains information about where the text or dictionary data (data block) is located within the respective data ring.
Offsets for the fields describing the location of a data block. Used by user-space tools to be able to locate data blocks without requiring the declaration of the structure.
The size of the printk_info structure. This structure contains all the meta-data for a record.
Offsets for the fields providing the meta-data for a record. Used by user-space tools to be able to read the information without requiring the declaration of the structure.
The size of the prb_data_ring structure. This structure contains information about a set of data blocks.
Offsets for the fields describing a set of data blocks. Used by user-space tools to be able to access the data blocks without requiring the declaration of the structure.
The size of the atomic_long_t structure. Used by user-space tools to be able to copy the full structure, regardless of its architecture-specific implementation.
Offset for the long value of an atomic_long_t variable. Used by user-space tools to access the long value without requiring the architecture-specific declaration.
The number of migrate types for pages. The free_list is described by the array. Used by tools to compute the number of free pages.
On linux-2.6.21 or later, the number of free pages is in vm_stat[NR_FREE_PAGES]. Used to get the number of free pages.
Page attributes. These flags are used to filter various unnecessary for dumping pages.
More page attributes. These flags are used to filter various unnecessary for dumping pages.
The HUGETLB_PAGE_DTOR flag denotes hugetlbfs pages. Makedumpfile excludes these pages.
Used to convert the virtual address of an exported kernel symbol to its corresponding physical address.
Used to walk through the whole page table and convert virtual addresses to physical addresses. The init_top_pgt is somewhat similar to swapper_pg_dir, but it is only used in x86_64.
User-space tools need to know whether the crash kernel was in 5-level paging mode.
This is a struct pglist_data array and stores all NUMA nodes information. Makedumpfile gets the pglist_data structure from it.
The maximum number of nodes in system.
The kernel randomization offset. Used to compute the page offset. If KASLR is disabled, this value is zero.
Currently unused by Makedumpfile. Used to compute the module virtual address by Crash.
AMD-specific with SME support: it indicates the secure memory encryption mask. Makedumpfile tools need to know whether the crash kernel was encrypted. If SME is enabled in the first kernel, the crash kernel’s page table entries (pgd/pud/pmd/pte) contain the memory encryption mask. This is used to remove the SME mask and obtain the true physical address.
Currently, sme_mask stores the value of the C-bit position. If needed, additional SME-relevant info can be placed in that variable.
[ misc ][ enc bit ][ other misc SME info ] 0000_0000_0000_0000_1000_0000_0000_0000_0000_0000_..._0000 63 59 55 51 47 43 39 35 31 27 ... 3
Denotes whether physical address extensions are enabled. It has the cost of a higher page table lookup overhead, and also consumes more page table space per process. Used to check whether PAE was enabled in the crash kernel when converting virtual addresses to physical addresses.
pg_data_t array storing all NUMA nodes information. MAX_NUMNODES indicates the number of the nodes.
List of node memory chunks. Filled when parsing the SRAT table to obtain information about memory nodes. NR_NODE_MEMBLKS indicates the number of node memory chunks.
These values are used to compute the number of nodes the crashed kernel used.
node_memblk_s|(node_memblk_s, start_paddr)|(node_memblk_s, size)¶
The size of a struct node_memblk_s and the offsets of the node_memblk_s’s members. Used to compute the number of nodes.
User-space tools need to know whether the crash kernel was in 3-level or 4-level paging mode. Used to distinguish the page table.
The maximum number of bits for virtual addresses. Used to compute the virtual memory ranges.
The offset between the kernel virtual and physical mappings. Used to translate virtual to physical addresses.
Indicates the physical address of the start of memory. Similar to kimage_voffset, which is used to translate virtual to physical addresses.
The kernel randomization offset. Used to compute the page offset. If KASLR is disabled, this value is zero.
The mask to extract the Pointer Authentication Code from a kernel virtual address.
Indicates the size offset of the memory region addressed by TTBR1_EL1. The region size is 2^(64-T1SZ) bytes.
TTBR1_EL1 is the table base address register specified by ARMv8-A architecture which is used to lookup the page-tables for the Virtual addresses in the higher VA range (refer to ARMv8 ARM document for more details).
It indicates whether the crash kernel supports large physical address extensions. Used to translate virtual to physical addresses.
An array with a pointer to the lowcore of every CPU. Used to print the psw and all registers information.
Used to get the vmalloc_start address from the high_memory symbol.
The maximum number of CPUs.
The vmemmap_list maintains the entire vmemmap physical mapping. Used to get vmemmap list count and populated vmemmap regions info. If the vmemmap address translation information is stored in the crash kernel, it is used to translate vmemmap kernel virtual addresses.
The size of a page. Used to translate virtual to physical addresses.
Page size definitions, i.e. 4k, 64k, or 16M.
Used to make vtop translations.
vmemmap_backing|(vmemmap_backing, list)|(vmemmap_backing, phys)|(vmemmap_backing, virt_addr)¶
The vmemmap virtual address space management does not have a traditional page table to track which virtual struct pages are backed by a physical mapping. The virtual to physical mappings are tracked in a simple linked list format.
User-space tools need to know the offset of list, phys and virt_addr when computing the count of vmemmap regions.
The size of a struct mmu_psize_def and the offset of mmu_psize_def’s member.
Used in vtop translations.
Indicates whether the crashed kernel enabled SH extended mode.