------- Comment From christian.r...@de.ibm.com 2018-05-16 12:13 EDT-------
To help in narrowing down In a next step I installed the libraries for CCA 
(csulcca_6.0.9-11_s390x.deb) and EP11 (libep11_1.3.2-1_s390x.deb) which are 
distributed by IBM. The pacakge-provided /etc/opencryptoki/opencryptoki.conf 
file is providing the TPM token in slot 0, ICA Token as slot 1, CCA token as 
slot 2, Soft Token as slot 3, and EP11 token in slot 4.
After restarting the pkcsslotd.service 'pkcsconf -t' did finish without 
segmentation fault, RC=0, but still display all tokens as ICA tokens.
Next, I tried to display the mechanism list, but got segfault for all but slot 
4. Sample for slot 1:

# gdb /usr/sbin/pkcsconf
(gdb) run -m -c 1
Starting program: /usr/sbin/pkcsconf -m -c 1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/s390x-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x000003fffc9eb33e in ep11tok_get_mechanism_list (tokdata=<optimized out>, 
pMechanismList=pMechanismList@entry=0x0,
pulCount=pulCount@entry=0x3fffffff118) at ep11_specific.c:4732
4732    ep11_specific.c: No such file or directory.
(gdb) bt
#0  0x000003fffc9eb33e in ep11tok_get_mechanism_list (tokdata=<optimized out>, 
pMechanismList=pMechanismList@entry=0x0,
pulCount=pulCount@entry=0x3fffffff118) at ep11_specific.c:4732
#1  0x000003fffc9de882 in SC_GetMechanismList (tokdata=<optimized out>, 
sid=sid@entry=1, pMechList=pMechList@entry=0x0,
count=count@entry=0x3fffffff118) at new_host.c:346
#2  0x000003fffdb87634 in C_GetMechanismList (slotID=1, pMechanismList=0x0, 
pulCount=0x3fffffff118) at api_interface.c:1997
#3  0x000002aa000050b0 in print_mech_info (slot_id=<optimized out>) at 
pkcsconf.c:597
#4  0x000002aa0000344a in display_mechanism_info (slot_id=<optimized out>) at 
pkcsconf.c:655
#5  main (argc=<optimized out>, argv=0x3fffffff438) at pkcsconf.c:224

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1725250

Title:
  Ubuntu 17.10 - opencryptoki 3.7.0 segmentation fault on pkcsconf -t

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1725250/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to