mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10.git
synced 2026-09-09 00:07:04 +08:00
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1964 JIRA: https://issues.redhat.com/browse/RHEL-114916 JIRA: https://issues.redhat.com/browse/RHEL-114919 The bulk of this MR backports the new livepatching klp-build tool implemented via objtool for RHEL-11491. This is required for RHEL-10 kpatch delivery. The last few commits are for RHEL-11491 to include any post-CTC1 objtool fixes (to commit already present in cs-10). Omitted-fix: 9025688bf6d4 ("module: Fix device table module aliases") cs-10 doesn't have include/linux/module.h :: __mod_device_table Omitted-fix: 26bea10450af ("objtool: fix compilation failure with the x32 toolchain") cs-10 doesn't support x32 Omitted-fix: 78c268f3781e ("livepatch/klp-build: Fix klp-build vs CONFIG_MODULE_SRCVERSION_ALL") cs-10 can carry this fix separately in kpatch-patch rpms Omitted-fix: f2dba60339a6 ("objtool/klp: Fix bug table handling for __WARN_printf()") cs-10 can carry this fix separately in kpatch-patch rpms Omitted-fix: d107b3265aa5 ("objtool: Replace custom macros in elf.c with shared ones") Cleans up code, but not strictly needed for cs-10 Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com> Approved-by: Lenny Szubowicz <lszubowi@redhat.com> Approved-by: David Arcari <darcari@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>