Skip to content

kpatch-build: ignores ERROR() from create-kpatch-module and create-klp-module #1223

@joe-lawrence

Description

@joe-lawrence

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions