Let's begin by checking out the user VAS of any given process. A pretty detailed map of the user VAS is made available via procfs, particularly via the /proc/PID/maps pseudo-file. Let's learn how to use this interface to peek into a process's user space memory map. We will see two ways:
- Directly via the procfs interface's /proc/PID/maps pseudo-file
- Using a few useful frontends (making the output more human-digestible)
Let's start with the first one.