Red Hat Bugzilla – Bug 692515
sha512hmac expects different checksum, fails on PPC64
Last modified: 2012-08-08 14:29:11 EDT
Description of problem: sha512hmac -c /boot/.vmlinuz-2.6.32-128.el6.ppc64.hmac fails on PPC64. Version-Release number of selected component (if applicable): kernel-2.6.32-128 How reproducible: always Steps to Reproduce: 1. Install RHEL6, and hmaccalc package 2. run # sha512hmac -c /boot/.vmlinuz-2.6.32-128.el6.ppc64.hmac Actual results: sha512hmac -c /boot/.vmlinuz-2.6.32-128.el6.ppc64.hmac /boot/vmlinuz-2.6.32-128.el6.ppc64: FAILED computed = 6f39b5c725ead894b22fd334b9b349e7c1444d6a705d95a1f1c1655472d744a478d5da5f725287150a5aa45233e59b6ab447714075cf8e4fc88281246dcc7d64 expected = 6c5c405c9031d5dffae0223e4e5567ab31a64b65b83f50b22ace3e1166d3700bddebb20a522b2a52ad08a447bdab6efe4fb5c59bff0688c61adf1f72a92b19bc Installation in fips mode is not possible. Expected results: sha512hmac should pass.
Hello, Any progress on this bug? It would be nice to be fixed as soon as possible so that we could continue testing FIPS.
The problem is on RPM's post installation macro that will strip the notes section from the kernel image, changing the checksum. I have one tentative patch being built and will test it afterwards. I should have the patch submitted tomorrow if everything goes as planned.
More information: /usr/lib/rpm/redhat/brp-strip-comment-note runs on: %__os_install_post \ /usr/lib/rpm/redhat/brp-compress \ %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ /usr/lib/rpm/brp-python-bytecompile \ /usr/lib/rpm/redhat/brp-python-hardlink \ %{!?__jar_repack:/usr/lib/rpm/redhat/brp-java-repack-jars} \ %{nil} (Red Hat's RPM macros) Since ppc64 is the only one to use vmlinux, it'll be stripped in brp-strip-comment-note, changing the checksum.
Patch submitted to the mailing list.
Patch(es) available on kernel-2.6.32-131.0.1.el6
Verified on RHEL6.1-20110413.1 (Snapshot 4), kernel-2.6.32-131.0.1.el6. [root@ibm-js12-vios-01-lp1 ~]# sha512hmac -c /boot/.vmlinuz-2.6.32-131.0.1.el6.ppc64.hmac /boot/vmlinuz-2.6.32-131.0.1.el6.ppc64: OK Boot is also OK: ... sd 0:0:7:0: [sdc] Assuming drive cache: write through sd 0:0:8:0: [sdd] Assuming drive cache: write through /boot/vmlinuz-2.6.32-131.0.1.el6.ppc64: OK Welcome to Red Hat Enterprise Linux Server Starting udev: [ OK ] ...
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0542.html