Ref. [Learning Linux Binary Analys]
Useful devices and files#
/proc//maps#
/proc/
/proc/kcore#
The /proc/kcore is an entry in the proc filesystem that acts as a dynamic core file of the Linux kernel. That is, it is a raw dump of memory that is presented in the form of an ELF core file that can be used by GDB to debug and analyze the kernel. We will explore /proc/kcore in depth in Chapter 9, Linux /proc/kcore Analysis.
/boot/System.map#
This file is available on almost all Linux distributions and is very useful for kernel hackers. It contains every symbol for the entire kernel.
/proc/kallsyms#
The kallsyms is very similar to System.map , except that it is a /proc entry that means that it is maintained by the kernel and is dynamically updated. Therefore, if any new LKMs are installed, the symbols will be added to /proc/kallsyms on the fly. The /proc/kallsyms contains at least most of the symbols in the kernel and will contain all of them if specified in the CONFIG_KALLSYMS_ALL kernel config.
/proc/iomem#
The iomem is a useful proc entry as it is very similar to /proc/