memory management of a process in kernel space and user space.
I have following question in linux :
The memory allocation of a process(text segment,stack,heap,bss etc) in kernel(I know it does not have memory protection) and user space are done using kmalloc and malloc respectively. My query is, does the process in kernel space and user space share same memory model? If not then how does the memory allocation of processes, memory management and handling is done separately.
Please revert back if you have not understood my question.