Q:

problem in allocating kernel memory by malloc() from user space?

Is there any protection provided by kernel? Because when we tried to allocate memory using an
malloc() from user space, the kernel allowed to allocated around 124
MB of memory, and when we try to write into it, the kernel crashed. If there
was protection of kernel memory area, this wouldn't have happened

A:

In kernel-space there is no memory protection. Then again, malloc() isn't available in kernel-space, so what are you asking?

