add a kernel_patch hook