I hope you know the concept that all user process will be kept in user space only. It uses system calls to get some work done by kernel.
The stack memory will be part of process context area in memory. i.e user space.
Suppose your process is running, get the PID by ps -ax
. say 1234 is your PID.
cat /proc/1234/maps
will give you the mapping of that particular process.
In thats maps file, you can check the stack
for stack mapping.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…