I am new to Linux, Understood that from user mode, if a process call the system call fork(), then the process stars executing in system mode and a new child process is created with a new kernel mode space ( it include stack also) is allocated to that newly created child process. My question is, 1>how and when is the user mode stack created for this newly created process? 2>How kernel know where is the user mode stack for this newly created process? 3>Can kernel access the user mode stack while executing in kernel mode in that newly created process context?
correct me if my question or understanding is wrong.
Thanks in advance for the guidance.
regards Bibek