Yifan Zhang
Yifan Zhang

Reputation: 1501

In linux, all kernel processes share the same kernel stack, each user process has its own stack, correct?

Furthermore, if a user process link a shared lib, say, glib, libX, libY, libZ, then glib and libX, Y, Z have their individual vma structs for text, data, but still share the same stack w/ the user process, correct ?

Upvotes: 2

Views: 634

Answers (1)

ugoren
ugoren

Reputation: 16441

Incorrect.

There's one kernel address space, and no kernel processes.
There are kernel threads, and there are user space threads that enter the kernel. These run in the kernel address space.
Each of these has a separate stack, within the kernel address space.

Upvotes: 1

Related Questions