OS/Architecture Interaction
when executing in user mode, kernel memory (part of which is the kernel stack) will not be accessible even if mapped. each thread has its own kernel stack (and, in fact, its own user stack as well).
buffer overflow (buffer overrun), is an anomaly where a program, while writing data to a buffer, overruns the buffer's boundary and overwrites adjacent memory locations. This is a special case of the violation of memory safety.
- CPU地址 = 页号 + 页偏移
- 一般OS,会给每个进程分配一个页表
- 页表的指针与其他寄存器的值被存入进程控制块中(PCB)