Fix the lacking kmalloc function.