------- Comment From <email address hidden> 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
------- Comment From <email address hidden> 2018-05-16 12:13 EDT------- 6.0.9-11_ s390x.deb) and EP11 (libep11_ 1.3.2-1_ s390x.deb) which are distributed by IBM. The pacakge-provided /etc/opencrypto ki/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.
To help in narrowing down In a next step I installed the libraries for CCA (csulcca_
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 linux-gnu/ libthread_ db.so.1" .
(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-
Program received signal SIGSEGV, Segmentation fault. get_mechanism_ list (tokdata=<optimized out>, pMechanismList= pMechanismList@ entry=0x0, pulCount@ entry=0x3ffffff f118) at ep11_specific. c:4732 get_mechanism_ list (tokdata=<optimized out>, pMechanismList= pMechanismList@ entry=0x0, pulCount@ entry=0x3ffffff f118) at ep11_specific. c:4732 pMechList@ entry=0x0, entry=0x3ffffff f118) at new_host.c:346 0x3fffffff118) at api_interface. c:1997 mechanism_ info (slot_id=<optimized out>) at pkcsconf.c:655
0x000003fffc9eb33e in ep11tok_
pulCount=
4732 ep11_specific.c: No such file or directory.
(gdb) bt
#0 0x000003fffc9eb33e in ep11tok_
pulCount=
#1 0x000003fffc9de882 in SC_GetMechanismList (tokdata=<optimized out>, sid=sid@entry=1, pMechList=
count=count@
#2 0x000003fffdb87634 in C_GetMechanismList (slotID=1, pMechanismList=0x0, pulCount=
#3 0x000002aa000050b0 in print_mech_info (slot_id=<optimized out>) at pkcsconf.c:597
#4 0x000002aa0000344a in display_
#5 main (argc=<optimized out>, argv=0x3fffffff438) at pkcsconf.c:224