cancel to manage the memory before the kernel loaded