Bug 1826022 - libkcapi build fails in tests with recent kernels
Summary: libkcapi build fails in tests with recent kernels
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: libkcapi
Version: 33
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Sahana Prasad
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-20 17:16 UTC by Tomas Mraz
Modified: 2020-11-09 13:02 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-09 13:02:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Full build log from koji scratch build (309.49 KB, text/plain)
2020-04-20 17:17 UTC, Tomas Mraz
no flags Details

Description Tomas Mraz 2020-04-20 17:16:18 UTC
Excerpt from a build log:

[FAILED: 64-bit - 5.5.10-200.fc31.x86_64] 100001 bytes: FILEIN / STDOUT enc test (256 bits): original file (1aa8bb9ca54e89b3befcffae241ed656c5d4da8cf2400f0b132509156f413e39) and generated file (843c6f21a4431dcb3508ecadb86cc8fdb12d22cb350780f2922652389d590b6b)
[FAILED: 64-bit - 5.5.10-200.fc31.x86_64] 100001 bytes: FILEIN / STDOUT enc test (256 bits) (openssl generated CT): original file (41b5f8bcb7feab9653dda8dc0232d159d2a2bffd6346746d1fd9608552953788) and generated file (80d32099194587fac133531991da3bec04ba2a12cbf91be65667dba07f25b732)
[FAILED: 64-bit - 5.5.10-200.fc31.x86_64] 100001 bytes: FILEIN / STDOUT enc test (256 bits) (openssl generated PT): original file (843c6f21a4431dcb3508ecadb86cc8fdb12d22cb350780f2922652389d590b6b) and generated file (124c03f93a2e553e9b55cf0e7f5a201b4d79daa7ec39e497361553dbe6d7c54b)
[FAILED: 64-bit - 5.5.10-200.fc31.x86_64] 100001 bytes: FILEIN / STDOUT enc test (password): original file (1aa8bb9ca54e89b3befcffae241ed656c5d4da8cf2400f0b132509156f413e39) and generated file (843c6f21a4431dcb3508ecadb86cc8fdb12d22cb350780f2922652389d590b6b)

Comment 1 Tomas Mraz 2020-04-20 17:17:40 UTC
Created attachment 1680342 [details]
Full build log from koji scratch build

The scratch build is here but attaching the log in case the build gets evicted:
https://koji.fedoraproject.org/koji/taskinfo?taskID=43568853

Comment 2 Ondrej Mosnacek 2020-04-21 08:10:00 UTC
I did some investigation and it seems to be a kernel bug. I reported it to the linux-crypto ML:
https://lore.kernel.org/linux-crypto/CAAUqJDvZt7_j+eor1sXRg+QmrdXTjMiymFnji86PoatsYPUugA@mail.gmail.com/T/

If the bug is confirmed to be in the kernel, then I think we'll need to disable these tests in %check until the bug is fixed and builders updated.

Comment 3 Ondrej Mosnacek 2020-04-21 20:18:59 UTC
FYI, I added the libkcapi testsuite to CKI [1], so that such bugs are detected earlier in the future.

For those who don't know, CKI [2] is a project that runs a curated set of tests (mostly derived from internal RH tests) on upstream and RHEL kernels.

[1] https://github.com/CKI-project/tests-beaker/pull/513
[2] https://cki-project.org/

Comment 4 Sahana Prasad 2020-04-22 12:39:41 UTC
Failing kcapi-enc tests (that cause the build failures) are temporarily disabled (until this bug is fixed)

Comment 5 Ondrej Mosnacek 2020-05-06 15:34:15 UTC
OK, this turned out to be a bug in libkcapi after all [1]. It should be fixed upstream in [2].

[1] https://lore.kernel.org/linux-crypto/20200505075834.GA1190@gondor.apana.org.au/
[2] https://github.com/smuellerDD/libkcapi/commit/2fdd3738c77b0db825b4bb94eef9a932aa5077de

Comment 6 Fedora Update System 2020-05-25 11:47:23 UTC
FEDORA-2020-b5b28a7dae has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b5b28a7dae

Comment 7 Sahana Prasad 2020-05-25 13:25:40 UTC
Issue fixed in libkcapi-1.2.0-1.fc33

Comment 8 Ben Cotton 2020-08-11 15:32:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle.
Changing version to 33.

Comment 9 Ondrej Mosnacek 2020-11-09 13:02:39 UTC
This can be closed. The issue has been fixed long ago.


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