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.
Bug 830898 - kernel fails to boot in fips mode when AES-NI hardware instructions are available
Summary: kernel fails to boot in fips mode when AES-NI hardware instructions are avail...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Milan Broz
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 717789 808744
TreeView+ depends on / blocked
 
Reported: 2012-06-11 15:22 UTC by Paul Wouters
Modified: 2013-03-01 04:11 UTC (History)
4 users (show)

Fixed In Version: kernel-3.6.0-0.27.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 839239 (view as bug list)
Environment:
Last Closed: 2012-10-03 15:54:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
kernel patch for aesni fips test (939 bytes, patch)
2012-06-11 15:22 UTC, Paul Wouters
no flags Details | Diff
testmgr.c patch to allow more modules in fips mode (1.94 KB, patch)
2012-06-13 15:53 UTC, Paul Wouters
no flags Details | Diff
Proposed patch (2.75 KB, patch)
2012-06-29 12:31 UTC, Milan Broz
no flags Details | Diff

Description Paul Wouters 2012-06-11 15:22:15 UTC
Created attachment 590970 [details]
kernel patch for aesni fips test

Description of problem:
There are no crypto tests for fips mode in crypto/testmgr.c for the aesni drivers, so they are 'failing' fips testing.

Version-Release number of selected component (if applicable):
linus kernel git still does not have these.

Attached is a patch that resolves this, though it does call the tests which might not actually be needed.

Comment 1 Paul Wouters 2012-06-13 15:53:05 UTC
Created attachment 591553 [details]
testmgr.c patch to allow more modules in fips mode

This is an updated version of the patch to make it work for me. I can now boot the kernel in fips mode (with one dracut patch to remove aes-xts from the fipsmodule list) - including using aesni and full disk encryption.

Comment 2 Miloslav Trmač 2012-06-19 15:34:09 UTC
Please build this fix also as an F17 update, to make it easy to test application behavior in FIPS mode in a current-ish but reasonably stable environment.

Comment 3 Milan Broz 2012-06-27 14:29:42 UTC
I do not understand why should "modprobe tcrypt" in dracut fips seflcheck test all these algorithms

This is done in dracut:

    info "Self testing crypto algorithms"
    modprobe tcrypt || return 1
    rmmod tcrypt
    info "All initrd crypto checks done"

Herbert, is there a reason why it checks e.g. LRW mode?

IMHO the proper fix is that tcrypt does not test these in FIPS mode, not mark them "fips allowed"...

Comment 4 Milan Broz 2012-06-29 12:31:25 UTC
Created attachment 595295 [details]
Proposed patch

Proposed patch which doesn't add new modes and allows for me boot in fips mode (both rawhide/F17).

Comment 7 Milan Broz 2012-10-03 15:54:05 UTC
Fixed in kernel-3.6.0-0.27.el7 with rebase to 3.6, no more separate patches needed.


Note You need to log in before you can comment on or make changes to this bug.