syscall — user ↔ kernel mode switch

x86-64 Linux에서 sys_read가 호출될 때 CPU 내부에서 벌어지는 일

CPU mode: ring 3 (user)
user stack
kernel stack