allocate buffer memory that will be used for the kernel image