mirror of
https://github.com/dynup/kpatch
synced 2025-02-27 15:30:49 +00:00
kpatch-build: drop support for old non-.klp.arch kernels
There were a few kernels (4.7 and 4.8) which didn't have support for .klp.arch sections, but for which we still tried to use CONFIG_LIVEPATCH. Those are inherently buggy, so just drop CONFIG_LIVEPATCH support for them altogether. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
parent
e80562a8cb
commit
3982b329bc
@ -746,15 +746,14 @@ CONFIG_PARAVIRT=0
|
||||
CONFIG_UNWINDER_ORC=0
|
||||
CONFIG_JUMP_LABEL=0
|
||||
|
||||
if grep -q "CONFIG_LIVEPATCH=y" "$CONFIGFILE" && (kernel_is_rhel || kernel_version_gte 4.7.0); then
|
||||
if grep -q "CONFIG_LIVEPATCH=y" "$CONFIGFILE" && (kernel_is_rhel || kernel_version_gte 4.9.0); then
|
||||
|
||||
USE_KLP=1
|
||||
|
||||
if kernel_is_rhel || kernel_version_gte 4.9.0; then
|
||||
# TEMPORARY: always assume .klp.arch
|
||||
USE_KLP_ARCH=1
|
||||
KPATCH_LDFLAGS="--unique=.parainstructions --unique=.altinstructions"
|
||||
CDO_FLAGS="--klp-arch"
|
||||
fi
|
||||
else
|
||||
# No support for livepatch in the kernel. Kpatch core module is needed.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user