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:
After installing a kernel module packaged in an RPM with KMP support (kmod-... rpm file that was built against default kernel version 3.10.0-327.el7.ppc64le) on RHEL 7.2 PPC64LE with errata kernel version 3.10.0-327.10.1.el7.ppc64le, the compatibility symlinks for the modules were not created under /lib/modules/3.10.0-327.10.1.el7.ppc64le/weak-updates/.
The problem is with a regular expression in script "/sbin/weak-modules" in function module_is_compatible, which fails to get the "TOC." symbol from kernel's symvers, which causes a false alarm like:
"Module ib_core.ko from kernel 3.10.0-327.el7.ppc64le is not compatible with kernel 3.10.0-327.10.1.el7.ppc64le in symbols: TOC."
Therefore, the symlink is not created under weak-updates/ directory.
* Note that manually insmod-ing the module worked, which indicated that there is no ABI compatibility issue.
More details:
At line #201: | sed -r -ne 's:^(0x[0]*[0-9a-f]{8}\t[0-9a-zA-Z_]+)\t.*:\1:p'
The symbol "TOC." is excluded as "\." is not in the regular expression for a valid symbol name.
But, when getting modversios for each module using modprobe, all symbols are taken including those with "." in their names, and as a result, the script thinks that the module needs a symbol that is not provided by anyone.
I verified that "TOC." exists in /boot/symvers-$krel.gz with same version as in my module (both are 0x00000000 TOC.).
The "TOC." symbol seems to exist only on PPC64LE, therefore the issue exist only on PPC64LE.
######################
Version-Release number of selected component (if applicable):
/sbin/weak-modules from kmod-20-5.el7.ppc64le
Red Hat Enterprise Linux Server release 7.2 (Maipo)
######################
How reproducible:
Always.
######################
Steps to Reproduce:
1. Build kernel module packaged in an RPM with KMP support on 3.10.0-327.el7.ppc64le
2. Install it on errata kernel 3.10.0-327.10.1.el7.ppc64le
######################
Actual results:
Compatibility symlinks for compatible modules are not created. Nothing under /lib/modules/3.10.0-327.10.1.el7.ppc64le/weak-updates/
######################
Expected results:
Links for installed module should exist under /lib/modules/3.10.0-327.10.1.el7.ppc64le/weak-updates/
Description of problem: After installing a kernel module packaged in an RPM with KMP support (kmod-... rpm file that was built against default kernel version 3.10.0-327.el7.ppc64le) on RHEL 7.2 PPC64LE with errata kernel version 3.10.0-327.10.1.el7.ppc64le, the compatibility symlinks for the modules were not created under /lib/modules/3.10.0-327.10.1.el7.ppc64le/weak-updates/. The problem is with a regular expression in script "/sbin/weak-modules" in function module_is_compatible, which fails to get the "TOC." symbol from kernel's symvers, which causes a false alarm like: "Module ib_core.ko from kernel 3.10.0-327.el7.ppc64le is not compatible with kernel 3.10.0-327.10.1.el7.ppc64le in symbols: TOC." Therefore, the symlink is not created under weak-updates/ directory. * Note that manually insmod-ing the module worked, which indicated that there is no ABI compatibility issue. More details: At line #201: | sed -r -ne 's:^(0x[0]*[0-9a-f]{8}\t[0-9a-zA-Z_]+)\t.*:\1:p' The symbol "TOC." is excluded as "\." is not in the regular expression for a valid symbol name. But, when getting modversios for each module using modprobe, all symbols are taken including those with "." in their names, and as a result, the script thinks that the module needs a symbol that is not provided by anyone. I verified that "TOC." exists in /boot/symvers-$krel.gz with same version as in my module (both are 0x00000000 TOC.). The "TOC." symbol seems to exist only on PPC64LE, therefore the issue exist only on PPC64LE. ###################### Version-Release number of selected component (if applicable): /sbin/weak-modules from kmod-20-5.el7.ppc64le Red Hat Enterprise Linux Server release 7.2 (Maipo) ###################### How reproducible: Always. ###################### Steps to Reproduce: 1. Build kernel module packaged in an RPM with KMP support on 3.10.0-327.el7.ppc64le 2. Install it on errata kernel 3.10.0-327.10.1.el7.ppc64le ###################### Actual results: Compatibility symlinks for compatible modules are not created. Nothing under /lib/modules/3.10.0-327.10.1.el7.ppc64le/weak-updates/ ###################### Expected results: Links for installed module should exist under /lib/modules/3.10.0-327.10.1.el7.ppc64le/weak-updates/