Activity log for bug #1840420

Date Who What changed Old value New value Message
2019-08-16 07:59:34 bugproxy bug added bug
2019-08-16 07:59:36 bugproxy tags architecture-s39064 bugnameltc-180486 severity-critical targetmilestone-inin---
2019-08-16 07:59:37 bugproxy ubuntu: assignee Skipper Bug Screeners (skipper-screen-team)
2019-08-16 07:59:40 bugproxy affects ubuntu opencryptoki (Ubuntu)
2019-08-16 08:07:38 Frank Heimes bug task added ubuntu-z-systems
2019-08-16 08:44:23 Frank Heimes description Description will follow Problem description (Tested with 18.04.2 but need be fixed with 18.04.3) Summary ======= Ubuntu 18.04.2 system installed ( 4.15.0-55-generic kernel ) providing opencryptoki version 3.9.0, and libica version 3.2.1 The digest_tests being part of the github opencryptoki package show failures. Total=641, Ran=521, Passed=391, Failed=130, Skipped=120, Errors=0 The problem is immediately reproducible. Independent of crypto cards being online. Details ======= Set up Ubuntu 18.04.2 with opencryptoki and libica3. Initialize the opencryptoki ICA token, compile and build the opencryptoki tests being part of the github opencryptoki package tagged as 3.9.0. After successful initialization, the ICA token is expected to be readily initialized as follows: # pkcsconf -t -c 0 Token #0 Info: Label: icatest Manufacturer: IBM Corp. Model: IBM ICA Serial Number: 123 Flags: 0x44D (RNG|LOGIN_REQUIRED|USER_PIN_INITIALIZED|CLOCK_ON_TOKEN|TOKEN_INITIALIZED) Sessions: 0/18446744073709551614 R/W Sessions: 18446744073709551615/18446744073709551614 PIN Length: 4-8 Public Memory: 0xFFFFFFFFFFFFFFFF/0xFFFFFFFFFFFFFFFF Private Memory: 0xFFFFFFFFFFFFFFFF/0xFFFFFFFFFFFFFFFF Hardware Version: 1.0 Firmware Version: 1.0 Time: 17:48:54 Terminal ouptut =============== Output of the failing tests for digest_tests ... ------ * TESTSUITE do_SignVerify_HMAC BEGIN SHA-512 HMAC Sign Verify. ------ * TESTCASE do_SignVerify_HMAC BEGIN Sign Verify SHA-512 HMAC with test vector 0. * TESTCASE do_SignVerify_HMAC FAIL (digest_func.c:1284) hashed data does not match test vector's hashed data ------ * TESTCASE do_SignVerify_HMAC BEGIN Sign Verify SHA-512 HMAC with test vector 1. * TESTCASE do_SignVerify_HMAC FAIL (digest_func.c:1284) hashed data does not match test vector's hashed data ------ * TESTCASE do_SignVerify_HMAC BEGIN Sign Verify SHA-512 HMAC with test vector 2. * TESTCASE do_SignVerify_HMAC FAIL (digest_func.c:1284) hashed data does not match test vector's hashed data ------ * TESTCASE do_SignVerify_HMAC BEGIN Sign Verify SHA-512 HMAC with test vector 3. * TESTCASE do_SignVerify_HMAC FAIL (digest_func.c:1284) hashed data does not match test vector's hashed data ------ * TESTCASE do_SignVerify_HMAC BEGIN Sign Verify SHA-512 HMAC with test vector 4. * TESTCASE do_SignVerify_HMAC FAIL (digest_func.c:1284) hashed data does not match test vector's hashed data ------ * TESTCASE do_SignVerify_HMAC BEGIN Sign Verify SHA-512 HMAC with test vector 5. * TESTCASE do_SignVerify_HMAC FAIL (digest_func.c:1284) hashed data does not match test vector's hashed data ------ Debug data ========== See attached output of the digest_tests run. ---uname output--- Linux system 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:21:03 UTC 2019 s390x s390x s390x GNU/Linux Machine Type = IBM 3906 ---Steps to Reproduce--- 1.) Install the opencryptoki and libica3 packages 2.) Add your user to the pkcs11 group: usermod -aG pkcs11 root and re-login 3.) run: systemctl start pkcsslotd.service 4.) compile and build the opencryptoki version 3.9.0 test cases using the GitHub package version 3.9 5.) run the digest_tests from the testcases/crypto/ directory, against the ICA slot ./digest_tests -slot <N> The userspace tool has the following bit modes: 64bit Userspace rpm: opencryptoki ------- Comment From heinz-werner_seeck@de.ibm.com 2019-08-16 04:14 EDT------- Solution : Backport for 3.9.0 This is fixed with commit https://github.com/opencryptoki/opencryptoki/commit/363f465755399e124b6f503db111c2b8390cfffe that came after 3.9.0.
2019-08-16 08:44:32 Frank Heimes ubuntu-z-systems: status New Triaged
2019-08-16 08:44:35 Frank Heimes ubuntu-z-systems: importance Undecided Critical
2019-08-16 08:44:49 Frank Heimes ubuntu-z-systems: assignee Canonical Foundations Team (canonical-foundations)
2019-08-16 09:59:48 bugproxy tags architecture-s39064 bugnameltc-180486 severity-critical targetmilestone-inin--- architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin---
2019-08-16 10:12:42 Frank Heimes ubuntu-z-systems: importance Critical High
2019-08-19 15:27:27 Dimitri John Ledkov nominated for series Ubuntu Bionic
2019-08-19 15:27:27 Dimitri John Ledkov bug task added opencryptoki (Ubuntu Bionic)
2019-08-19 15:27:40 Dimitri John Ledkov opencryptoki (Ubuntu): status New Fix Released
2019-08-19 15:45:47 Frank Heimes ubuntu-z-systems: status Triaged In Progress
2019-08-19 15:50:24 Dimitri John Ledkov opencryptoki (Ubuntu Bionic): status New In Progress
2019-08-20 18:36:25 Brian Murray opencryptoki (Ubuntu Bionic): status In Progress Fix Committed
2019-08-20 18:36:27 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2019-08-20 18:36:29 Brian Murray bug added subscriber SRU Verification
2019-08-20 18:36:33 Brian Murray tags architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin--- architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin--- verification-needed verification-needed-bionic
2019-08-20 19:02:08 Andrew Cloke ubuntu-z-systems: status In Progress Fix Committed
2019-08-29 05:53:01 Frank Heimes tags architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin--- verification-needed verification-needed-bionic architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin--- verification-done verification-done-bionic
2019-09-17 06:13:15 Ɓukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2019-09-17 06:23:12 Launchpad Janitor opencryptoki (Ubuntu Bionic): status Fix Committed Fix Released
2019-09-17 06:26:26 Frank Heimes ubuntu-z-systems: status Fix Committed Fix Released
2019-09-17 07:39:27 bugproxy tags architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin--- verification-done verification-done-bionic architecture-s39064 bugnameltc-180486 severity-high targetmilestone-inin18043 verification-done verification-done-bionic