Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 522684

Summary: sys-fs/cryptsetup testsuite does not handle missing kernel config options well
Product: Gentoo Linux Reporter: Sven E. <dark>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: nikoli
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven E. 2014-09-13 03:28:12 UTC
When the kernel backend is used, the current tests do not meat the minimum requirements.

In particular: CONFIG_CRYPTO_SHA1/SHA256 is needed (for backend checks), CONFIG_CRYPTO_USER_API, CONFIG_CRYPTO_USER_API_HASH and CONFIG_CRYPTO_USER_API_SKCIPHER are needed for the kernel backend (skcipher just lately). For LUKS CONFIG_CRYPTO_HMAC is needed (for key derivation.

Reproducible: Always

Steps to Reproduce:
n/a
Actual Results:  
Necessary checks for kernel backend are currently omitted.

Expected Results:  
A more thoroughly set of tests to ensure requirements are met.
Comment 1 SpanKY gentoo-dev 2014-09-19 15:55:11 UTC
the unittests should just mark themselves as SKIP when the kernel features are unavailable
Comment 2 Martin Filo 2016-01-10 16:29:30 UTC
I can confirm that all cryptsetup versions which are in portage now, crashing without CONFIG_CRYPTO_USER_API_HASH enabled in kernel with message "Cannot initialize crypto backend". This has not been required in older versions.