As discovered in #1203, kpatch-build continues executing if create-klp-module or create-kpatch-module sets error status.
In both cases, check_pipe_status() is called to try and catch a segfault condition (code 139), but the ERROR() macro in log.h sets EXIT_STATUS_ERROR which is not the same. This can lead to kpatch-build reporting success when an error actually occurred.
As discovered in #1203, kpatch-build continues executing if create-klp-module or create-kpatch-module sets error status.
In both cases,
check_pipe_status()is called to try and catch a segfault condition (code 139), but theERROR()macro in log.h setsEXIT_STATUS_ERRORwhich is not the same. This can lead to kpatch-build reporting success when an error actually occurred.