salahcoronya

Results 10 comments of salahcoronya

Here are the results (tests 1 and 3 truncated because they produce huge log files of the same output): ``` TSS2_LOG=tcti+trace tpm2_getrandom -Tdevice --hex 5 ``` [test1.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15323110/test1.out.gz) ``` TSS2_LOG=tcti+trace tpm2_getrandom...

Here's the output (note things are in a different place in my system, and the "Split debug" option is enabled) ``` salahx@gentoo-test-clang ~ $ nm /usr/lib/debug/usr/lib64/libtss2-tcti-device.so.0.0.0.debug | grep tcti 0000000000004230...

Again, log truncated because they produce huge log files of the same output ``` strace -e file tpm2_getrandom --hex 5 2>&1| grep open ``` [strace.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15323650/strace.out.gz)

If its helps, here's the output of the nm and xxd outputs without split debug: ``` salahx@gentoo-test-clang ~ $ nm /usr/lib64/libtss2-tcti-device.so.0 | grep tcti 0000000000004230 T tcti_common_cancel_checks 0000000000004210 T tcti_common_context_cast...

Here it is (first 1,000 lines): [tsstrace-strace.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15325496/tsstrace-strace.out.gz)

Here is is running as root, which can access /dev/tpm0: [tsstrace-strace-root.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15326641/tsstrace-strace-root.out.gz)

I tried he patch. It works for "tpm2_getrandom -Tdevice --hex 5". It does not work if -Tdevice is not specified. [tsstrace-strace.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15337614/tsstrace-strace.out.gz) [tsstrace-strace-nodev.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15337616/tsstrace-strace-nodev.out.gz)

I use a KVM VM myself for testing tpm2-tss. There are offical docker images https://hub.docker.com/u/gentoo/. The only tricky part is tpm2-tss has to be compiled with clang and linked with...

No go. Same result as before: [tsstrace-strace.out.gz](https://github.com/tpm2-software/tpm2-tss/files/15340560/tsstrace-strace.out.gz)

Yes, it works (I also tested it with tpm2-abrmd. That works too).