View Issue Details

IDProjectCategoryView StatusLast Update
0005550CentOS-6kernelpublic2012-02-26 18:32
Reportercenthor Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Platformx86_64OSCentOS 6OS Version6.2
Product Version6.2 
Summary0005550: CentOS plus kernel-devel x86_64 with incomplete Module.symvers
DescriptionI noticed that that the Module.symvers file included in the non-debug kernel-devels
for the latest CentOS-Plus x86_64 kernels seems to be much shorter than that
for the debug version and also than both version for the i686 architecture, suggesting
that there is something wrong with the centos plus kernel-devel build process
on x86_64.

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.i686/Module.symvers | sort | uniq -c
  6124 EXPORT_SYMBOL
  3706 EXPORT_SYMBOL_GPL

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.i686.debug/Module.symvers | sort | uniq -c
  6177 EXPORT_SYMBOL
  3734 EXPORT_SYMBOL_GPL

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/Module.symvers | sort | uniq -c
  *2716 EXPORT_SYMBOL*
  *1957 EXPORT_SYMBOL_GPL*

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.x86_64.debug/Module.symvers | sort | uniq -c
  6147 EXPORT_SYMBOL
  3916 EXPORT_SYMBOL_GPL

Among other things, this prevents the find-requires.ksyms script (part of the %kernel_module_package utility set) from creating KABI dependencies properly on x86_64, for kernel module packages build according RHEL driver update program (i.e. kmod-* package), in the sense that they are build without any KABI-requires in the resulting kmod-RPM, thereby more or less disabling the whole KABI requirements checking subsystem of RHEL.

The standard CentOS kernel-devel (presumably RHEL upstream?) however, contains
similar numbers of symbols in Module.symvers also in the x86_64 architecture:

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.el6.i686/Module.symvers | sort | uniq -c
  6119 EXPORT_SYMBOL
  3706 EXPORT_SYMBOL_GPL

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.el6.x86_64/Module.symvers | sort | uniq -c
  6089 EXPORT_SYMBOL
  3888 EXPORT_SYMBOL_GPL

This suggests that the problem might be specific to CentOS and might not be present in RHEL upstream packages.
TagsNo tags attached.

Activities

toracat

toracat

2012-02-26 18:04

manager   ~0014559

Copying the conversation from the centos-devel mailing list:

However this is not a centosplus kernel. It should say:

/usr/src/kernels/2.6.32-220.4.2.el6.centos.plus.x86_64/Module.symvers

And I see:

$ awk '{print $4;}'
/usr/src/kernels/2.6.32-220.4.2.el6.centos.plus.x86_64/Module.symvers
| sort | uniq -c
  6193 EXPORT_SYMBOL
  3897 EXPORT_SYMBOL_GPL
centhor

centhor

2012-02-26 18:06

reporter   ~0014560

Actually the kernel devel packages with the problems described above are not CentOS-plus kernels but CentOS-updates kernels, sorry about the confusion.
JohnnyHughes

JohnnyHughes

2012-02-26 18:17

administrator   ~0014561

[johnny@m4500n 2.6.32-220.4.2.el6.x86_64]$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/Module.symvers | sort | uniq -c
   6094 EXPORT_SYMBOL
   3888 EXPORT_SYMBOL_GPL
JohnnyHughes

JohnnyHughes

2012-02-26 18:18

administrator   ~0014562

looks normal to me
toracat

toracat

2012-02-26 18:25

manager   ~0014563

@centhor

Can you check the -devel file with 'rpm -V kernel-devel' ?
centhor

centhor

2012-02-26 18:26

reporter   ~0014564

Oops, seems somehow the rpm package didn't install on my system properly, once I fix it
everything was as it should be. So there is no bug. Apologies for the the trouble...

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/Module.symvers | sort | uniq -c
   2716 EXPORT_SYMBOL
   1957 EXPORT_SYMBOL_GPL

$ rpm -qf /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/Module.symvers
kernel-devel-2.6.32-220.4.2.el6.x86_64

$ rpm -qi kernel-devel-2.6.32-220.4.2.el6.x86_64
Name : kernel-devel Relocations: (not relocatable)
Version : 2.6.32 Vendor: CentOS
Release : 220.4.2.el6 Build Date: Tue 14 Feb 2012 07:02:02 AM CET
Install Date: Fri 24 Feb 2012 09:59:38 PM CET Build Host: c6b18n3.bsys.dev.centos.org
Group : System Environment/Kernel Source RPM: kernel-2.6.32-220.4.2.el6.src.rpm
Size : 24033974 License: GPLv2
Signature : RSA/SHA1, Tue 14 Feb 2012 11:57:48 AM CET, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://www.kernel.org/
Summary : Development package for building kernel modules to match the kernel
Description :
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.


$ rpm -V kernel-devel-2.6.32-220.4.2.el6.x86_64
S.5....T. /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/Module.symvers
.......T. /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/include/config/kernel.release
.......T. /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/scripts/basic/modules.order

$ yum reinstall kernel-devel-2.6.32-220.4.2.el6.x86_64

$ rpm -V kernel-devel-2.6.32-220.4.2.el6.x86_64

$ awk '{print $4;}' /usr/src/kernels/2.6.32-220.4.2.el6.x86_64/Module.symvers | sort | uniq -c
   6094 EXPORT_SYMBOL
   3888 EXPORT_SYMBOL_GPL
toracat

toracat

2012-02-26 18:32

manager   ~0014565

Good to know there was no bug. Closing.

Issue History

Date Modified Username Field Change
2012-02-26 17:47 centhor New Issue
2012-02-26 18:04 toracat Note Added: 0014559
2012-02-26 18:06 centhor Note Added: 0014560
2012-02-26 18:17 JohnnyHughes Note Added: 0014561
2012-02-26 18:18 JohnnyHughes Note Added: 0014562
2012-02-26 18:25 toracat Note Added: 0014563
2012-02-26 18:26 centhor Note Added: 0014564
2012-02-26 18:32 toracat Note Added: 0014565
2012-02-26 18:32 toracat Status new => closed
2012-02-26 18:32 toracat Resolution open => no change required