Hi Openssl team,
I have an performance issue with openssl_fips.
My application use openssl_fips version 0.9.8.
Recently, I found that the fips lib make my application slow.
When my application initialize the fips setting, it introduces 7000+ getpid() 
call.
And this will cost 5 seconds.

Is this an real issue?
Looking forward to your reply.
Thanks.


The call trace is as followed:
Breakpoint 1, 0x7af3a278 in getpid+0 () from /usr/lib/libc.2
#0  0x7af3a278 in getpid+0 () from /usr/lib/libc.2
#1  0x7a41c454 in CRYPTO_thread_id+0x24 () from libcrypto.sl.0.9.8
#2  0x7a40bbd8 in FIPS_mode_set+0xf0 () from libcrypto.sl.0.9.8
#3  0x2695f8 in main+0x168 ()

Breakpoint 1, 0x7af3a278 in getpid+0 () from /usr/lib/libc.2
#0  0x7af3a278 in getpid+0 () from /usr/lib/libc.2
#1  0x7a41c454 in CRYPTO_thread_id+0x24 () from libcrypto.sl.0.9.8
#2  0x7a40b3b0 in FIPS_mode+0x70 () from libcrypto.sl.0.9.8
#3  0x7a4445a4 in HMAC_Init_ex+0x224 () from libcrypto.sl.0.9.8
#4  0x7a44471c in HMAC_Init+0x6c () from libcrypto.sl.0.9.8
#5  0x7a40b890 in FIPS_incore_fingerprint+0x98 () from libcrypto.sl.0.9.8
#6  0x7a40b9b8 in FIPS_check_incore_fingerprint+0x30 () from  libcrypto.sl.0.9.8
#7  0x7a40bd08 in FIPS_mode_set+0x220 () from libcrypto.sl.0.9.8
#8  0x2695f8 in main+0x168 ()

Breakpoint 1, 0x7af3a278 in getpid+0 () from /usr/lib/libc.2
#0  0x7af3a278 in getpid+0 () from /usr/lib/libc.2
#1  0x7a41c454 in CRYPTO_thread_id+0x24 () from libcrypto.sl.0.9.8
#2  0x7a40b5ec in FIPS_selftest_failed+0x6c () from libcrypto.sl.0.9.8
#3  0x7a420764 in EVP_DigestInit_ex+0x34 () from libcrypto.sl.0.9.8
#4  0x7a4444a4 in HMAC_Init_ex+0x124 () from /libcrypto.sl.0.9.8
#5  0x7a44471c in HMAC_Init+0x6c () from libcrypto.sl.0.9.8
#6  0x7a40b890 in FIPS_incore_fingerprint+0x98 () from  libcrypto.sl.0.9.8
#7  0x7a40b9b8 in FIPS_check_incore_fingerprint+0x30 () from libcrypto.sl.0.9.8
#8  0x7a40bd08 in FIPS_mode_set+0x220 () from libcrypto.sl.0.9.8
#9  0x2695f8 in main+0x168 ()



Best Regards,
-Meiling

Hi Openssl team,

I have an performance issue with openssl_fips.

My application use openssl_fips version 0.9.8.

Recently, I found that the fips lib make my application slow.

When my application initialize the fips setting, it introduces 7000+ getpid() call.

And this will cost 5 seconds.

 

Is this an real issue?

Looking forward to your reply.

Thanks.

 

 

The call trace is as followed:

Breakpoint 1, 0x7af3a278 in getpid+0 () from /usr/lib/libc.2

#0  0x7af3a278 in getpid+0 () from /usr/lib/libc.2

#1  0x7a41c454 in CRYPTO_thread_id+0x24 () from libcrypto.sl.0.9.8

#2  0x7a40bbd8 in FIPS_mode_set+0xf0 () from libcrypto.sl.0.9.8

#3  0x2695f8 in main+0x168 ()

 

Breakpoint 1, 0x7af3a278 in getpid+0 () from /usr/lib/libc.2

#0  0x7af3a278 in getpid+0 () from /usr/lib/libc.2

#1  0x7a41c454 in CRYPTO_thread_id+0x24 () from libcrypto.sl.0.9.8

#2  0x7a40b3b0 in FIPS_mode+0x70 () from libcrypto.sl.0.9.8

#3  0x7a4445a4 in HMAC_Init_ex+0x224 () from libcrypto.sl.0.9.8

#4  0x7a44471c in HMAC_Init+0x6c () from libcrypto.sl.0.9.8

#5  0x7a40b890 in FIPS_incore_fingerprint+0x98 () from libcrypto.sl.0.9.8

#6  0x7a40b9b8 in FIPS_check_incore_fingerprint+0x30 () from  libcrypto.sl.0.9.8

#7  0x7a40bd08 in FIPS_mode_set+0x220 () from libcrypto.sl.0.9.8

#8  0x2695f8 in main+0x168 ()

 

Breakpoint 1, 0x7af3a278 in getpid+0 () from /usr/lib/libc.2

#0  0x7af3a278 in getpid+0 () from /usr/lib/libc.2

#1  0x7a41c454 in CRYPTO_thread_id+0x24 () from libcrypto.sl.0.9.8

#2  0x7a40b5ec in FIPS_selftest_failed+0x6c () from libcrypto.sl.0.9.8

#3  0x7a420764 in EVP_DigestInit_ex+0x34 () from libcrypto.sl.0.9.8

#4  0x7a4444a4 in HMAC_Init_ex+0x124 () from /libcrypto.sl.0.9.8

#5  0x7a44471c in HMAC_Init+0x6c () from libcrypto.sl.0.9.8

#6  0x7a40b890 in FIPS_incore_fingerprint+0x98 () from  libcrypto.sl.0.9.8

#7  0x7a40b9b8 in FIPS_check_incore_fingerprint+0x30 () from libcrypto.sl.0.9.8

#8  0x7a40bd08 in FIPS_mode_set+0x220 () from libcrypto.sl.0.9.8

#9  0x2695f8 in main+0x168 ()

 

 

 

Best Regards,

-Meiling

Reply via email to