try to use kmalloc to allocate memory for the buffer