Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
kpatch version shows the old version value.
Version-Release number of selected component (if applicable):
How reproducible:
[root@ibm-x3655-03 ~]# rpm -q kpatch
kpatch-0.3.1-1.el7_2.noarch
[root@ibm-x3655-03 ~]# kpatch version
0.2.2
And the help info shows about initrd, but seems not using initrd.
usage: kpatch <command> [<args>]
Valid commands:
install [-k|--kernel-version=<kernel version>] <module>
install patch module to the initrd to be loaded at boot
uninstall [-k|--kernel-version=<kernel version>] <module>
uninstall patch module from the initrd
[root@ibm-x3655-03 ~]# kpatch unload --all
+ INSTALLDIR=/var/lib/kpatch
++++ type -p /usr/sbin/kpatch
+++ dirname /usr/sbin/kpatch
++ readlink -f /usr/sbin
+ SCRIPTDIR=/usr/sbin
+ VERSION=0.2.2
+ unset MODULE
+ [[ 2 -lt 1 ]]
+ case "$1" in
+ [[ 2 -ne 2 ]]
+ case "$2" in
+ for module in '/sys/kernel/kpatch/patches/*'
+ [[ -e /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1 ]]
++ basename /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1
+ unload_module kpatch_3_10_0_327_3_1_1_1
+ PATCH=kpatch_3_10_0_327_3_1_1_1
+ PATCH=kpatch_3_10_0_327_3_1_1_1
+ ENABLED=/sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1/enabled
+ [[ -e /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1/enabled ]]
++ cat /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1/enabled
+ [[ 1 -eq 1 ]]
+ echo 'disabling patch module: kpatch_3_10_0_327_3_1_1_1'
disabling patch module: kpatch_3_10_0_327_3_1_1_1
+ echo 0
+ echo 'unloading patch module: kpatch_3_10_0_327_3_1_1_1'
unloading patch module: kpatch_3_10_0_327_3_1_1_1
+ rmmod kpatch_3_10_0_327_3_1_1_1
Actual results:
kpatch version should show right value
kpatch help info should show the right info about initrd.
Expected results:
Additional info:
Description of problem: kpatch version shows the old version value. Version-Release number of selected component (if applicable): How reproducible: [root@ibm-x3655-03 ~]# rpm -q kpatch kpatch-0.3.1-1.el7_2.noarch [root@ibm-x3655-03 ~]# kpatch version 0.2.2 And the help info shows about initrd, but seems not using initrd. usage: kpatch <command> [<args>] Valid commands: install [-k|--kernel-version=<kernel version>] <module> install patch module to the initrd to be loaded at boot uninstall [-k|--kernel-version=<kernel version>] <module> uninstall patch module from the initrd [root@ibm-x3655-03 ~]# kpatch unload --all + INSTALLDIR=/var/lib/kpatch ++++ type -p /usr/sbin/kpatch +++ dirname /usr/sbin/kpatch ++ readlink -f /usr/sbin + SCRIPTDIR=/usr/sbin + VERSION=0.2.2 + unset MODULE + [[ 2 -lt 1 ]] + case "$1" in + [[ 2 -ne 2 ]] + case "$2" in + for module in '/sys/kernel/kpatch/patches/*' + [[ -e /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1 ]] ++ basename /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1 + unload_module kpatch_3_10_0_327_3_1_1_1 + PATCH=kpatch_3_10_0_327_3_1_1_1 + PATCH=kpatch_3_10_0_327_3_1_1_1 + ENABLED=/sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1/enabled + [[ -e /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1/enabled ]] ++ cat /sys/kernel/kpatch/patches/kpatch_3_10_0_327_3_1_1_1/enabled + [[ 1 -eq 1 ]] + echo 'disabling patch module: kpatch_3_10_0_327_3_1_1_1' disabling patch module: kpatch_3_10_0_327_3_1_1_1 + echo 0 + echo 'unloading patch module: kpatch_3_10_0_327_3_1_1_1' unloading patch module: kpatch_3_10_0_327_3_1_1_1 + rmmod kpatch_3_10_0_327_3_1_1_1 Actual results: kpatch version should show right value kpatch help info should show the right info about initrd. Expected results: Additional info: