Git Product home page Git Product logo

libkcapi's Introduction

libkcapi -- Linux Kernel Crypto API User Space Interface Library Build Status Code Quality: Cpp

libkcapi allows user-space to access the Linux kernel crypto API.

libkcapi uses this Netlink interface and exports easy to use APIs so that a developer does not need to consider the low-level Netlink interface handling.

The library does not implement any cipher algorithms. All consumer requests are sent to the kernel for processing. Results from the kernel crypto API are returned to the consumer via the library API.

The kernel interface and therefore this library can be used by unprivileged processes.

The focus during the development of this library is put on speed. This library does not perform any memcpy for processing the cryptographic data! The library uses scatter / gather lists to eliminate the need for moving data around in memory.

Directory Structure

lib/ -- directory holding the library

apps/ -- directory holding the applications discussed below; these applications link the library code in.

test/ -- functional verification code

speed-test/ -- performance tests

kernel-patches/ -- Linux kernel patches providing the interfaces for the asymmetric ciphers (akcipher) and the DH/ECDH ciphers (KPP). These patches must be applied to the Linux kernel if the respective configure options of either --enable-lib-asym or --enable-lib-kpp are used.

Applications

The libkcapi distribution contains the following applications which are intended as a drop-in replacement for the respective applications commonly available in all Linux distributions:

  • coreutils: sha512sum, sha384sum, sha256sum, sha224sum, sha1sum, md5sum

  • libfipscheck: fipscheck / fipshmac

  • hmaccalc: sha512hmac, sha384hmac, sha256hmac, sha224hmac, sha1hmac, sm3hmac

  • libdigest-sha3-perl: sha3sum

The output as well as the command line options are modeled according to the commands found in the coreutils package.

In addition, the following tool is available:

  • kcapi-rng: This tool allows obtaining random numbers from the kernel crypto API RNGs. It shall allow users a similar operation as a cat /dev/hwrand call.

  • kcapi-enc: This tool provides command line access to the symmetric ciphers of the kernel crypto API. It is conceptually similar to the openssl enc tool.

  • kcapi-dgst: To generate message digests and keyed message digests using the kernel crypto API ciphers, this command line tool can be used. It is conceptually similar to openssl dgst.

These applications do not depend on any user space library other than the C-lib.

Version Numbers

The version numbers for this library have the following schema: MAJOR.MINOR.PATCHLEVEL

Changes in the major number implies API and ABI incompatible changes, or functional changes that require consumer to be updated (as long as this number is zero, the API is not considered stable and can change without a bump of the major version).

Changes in the minor version are API compatible, but the ABI may change. Functional enhancements only are added. Thus, a consumer can be left unchanged if enhancements are not considered. The consumer only needs to be recompiled.

Patchlevel changes are API / ABI compatible. No functional changes, no enhancements are made. This release is a bug fixe release only. The consumer can be left unchanged and does not need to be recompiled.

Build instructions

The build system is based on autotools. First of all, you have to run the following command that will generate the Makefile and the configure script:

$ autoreconf -i

The configure script supports the following options:

  • --prefix=$PREFIX: install the library and the applications to $PREFIX
  • --enable-kcapi-test: compile and install the kcapi test program
  • --enable-kcapi-speed: compile and install kcapi-speed test program
  • --enable-kcapi-hasher: compile and install the drop-in replacement applications
  • --enable-kcapi-rngapp: compile and install the kcapi-rng application
  • --enable-kcapi-encapp: compile and install the kcapi-enc application
  • --enable-kcapi-dgstapp: compile and install the kcapi-dgst application
  • The various --disable-lib-* options allows the disabling of different library functions to allow minimizing the binary.
  • The various --enable-lib-* options allow the enabling of the different library functions. All library functions referenced there do not have an equivalent kernel support in the upstream Linux kernel. Yet, patches are available in the kernel-patches directory that provide that interface which need to be added to the kernel if desired.

For instance, to compile the library with the kcapi test program and to install them in /usr/:

$ ./configure --prefix=/usr/ --enable-kcapi-test

Then, run make to compile and make install to install in the folder specified by the --prefix option.

The Makefile compiles libkcapi as a shared library and as a static library.

Build documentation

xmlto is required to build the man pages and the documentation in doc/html. db2pdf and db2ps are required to build the documentation in PDF or in PS format.

Use the following targets to generate the documentation in the appropriate format:

  • make man
  • make pdf
  • make ps
  • make html

To install the man pages run: make install-man.

Static Code analyzer

If clang or cppcheck are installed, you can use the following targets to run them on the source code:

  • make scan
  • make cppcheck

Test cases

The test/ directory contains test cases to verify the correct operation of this library. In addition it allows the verification of the correct operation of the kernel crypto API.

The test cases are documented in test/README.

Integration of libkcapi into other projects

The libkcapi library does not have any dependencies except to the C-library (and the kernel, naturally). This allows developers to integrate the library into their project either as a shared library or natively by simply copying the required C and header files into the target project and compile them along.

When compiling them as part of a project, no special compile time flags are needed as the library is written in clean C. Though, the project author should consider the COMMON_CPPFLAGS and COMMON_LDFLAGS in Makefile.am as they collectively provide additional security checks offered by the compiler or the underlying platform.

To integrate the library source code directly into projects, the following files must always be copied into the target project irrespective of the cipher operations the project wants to use:

  • kcapi-kernel-if.c (this provides the basic kernel interface logic)

  • all header files

Now, a project may selectively copy the following files as required for the respective project. The listed files do not have mutual dependencies unless explicitly noted:

  • kcapi-aead.c (AEAD cipher support providing kcapi_aead_* functions)

  • kcapi-asym.c (asymmetric cipher support providing all kcapi_akcipher_* functions)

  • kcapi-md.c (message digest and keyed message digest support providing all kcapi_md_* functions)

  • kcapi-rng.c (random number generator support providing all kcapi_rng_* functions)

  • kcapi-sym.c (symmetric cipher support providing all kcapi_cipher_* functions)

  • kcapi-kdf.c (depending on the presence of kcapi-md.c -- providing the KDF, HKDF and PBKDF implementations with the functions of kcapi_kdf_)

  • kcapi-utils.c (small helper functions providing, including versioning APIs)

  • kcapi-kpp.c (key protocol primitives (i.e. Diffie-Hellman and EC Diffie-Hellman) support providing all kcapi_kpp_* functions)

Author

Stephan Mueller [email protected]

libkcapi's People

Contributors

bastian-krause avatar besser82 avatar bmwiedemann avatar chengyi818 avatar chleroy avatar egorenar avatar emantor avatar endeneer avatar ffontaine avatar hzhuang1 avatar jic23 avatar jvdsn avatar kloczek avatar kmarinushkin avatar kraj avatar krzk avatar malaterre avatar manoj23 avatar mjnowakowski avatar puru1761 avatar simo5 avatar smuellerdd avatar the-mule avatar uniontech-lilinjie avatar uudiin avatar wonder93 avatar xnox avatar yixiangzhike avatar zoltanfridrich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libkcapi's Issues

No user guide to run demo application

Hi smueller, I'm a new user of libcapi, I try to run the application demo of test folder and read the codes of demo . But I don't find the any user guide doc to use these demo. For example: If I want to use the RSA function to sign my file, how should I configure the parameters of main function? Do you know how could I find the related user guide to understand the codes? Thank you very much.

AIO calculation of remaining elements to send is wrong.

tosend = iovlen - handle->aio.completed_reads;

Hi, I ran into this whilst testing a new driver I'm trying to clean up.

If we get slightly ahead with sending compared to receiving and are approaching the end of what we are sending we can accidentally send to far.

So say we are sending 65 iovs with MAX_CONCURRENT set to 64 but the read only gets the first 63.
tosend is then set to 2 (rather than 1 which would be correct). Result is we run over the end and get a error from sendmsg.

I may send a patch once I've gotten the rest of the asynchronous support working for my board.
Also looking at getting cryptoperf to support async but it is 'interesting'.

(great library by the way and really pleased to see the async support.)

Jonathan

Implementing DRBG (CAVP testing)

Stephan,

I'm trying to write some code to do CAVP testing for DRBG using the AF_ALG interface. Here is what I want to check with you.

  1. As of now, these are my steps. Can you please confirm that I've not missed anything
kcapi_rng_init(&rng, rng_name, 0);

kcapi_rng_seed(rng, seedbuf, seedsize);

kcapi_rng_generate(rng, buf, todo);

kcapi_rng_generate(rng, buf, todo);
  1. How do the parameters from CAVP request file get mapped here?
    Sample input from request file:
EntropyInput = 3e5593deb25d8d5c8b90ad1211fbbdda
Nonce = 71f2d1d7a8253981
PersonalizationString =
AdditionalInput1 =
EntropyInputPR1 = 1c0e318fc9a14023f42b0cace6ae21ab
AdditionalInput1 =
EntropyInputPR2 = b477933991b9032be5103b5be011fddb

Here's my assumption. Please correct me if I'm wrong.

kcapi_rng_seed() - takes in EntropyInputReseed concatenated with AdditionalInputReseed
kcapi_rng_generate() - takes in EntropyInputPR1 concatenated with EntropyInputPR1 for first call
kcapi_rng_generate() - takes in EntropyInputPR2 concatenated with EntropyInputPR2 for first call

Not sure how EntropyInput, Nonce and PersonalizationString are used.

Makefile.am:20: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined

Just forwarding an issue which popup on Debian builds:

...
   dh_autoreconf -a -O--parallel
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:22: installing './compile'
configure.ac:22: installing './config.guess'
configure.ac:22: installing './config.sub'
configure.ac:21: installing './install-sh'
configure.ac:21: installing './missing'
Makefile.am: installing './depcomp'
Makefile.am:20: error: 'pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
autoreconf: automake failed with exit status: 1
dh_autoreconf: autoreconf -f -i returned exit code 1
debian/rules:8: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2

Ref: https://buildd.debian.org/status/package.php?p=libkcapi&suite=sid

Failed in using kacpi_cipher_enc_aes_cbc() with 256k data

Hi all,

When I used the convenient api kacpi_cipher_enc_aes_cbc() to test my hardware crypt engine
with different buffer size, but I got error when the data size was 256kB. And the other size 1k, 512k
works fine.

===============
Kernel version: 4.9

Code:

#define DATA_SIZE 256 * 1024
#define KEY_SIZE 128 / 16
#define IV_SIZE 128 / 16
data_buf = malloc(DATA_SIZE);
key_buf = malloc(KEY_SIZE);
iv_buf = malloc(IV_SIZE );
memset(key_buf, 'x', KEY_SIZE);
ret = kcapi_cipher_enc_aes_cbc(key_buf, KEY_SIZE, data_buf, DATA_SIZE๏ผŒiv_buf, data_buf, DATA_SIZE );

and the ret is -22

===============
and I traced in, the error return is occurred in kcapi-kernel-if.c:_kcapi_common_vmsplice_chunk()

===============
Further more, I modified the 'access' as KCAPI_ACCESSS_SENDMSG, and everything works fine now.

Thanks,
BabaYB

Test failures on s390x

Some tests are failing on s390x:

kcapi-enc - Error: AEAD decryption failed due to integrity violation
[FAILED: 64-bit - 5.4.43-1-lts] GCM output does not match expected output (received: f93f00000000000000000000000000000000000000000000000000000000 -- expected e80e074e70b089c160c6d3863e8d2b75ac767d2d44412252eed41a220f31)
kcapi-enc - Error: AEAD decryption failed due to integrity violation
[FAILED: 64-bit - 5.4.43-1-lts] CCM output does not match expected output (received: d4d8a519be77176fe0687f6d38f0ef259f2ee39860fb82521cca80ebda229b46 -- expected 8dd351509dcf1df9c33987fb31cd708dd60d65d3d4e1baa53581d891d994d723)
...
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (128 bits): original file (a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89) and generated file (792d52857a5bc0cca853dcabf590040e138ac2c718b1b90db6cb129ab9fd3894)
bad decrypt
4396690341064:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:610:
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (128 bits) (openssl generated CT): original file (79457af2fe613d2b8462b0f10a2d47e4c4acf035d29a9e36d2d8ad90c606a23b) and generated file (e54bba25286f350042da9a139deb13ee197a7b5be876cc27701601a1ee14fa8d)
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (128 bits) (openssl generated PT): original file (792d52857a5bc0cca853dcabf590040e138ac2c718b1b90db6cb129ab9fd3894) and generated file (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855)
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (password): original file (a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89) and generated file (85bbdbe17a17b84d6e5518b9f725aaa9d85c37db9b29d1a1180b8ec5e2accde7)
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (256 bits): original file (a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89) and generated file (f032549d8fe8fa6595a18f8c5d003ef23bb29fe715389a181757d15f22c7441d)
bad decrypt
4396601212104:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:610:
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (256 bits) (openssl generated CT): original file (bdec4dae1c72563c4c14a78a53a4983409682cffb0841f954b029a8a74a28bb1) and generated file (221fb6613fa5189c018d6521840301f8afaaf0260dd38d1899d89a610b732df3)
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (256 bits) (openssl generated PT): original file (f032549d8fe8fa6595a18f8c5d003ef23bb29fe715389a181757d15f22c7441d) and generated file (e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855)
[FAILED: 64-bit - 5.4.43-1-lts] 1 bytes: FILEIN / FILEOUT enc test (password): original file (a8100ae6aa1940d0b663bb31cd466142ebbdbd5187131b92d93818987832eb89) and generated file (85bbdbe17a17b84d6e5518b9f725aaa9d85c37db9b29d1a1180b8ec5e2accde7)
...
[FAILED: 64-bit - 5.4.43-1-lts] 15 bytes: FILEIN / FILEOUT enc test (128 bits): original file (60915c2651a88f7f587b77da42b69b5cb812d2a73f72b694abcb56d5a2d798aa) and generated file (80b96e723f35ee05a42898b68f2c9ce5d67ae32645fe2deb3fbb8ec8c6bc65e5)
bad decrypt

Full logs: http://sprunge.us/SSDV8M
Downstream PR: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/22196

cc @xpecex

Undefined reference failure when building master branch

My system info:
[jijianwen@dhcp-12-143 libkcapi]$ uname -r
4.8.15-200.fc24.x86_64
[jijianwen@dhcp-12-143 libkcapi]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/6.3.1/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --disable-libgcj --with-isl --enable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC)

libtool: link: gcc -fstack-protector-strong -g -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,now -o bin/.libs/kcapi test/bin_kcapi-kcapi-main.o ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
test/bin_kcapi-kcapi-main.o: In function kpp': /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2811: undefined reference to kcapi_kpp_init'
/home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2818: undefined reference to kcapi_kpp_dh_setparam_pkcs3' /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2826: undefined reference to kcapi_kpp_ecdh_setcurve'
/home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2834: undefined reference to kcapi_kpp_setkey' /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2852: undefined reference to kcapi_kpp_ssgen'
/home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2855: undefined reference to kcapi_kpp_keygen' /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2867: undefined reference to kcapi_kpp_destroy'
test/bin_kcapi-kcapi-main.o: In function kpp_aio': /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2884: undefined reference to kcapi_kpp_init'
/home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2891: undefined reference to kcapi_kpp_dh_setparam_pkcs3' /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2899: undefined reference to kcapi_kpp_ecdh_setcurve'
/home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2907: undefined reference to kcapi_kpp_setkey' /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2929: undefined reference to kcapi_kpp_ssgen_aio'
/home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2931: undefined reference to kcapi_kpp_keygen_aio' /home/jijianwen/wks/repos/libkcapi/test/kcapi-main.c:2943: undefined reference to kcapi_kpp_destroy'
...
...

Add support for autoconf2.13/automake1.14.1

I cannot compile libkcapi on my Creator CI20 (it is using Debian 8). It fails with:


ci20@ci20:~/libkcapi$ autoreconf -i
configure.ac:25: warning: macro 'AM_PROG_LIBTOOL' not found in library
configure.ac:25: warning: macro 'AM_PROG_LIBTOOL' not found in library
configure.ac:25: error: possibly undefined macro: AM_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf2.50: /usr/bin/autoconf failed with exit status: 1

./kcapi -y -s hangs on 32 bit after a short `splice`

This is the bug mentioned in PR #5.

Comparing 32 bit and 64 bit straces shows that the the kernel refuses to write enough bytes to the target socket, the last write is 8 bytes instead of 16:

socket(AF_ALG, SOCK_SEQPACKET, 0)       = 3
bind(3, {sa_family=AF_ALG, sa_data="aead\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ccm(aes)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 88) = 0
pipe([4, 5])                            = 0
socket(AF_NETLINK, SOCK_RAW, NETLINK_CRYPTO) = 6
bind(6, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
getsockname(6, {sa_family=AF_NETLINK, nl_pid=20426, nl_groups=00000000}, [12]) = 0
sendmsg(6, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=224, type=0x13 /* NLMSG_??? */, flags=NLM_F_REQUEST, seq=1479667348, pid=0}, "ccm(aes)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}, iov_len=224}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 224
recvmsg(6, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=376, type=0x13 /* NLMSG_??? */, flags=0, seq=1479667348, pid=20426}, "ccm(aes)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}, {{len=0, type=0 /* NLMSG_??? */, flags=0, seq=0, pid=0}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 376
close(6)                                = 0
uname({sysname="Linux", nodename="laptop", ...}) = 0
setsockopt(3, SOL_ALG, 5, NULL, 16)     = 0
setsockopt(3, SOL_ALG, 1, "\212R \365\252\33\212\255\337\243\275\357\311\32\376|", 16) = 0
accept(3, NULL, NULL)                   = 6
sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=NULL, msg_iovlen=0, msg_control=[{cmsg_len=16, cmsg_level=SOL_ALG, cmsg_type=0x3}, {cmsg_len=32, cmsg_level=SOL_ALG, cmsg_type=0x2}, {cmsg_len=16, cmsg_level=SOL_ALG, cmsg_type=0x4}], msg_controllen=64, msg_flags=0}, MSG_MORE) = 0
vmsplice(5, [{iov_base="\375X\1Fi\33\344[1\352?/DJ\225\rJ\222\362\240\333L\303m\356\335\352\241\224i\22\r"..., iov_len=57296}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 57296
splice(4, NULL, 6, NULL, 57296, SPLICE_F_MORE) = 57296
vmsplice(5, [{iov_base="d\370U\250^Z{\212\372\5B\36\277o\25\265\f\217\334#\267\362\306p\365\fE\320z\314Z\325", iov_len=32}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 32
splice(4, NULL, 6, NULL, 32, SPLICE_F_MORE) = 32
vmsplice(5, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=16}], 1, SPLICE_F_GIFT) = 16
splice(4, NULL, 6, NULL, 16, 0)         = 8
recvmsg(6, 
socket(AF_ALG, SOCK_SEQPACKET, 0)       = 3
bind(3, {sa_family=AF_ALG, sa_data="aead\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ccm(aes)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 88) = 0
pipe([4, 5])                            = 0
socket(AF_NETLINK, SOCK_RAW, NETLINK_CRYPTO) = 6
bind(6, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
getsockname(6, {sa_family=AF_NETLINK, nl_pid=20550, nl_groups=00000000}, [12]) = 0
sendmsg(6, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=224, type=0x13 /* NLMSG_??? */, flags=NLM_F_REQUEST, seq=1479667399, pid=0}, "ccm(aes)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}, iov_len=224}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 224
recvmsg(6, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{{len=376, type=0x13 /* NLMSG_??? */, flags=0, seq=1479667399, pid=20550}, "ccm(aes)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...}, {{len=0, type=0 /* NLMSG_??? */, flags=0, seq=0, pid=0}}], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 376
close(6)                                = 0
uname({sysname="Linux", nodename="laptop", ...}) = 0
setsockopt(3, SOL_ALG, 5, NULL, 16)     = 0
setsockopt(3, SOL_ALG, 1, "\212R \365\252\33\212\255\337\243\275\357\311\32\376|", 16) = 0
accept(3, NULL, NULL)                   = 6
sendmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=NULL, msg_iovlen=0, msg_control=[{cmsg_len=20, cmsg_level=SOL_ALG, cmsg_type=0x3}, {cmsg_len=40, cmsg_level=SOL_ALG, cmsg_type=0x2}, {cmsg_len=20, cmsg_level=SOL_ALG, cmsg_type=0x4}], msg_controllen=88, msg_flags=0}, MSG_MORE) = 0
vmsplice(5, [{iov_base="\375X\1Fi\33\344[1\352?/DJ\225\rJ\222\362\240\333L\303m\356\335\352\241\224i\22\r"..., iov_len=57296}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 57296
splice(4, NULL, 6, NULL, 57296, SPLICE_F_MORE) = 57296
vmsplice(5, [{iov_base="d\370U\250^Z{\212\372\5B\36\277o\25\265\f\217\334#\267\362\306p\365\fE\320z\314Z\325", iov_len=32}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 32
splice(4, NULL, 6, NULL, 32, SPLICE_F_MORE) = 32
vmsplice(5, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=16}], 1, SPLICE_F_GIFT) = 16
splice(4, NULL, 6, NULL, 16, 0)         = 16
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0", iov_len=1}, {iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=57314}, {iov_base="M\245\340Z#\270\220&wH\16\351,\177\366\274", iov_len=16}], msg_iovlen=16, msg_controllen=0, msg_flags=0}, 0) = 57344
write(1, "5b77260fcfd3ac8a714a7a6fe3795ed3"..., 975b77260fcfd3ac8a714a7a6fe3795ed39d6abeda3b199c0de8e64b57569d75874da5e05a23b8902677480ee92c7ff6bc
) = 97

If the code is changed to retry the write, it simply fails with E2BIG:

...
vmsplice(5, [{iov_base="\375X\1Fi\33\344[1\352?/DJ\225\rJ\222\362\240\333L\303m\356\335\352\241\224i\22\r"..., iov_len=57296}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 57296
splice(4, NULL, 6, NULL, 57296, SPLICE_F_MORE) = 57296
vmsplice(5, [{iov_base="d\370U\250^Z{\212\372\5B\36\277o\25\265\f\217\334#\267\362\306p\365\fE\320z\314Z\325", iov_len=32}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 32
splice(4, NULL, 6, NULL, 32, SPLICE_F_MORE) = 32
vmsplice(5, [{iov_base="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=16}], 1, SPLICE_F_GIFT) = 16
splice(4, NULL, 6, NULL, 16, 0)         = 8
splice(4, NULL, 6, NULL, 8, 0)          = -1 E2BIG (Argument list too long)

kcapi-enc and AEAD setkey issue

Hi,

i'm in doubt that set_key for AEAD is correctly implemented in kcapi-enc.
The kernel drivers use https://elixir.bootlin.com/linux/latest/source/include/crypto/authenc.h#L29 to extract AEAD auth and enc keys. Does that mean that kcapi-enc expects the user to build the correct key buffer including struct rtattr ?
Furthermore, keybuf of length 32 might be too small. Currently, i'm implementing a driver for a crypto HW and it requires at least 32 bytes of key material w/o struct rtattr which is expected as header by crypto_authenc_extractkeys.

I "fixed" kcapi-enc keybuf length and then built the key file as expected by crypto_authenc_extractkeys. And it seems to work now nicely with e.g. authenc(hmac(sha1),cbc(aes)) AEAD mode implemented by the driver.

Regards
Alex

setsockopt() fails with EBUSY error

Stephan,

I'm trying to do some CAVP testing to validate the kernel crypto.
I'm NOT using the new ACVP tool, but the old method where we have the ".req" files.
My code has 2 parts:

  • Server - it performs all the reading, writing and formatting of the request and response files. Each test instance is read from req file and passed over socket to client to compute results
  • Client - it contains the functions that execute the cryptographic algorithms (calls kernel crypto APIs)

The server and client communicate via a socket.
I was successfully able to build libkcapi and integrate the libkcapi.so.1.1.5 with my client code.

Sample input file:

[ENCRYPT]

COUNT = 0
KEY = 0000000000000000000000000000000000000000000000000000000000000000
PLAINTEXT = 014730f80ac625fe84f026c60bfd547d
CIPHERTEXT = 5c9d844ed46f9885085e5d6a4f94c7d7

COUNT = 1
KEY = 0000000000000000000000000000000000000000000000000000000000000000
PLAINTEXT = 0b24af36193ce4665f2825d7b4749c98
CIPHERTEXT = 55555555555555555555555555555555

First test instance (COUNT = 0) works as expected. The inputs are sent from server to client for computation and client sends the output to server. The server then writes the "CIPHERTEXT" to response file. But for next instance, the client fails with "ERROR: Device or resource busy".

Are there any extra measures I need to be taking?

Decryption fails intermittently on Ubuntu Trusty (14.04)

(Moving discussion from PR #41 to a separate issue)

Running ./kcapi-enc-test.sh in a specific environment fails from time to time on the FILEIN / FILEOUT test with file size 65537 bytes (error -22) or 100000/100001 bytes (error -14) in the decryption part with output like this:

kcapi-enc - Error: decryption failed with error -22
[FAILED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (128 bits): original file (f186999da938dff1d24a3576d9729e37c0444f9ddc1cfc8cca66b1435769cba6) and generated file (affea71dcee8a1dc6211d32d077c42d2f3af6b9b17dad67973caee2554f0a53c)
[PASSED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (128 bits) (openssl generated CT)
[FAILED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (128 bits) (openssl generated PT): original file (affea71dcee8a1dc6211d32d077c42d2f3af6b9b17dad67973caee2554f0a53c) and generated file (f186999da938dff1d24a3576d9729e37c0444f9ddc1cfc8cca66b1435769cba6)
[FAILED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (password): original file (f186999da938dff1d24a3576d9729e37c0444f9ddc1cfc8cca66b1435769cba6) and generated file (affea71dcee8a1dc6211d32d077c42d2f3af6b9b17dad67973caee2554f0a53c)
kcapi-enc - Error: decryption failed with error -22
[FAILED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (256 bits): original file (f186999da938dff1d24a3576d9729e37c0444f9ddc1cfc8cca66b1435769cba6) and generated file (affea71dcee8a1dc6211d32d077c42d2f3af6b9b17dad67973caee2554f0a53c)
[PASSED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (256 bits) (openssl generated CT)
[FAILED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (256 bits) (openssl generated PT): original file (affea71dcee8a1dc6211d32d077c42d2f3af6b9b17dad67973caee2554f0a53c) and generated file (f186999da938dff1d24a3576d9729e37c0444f9ddc1cfc8cca66b1435769cba6)
[FAILED: 64-bit - 4.9.0-040900-generic] 65537 bytes: FILEIN / FILEOUT enc test (password): original file (f186999da938dff1d24a3576d9729e37c0444f9ddc1cfc8cca66b1435769cba6) and generated file (affea71dcee8a1dc6211d32d077c42d2f3af6b9b17dad67973caee2554f0a53c)

Environments this happens on:
Ubuntu 14.04 (other versions not verified), kernels:

  • 4.4.0-101-generic
  • 4.4.0-116-generic
  • 4.9.0-040900-generic
  • 4.14.26-041426-generic
  • (other versions not verified)

Make pdf command didn't work

I followed the readme file to install libkcapi libs, but when I started to run "make pdf", it just didn't work. I have installed xmlto libs and db2dpf libs. I opened the makefile and find that the command after pdf target is blank:
pdf: pdf-am

pdf-am:
I don't know where to read the doc?
Thank you

SHA and HMAC algs using patches

Is there a way where I can implement SHA and HMAC just like I did for AES (#84 (comment)) so that all my algs use similar method?

I tried implementing SHA with init, update and final calls and I see the following:

libkcapi - Error: Netlink error: cannot open netlink socket
libkcapi - Error: Netlink error: cannot open netlink socket
libkcapi - Error: NETLINK_CRYPTO: cannot obtain cipher information for sha1 (is required crypto_user.c patch missing? see documentation)
Segmentation fault

The code I had was:

kcapi_md_init(&handle, "sha1", 0);
kcapi_md_update(handle, params->msg, params->msgLength);
kcapi_md_final(handle, md, params->hashLength);
kcapi_md_destroy(handle);

1.1.4: test suite fails

+ cd test
+ export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto'
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto'
+ export 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto'
+ CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto'
+ export 'FFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -flto'
+ FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -flto'
+ export 'FCFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -flto'
+ FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -flto'
+ export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin'
+ export AR=gcc-ar RANLIB=gcc-ranlib NM=gcc-nm
+ AR=gcc-ar
+ RANLIB=gcc-ranlib
+ NM=gcc-nm
+ export CC=gcc CXX=g++
+ CC=gcc
+ CXX=g++
+ ENABLE_FUZZ_TEST=1
+ NO_32BIT_TEST=1
+ ./test-invocation.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... gcc-nm
checking the name lister (gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... gcc-ranlib
checking command to parse gcc-nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking if gcc supports PIE... yes
checking for openssl... /usr/bin/openssl
checking for clang... /usr/bin/clang
checking for cppcheck... /usr/bin/cppcheck
checking for xmlto... /usr/bin/xmlto
checking for db2pdf... no
checking for db2ps... no
checking for mktemp... /usr/bin/mktemp
checking for library containing clock_gettime... none required
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking whether ln -s works... yes
checking for cp... /usr/bin/cp
checking for ln... /usr/bin/ln
checking for mv... /usr/bin/mv
checking for touch... /usr/bin/touch
configure: WARNING: db2pdf not installed
configure: WARNING: db2ps not installed
checking for getrandom... yes
checking for secure_getenv... yes
checking whether CC supports -fstack-protector-strong... yes
checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... no
checking for tail... yes
configure: API version=1.1.4
configure: library version=1.1.4
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libkcapi.pc
config.status: executing depfiles commands
config.status: executing libtool commands
Makefile:2014: warning: overriding recipe for target 'lib/doc/bin/docproc'
Makefile:989: warning: ignoring old recipe for target 'lib/doc/bin/docproc'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" -DPACKAGE_STRING=\"libkcapi\ 1.1.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I.  -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fvisibility=hidden   -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -MT lib/libkcapi_la-kcapi-asym.lo -MD -MP -MF lib/.deps/libkcapi_la-kcapi-asym.Tpo -c -o lib/libkcapi_la-kcapi-asym.lo `test -f 'lib/kcapi-asym.c' || echo './'`lib/kcapi-asym.c
libtool: compile:  gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" "-DPACKAGE_STRING=\"libkcapi 1.1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I. -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fvisibility=hidden -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -DPIE -MT lib/libkcapi_la-kcapi-asym.lo -MD -MP -MF lib/.deps/libkcapi_la-kcapi-asym.Tpo -c lib/kcapi-asym.c  -fPIC -DPIC -o lib/.libs/libkcapi_la-kcapi-asym.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" "-DPACKAGE_STRING=\"libkcapi 1.1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I. -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fvisibility=hidden -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -DPIE -MT lib/libkcapi_la-kcapi-asym.lo -MD -MP -MF lib/.deps/libkcapi_la-kcapi-asym.Tpo -c lib/kcapi-asym.c  -fPIC -DPIC -o lib/libkcapi_la-kcapi-asym.o >/dev/null 2>&1
mv -f lib/.deps/libkcapi_la-kcapi-asym.Tpo lib/.deps/libkcapi_la-kcapi-asym.Plo
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" -DPACKAGE_STRING=\"libkcapi\ 1.1.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I.  -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fvisibility=hidden   -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -MT lib/libkcapi_la-kcapi-kpp.lo -MD -MP -MF lib/.deps/libkcapi_la-kcapi-kpp.Tpo -c -o lib/libkcapi_la-kcapi-kpp.lo `test -f 'lib/kcapi-kpp.c' || echo './'`lib/kcapi-kpp.c
libtool: compile:  gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" "-DPACKAGE_STRING=\"libkcapi 1.1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I. -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fvisibility=hidden -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -DPIE -MT lib/libkcapi_la-kcapi-kpp.lo -MD -MP -MF lib/.deps/libkcapi_la-kcapi-kpp.Tpo -c lib/kcapi-kpp.c  -fPIC -DPIC -o lib/.libs/libkcapi_la-kcapi-kpp.o
libtool: compile:  gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.1.4\" "-DPACKAGE_STRING=\"libkcapi 1.1.4\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=1 -DKCAPI_PATCHLEVEL=4 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DWITH_LIB_ASYM=1 -DWITH_LIB_KPP=1 -DCHECK_PREFIX=\".\" -DCHECK_SUFFIX=\"hmac\" -I. -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fvisibility=hidden -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -DPIE -MT lib/libkcapi_la-kcapi-kpp.lo -MD -MP -MF lib/.deps/libkcapi_la-kcapi-kpp.Tpo -c lib/kcapi-kpp.c  -fPIC -DPIC -o lib/libkcapi_la-kcapi-kpp.o >/dev/null 2>&1
mv -f lib/.deps/libkcapi_la-kcapi-kpp.Tpo lib/.deps/libkcapi_la-kcapi-kpp.Plo
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,--version-script,./lib/version.lds -version-number `echo 1.1.4 | sed 's/\./:/g'` -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o libkcapi.la -rpath /usr/local/lib lib/libkcapi_la-kcapi-kernel-if.lo lib/libkcapi_la-kcapi-utils.lo  lib/libkcapi_la-kcapi-sym.lo  lib/libkcapi_la-kcapi-md.lo  lib/libkcapi_la-kcapi-kdf.lo  lib/libkcapi_la-kcapi-aead.lo  lib/libkcapi_la-kcapi-rng.lo lib/libkcapi_la-kcapi-asym.lo  lib/libkcapi_la-kcapi-kpp.lo   
libtool: link: rm -fr  .libs/libkcapi.la .libs/libkcapi.lai .libs/libkcapi.so .libs/libkcapi.so.1 .libs/libkcapi.so.1.1.4
libtool: link: gcc -shared  -fPIC -DPIC  lib/.libs/libkcapi_la-kcapi-kernel-if.o lib/.libs/libkcapi_la-kcapi-utils.o lib/.libs/libkcapi_la-kcapi-sym.o lib/.libs/libkcapi_la-kcapi-md.o lib/.libs/libkcapi_la-kcapi-kdf.o lib/.libs/libkcapi_la-kcapi-aead.o lib/.libs/libkcapi_la-kcapi-rng.o lib/.libs/libkcapi_la-kcapi-asym.o lib/.libs/libkcapi_la-kcapi-kpp.o  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector-strong -O2 -g -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -flto -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--version-script -Wl,./lib/version.lds -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -flto -fuse-linker-plugin    -Wl,-soname -Wl,libkcapi.so.1 -o .libs/libkcapi.so.1.1.4
libtool: link: (cd ".libs" && rm -f "libkcapi.so.1" && ln -s "libkcapi.so.1.1.4" "libkcapi.so.1")
libtool: link: (cd ".libs" && rm -f "libkcapi.so" && ln -s "libkcapi.so.1.1.4" "libkcapi.so")
libtool: link: gcc-ar cru .libs/libkcapi.a  lib/.libs/libkcapi_la-kcapi-kernel-if.o lib/.libs/libkcapi_la-kcapi-utils.o lib/.libs/libkcapi_la-kcapi-sym.o lib/.libs/libkcapi_la-kcapi-md.o lib/.libs/libkcapi_la-kcapi-kdf.o lib/.libs/libkcapi_la-kcapi-aead.o lib/.libs/libkcapi_la-kcapi-rng.o lib/libkcapi_la-kcapi-asym.o lib/libkcapi_la-kcapi-kpp.o
libtool: link: gcc-ranlib .libs/libkcapi.a
libtool: link: ( cd ".libs" && rm -f "libkcapi.la" && ln -s "../libkcapi.la" "libkcapi.la" )
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi test/bin_kcapi-kcapi-main.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi test/bin_kcapi-kcapi-main.o  ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi-enc-test-large test/bin_kcapi_enc_test_large-kcapi-enc-test-large.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi-enc-test-large test/bin_kcapi_enc_test_large-kcapi-enc-test-large.o  ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi-convenience test/bin_kcapi_convenience-kcapi-convenience.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi-convenience test/bin_kcapi_convenience-kcapi-convenience.o  ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -ldl -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi-hasher apps/bin_kcapi_hasher-kcapi-hasher.o apps/bin_kcapi_hasher-app-internal.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi-hasher apps/bin_kcapi_hasher-kcapi-hasher.o apps/bin_kcapi_hasher-app-internal.o  -ldl ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
In function 'strncpy',
    inlined from 'paste' at apps/kcapi-hasher.c:376:2,
    inlined from 'get_hmac_file' at apps/kcapi-hasher.c:413:12:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^
apps/kcapi-hasher.c: In function 'get_hmac_file':
apps/kcapi-hasher.c:413:12: note: length computed here
  413 |   cursor = paste(cursor, checkdir, strlen(checkdir));
      |            ^
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi-rng apps/bin_kcapi_rng-kcapi-rng.o apps/bin_kcapi_rng-app-internal.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi-rng apps/bin_kcapi_rng-kcapi-rng.o apps/bin_kcapi_rng-app-internal.o  ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi-enc apps/bin_kcapi_enc-kcapi-enc.o apps/bin_kcapi_enc-app-internal.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi-enc apps/bin_kcapi_enc-kcapi-enc.o apps/bin_kcapi_enc-app-internal.o  ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
/bin/sh ./libtool  --tag=CC   --mode=link gcc  -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z,relro,-z,now -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/kcapi-dgst apps/bin_kcapi_dgst-kcapi-dgst.o apps/bin_kcapi_dgst-app-internal.o libkcapi.la 
libtool: link: gcc -fstack-protector-strong -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -fpie -fPIE -DPIE -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto -fuse-linker-plugin -pie -o bin/.libs/kcapi-dgst apps/bin_kcapi_dgst-kcapi-dgst.o apps/bin_kcapi_dgst-app-internal.o  ./.libs/libkcapi.so -Wl,-rpath -Wl,/usr/local/lib
gcc -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99  -g -O2 -o lib/doc/bin/docproc lib/doc/bin/docproc.o
/usr/bin/sed "s/@@LIBVERSION@@/1.1.4/" < lib/doc/libkcapi.tmpl > /tmp/tmp.WqzbVDfaHz
LIBVERSION=1.1.4 SRCTREE=./lib/ /home/tkloczko/rpmbuild/BUILD/libkcapi-1.1.4/lib/doc/bin/docproc doc /tmp/tmp.WqzbVDfaHz > lib/doc/libkcapi.xml
rm /tmp/tmp.WqzbVDfaHz
/usr/bin/mkdir -p lib/doc/man
/usr/bin/xmlto man -m ./lib/doc/stylesheet.xsl --skip-validation -o lib/doc/man/ lib/doc/libkcapi.xml 2>/dev/null
/usr/bin/touch man-stamp
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash one shot multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash stream multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Hash vmsplice multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous multithreaded non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous one shot aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous stream aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous vmsplice aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) one shot aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) stream aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) vmsplice aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Auxiliary test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous cipher one shot multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous cipher stream multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric synchronous cipher vmsplice multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) cipher one shot multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) cipher stream multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric asynchronous (AIO fallback) cipher vmsplice multiple test
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] Symmetric AIO tests deactivated
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 14
(./../bin/kcapi   -x 2   -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 15
(./../bin/kcapi   -x 2   -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot non-aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 14
(./../bin/kcapi   -x 2 -s  -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 15
(./../bin/kcapi   -x 2 -s  -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream non-aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 14
(./../bin/kcapi   -x 2 -v  -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 15
(./../bin/kcapi   -x 2 -v  -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice non-aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 14
(./../bin/kcapi  -g -x 10   -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 15
(./../bin/kcapi  -g -x 10   -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot non-aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 14
(./../bin/kcapi  -g -x 10 -s  -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 15
(./../bin/kcapi  -g -x 10 -s  -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream non-aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 14
(./../bin/kcapi  -g -x 10 -v  -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 15
(./../bin/kcapi  -g -x 10 -v  -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice non-aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 14
(./../bin/kcapi   -x 2  -m -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 15
(./../bin/kcapi   -x 2  -m -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD one shot long AAD test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 14
(./../bin/kcapi   -x 2 -s -m -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 15
(./../bin/kcapi   -x 2 -s -m -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD stream long AAD test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 14
(./../bin/kcapi   -x 2 -v -m -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 15
(./../bin/kcapi   -x 2 -v -m -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD vmsplice long AAD test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 14
(./../bin/kcapi  -g -x 10 -s -m -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 15
(./../bin/kcapi  -g -x 10 -s -m -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) stream aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD stream long AAD test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 14
(./../bin/kcapi  -g -x 10  -m -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 15
(./../bin/kcapi  -g -x 10  -m -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) one shot aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD one shot long AAD test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 13
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 14
(./../bin/kcapi  -g -x 10 -v -m -e -c "rfc4106(gcm(aes))" -i c4edb5723d2a4029 -k b7369a3ab0e4f219baaf747f650e029f8aeb7394 -a "44c9efe4b0a7b98d" -p "c5f4aac0ff202c4d292fa9732506607f" -l 12)
 Exp ada6f4f78913d4bc62a8d546bec1703640d75ea68c8ccfefdde5cfb4
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[FAILED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 15
(./../bin/kcapi  -g -x 10 -v -m -c "rfc4106(gcm(aes))" -i d5f216491cc28e88 -k c53f008512c48a0d6bccf798ffd5b5fbb9e99835 -a "1e6e275ca7c93f6d" -t "52b086ea34e1ee94b32457d7" -q
			"989c4c091c73265ef5bf8a2a32ec642d")
 Exp 36303126cc98c832399ae827a853c6a9
 Got Cipher operation of buffer failed: 22 -22
Failed to invoke testing
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 16
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous (AIO fallback) vmsplice aligned test 17
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD vmsplice long AAD test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous one shot multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous stream multiple test
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD synchronous vmsplice multiple test
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous one shot multiple test
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous stream multiple test
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD asynchronous vmsplice multiple test
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD AIO tests deactivated
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] AEAD tests of copied AAD deactivated
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] All asymmetric tests deactivated
[DEACTIVATED: 64-bit - 5.1.0-1.fc31.x86_64] All KPP tests deactivated
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] KDF CTR non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] KDF FB non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] KDF DPI non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] KDF CTR aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] KDF FB aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] KDF DPI aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF non-aligned test 13
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 8
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 9
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 10
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 11
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 12
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] PBKDF aligned test 13
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF non-aligned test 7
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 1
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 2
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 3
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 4
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 5
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 6
[PASSED: 64-bit - 5.1.0-1.fc31.x86_64] HKDF aligned test 7

Potential leak of memory

# make scan

test/kcapi-main.c:216:2: warning: Potential leak of memory pointed to by 'buf'
        return 0;
        ^~~~~~~~
1 warning generated.

Linux Kernel Crypto API User Space Interface limited to wmem,rmem size

Dear Sam,
We understand that you are active contributor to Linux Kernel Crypto API User Space Interface implementation in Linux Kernel we thought that you can share your views on the below observation.

Max. data that User Space Crypto Interface can send is limited with wmem_default. We observe that User Space is blocked (af_alg_wait_for_wmem) indefinitely with Zero Copy (splice) & Non-Zero Copy (sendmsg).
Is this known limitation? Could you share background of this limitation?
Could you share your thoughts on a solution approach to avoid a size limitation?

Thanks & Regards,
Mitul

*** Error in `kcapi': double free or corruption (out): 0x77529448 ***

I can reproduce a simple segfault on my Creator CI20 (kernel 4.9.20).

ci20@ci20:~/libkcapi-0.13.0/test$ gdb ./kcapi
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./kcapi...done.
8a53171b4 -a fb7bc304a3909e66e2e0c5ef952712dd884ce3e7324171369f2c5db1adc48c7d5ba
Starting program: /home/ci20/libkcapi-0.13.0/test/kcapi -v -d 4 -x 2
-c "ccm(aes)" -q
4edb58e8d5eb6bc711c43a6f3693daebde2e5524f1b55297abb29f003236e43d -t
a7877c99 -n 674742abd0f5ba -k 2861fd0253705d7875c95ba8a53171b4 -a
fb7bc304a3909e66e2e0c5ef952712dd884ce3e7324171369f2c5db1adc48c7d
Failed to read a valid object file image from memory.
libkcapi - Error: AF_ALG: bind failed (errno: 2)
Allocation of cipher failed

Program received signal SIGSEGV, Segmentation fault.
_kcapi_handle_destroy (handle=0x12) at ../lib/kcapi-kernel-if.c:783
783 if (handle->tfmfd != -1)
(gdb) bt full
#0  _kcapi_handle_destroy (handle=0x12) at ../lib/kcapi-kernel-if.c:783
No locals.
#1  0x00405edc in cavs_aead (cavs_test=0x7fffe968, loops=4, splice=1)
    at kcapi-main.c:945
        handle = 0x12
        outbuf = 0x0
        outbuflen = <optimized out>
        inbuf = 0x0
        inbuflen = <optimized out>
        fullbuflen = <optimized out>
        ret = -22
        newiv = 0x0
        newivlen = 0
        errsv = 0
        i = 0
        assoc = 0x0
        data = 0x0
        tag = 0x0
        assoclen = 0
        datalen = 0
        taglen = 0
        i_assoc = 0x0
        i_data = 0x0
---Type <return> to continue, or q <return> to quit---
        i_tag = 0x0
        i_assoclen = 0
        i_datalen = 0
        i_taglen = 0
        begin = {tv_sec = 2147477720, tv_nsec = 4456448}
        end = {tv_sec = 2012267316, tv_nsec = 4481392}
        total = 0
#2  0x004032e4 in main (argc=18, argv=0x7fffec44) at kcapi-main.c:2271
        c = <optimized out>
        ret = <optimized out>
        rc = 1
        stream = 0
        large = 0
        loops = 4
        splice = <optimized out>
        cavs_test = {cipher = "ccm(aes)", '\000' <repeats 54 times>,
          aligned = 0, timing = 0, enc = 0, type = 2, pt = 0x0, ptlen = 0,
          ct = 0x43f008
"N\333X\350\325\353k\307\021\304:o6\223\332\353\336.U$\361\265R\227\253\262\237",
ctlen = 32,
          iv = 0x43f050 "\agGB\253\320", <incomplete sequence \365\272>,
          ivlen = 16, key = 0x43f090 "(a\375\002Sp]xu\311[\250\245\061q\264",
          keylen = 16, pubkey = 0x0, pubkeylen = 0,
          assoc = 0x43f068
"\373{\303\004\243\220\236f\342\340\305\357\225'\022๏ฟฝ---Type <return>
to continue, or q <return> to quit---
๏ฟฝL\343\347\062Aq6\237,]\261\255ฤŒ}", assoclen = 32,
          tag = 0x43f030 "\247\207|\231", taglen = 4, outlen = 0}
(gdb) quit

During a debug session I see that the function _kcapi_handle_destroy is called twice on the same handle in this case. It may make sense to sanitize the value of handle to NULL so that next call is aware.

Debug session:

(gdb) 
libkcapi - Error: AF_ALG: bind failed (errno: 2)
983                     goto err;
(gdb) 
1012            _kcapi_handle_destroy(handle);
(gdb) p handle
$8 = (struct kcapi_handle *) 0x43f0a8
(gdb) n
1014    }
(gdb) 
cavs_aead (cavs_test=0x7fffe968, loops=4, splice=1) at kcapi-main.c:806
806                     printf("Allocation of cipher failed\n");
(gdb) 
Allocation of cipher failed
804             ret = -EINVAL;
(gdb) 
104       return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
(gdb) 
945             kcapi_aead_destroy(handle);
(gdb) s
kcapi_aead_destroy (handle=0x12) at ../lib/kcapi-aead.c:34
34              _kcapi_handle_destroy(handle);
(gdb) c
Continuing.

Program received signal SIGSEGV, Segmentation fault.
_kcapi_handle_destroy (handle=0x12) at ../lib/kcapi-kernel-if.c:783
783             if (handle->tfmfd != -1)

Always enable stack protector

Since commit d409e9f stack protector is always enabled.

Which means that for hppa and alpha we will get:

checking whether CC supports -fstack-protector-strong... no
checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... no
[...]
libtool: compile:  gcc -DPACKAGE_NAME=\"libkcapi\" -DPACKAGE_TARNAME=\"libkcapi\" -DPACKAGE_VERSION=\"1.0.1\" "-DPACKAGE_STRING=\"libkcapi 1.0.1\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=0 -DKCAPI_PATCHLEVEL=1 -DPACKAGE=\"libkcapi\" -DVERSION=\"1.0.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -I. -Wextra -Wall -pedantic -fwrapv --param ssp-buffer-size=4 -O2 -Werror -std=gnu99 -fstack-protector-strong -fPIC -fvisibility=hidden -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c lib/kcapi-utils.c  -fPIC -DPIC -o lib/.libs/libkcapi_la-kcapi-utils.o
cc1: error: -fstack-protector not supported for this target [-Werror]

It would be super nice if the support for -fstack-protector was tested first.

For references:

Qustion: keywrapping / trusted keyring support

I wonder is there any support planned to pass in keys in a wrapped way, so the key handle becomes useable but you never can see the key unless you have the unwrapping key.

This can tie in with TPM (keyctrl trsted keys), Kernel Keyring and Secure Boot. (My specific usecase would be HMAC key for password storage.)

Error messages pollute stderr, breaking various programs

If an application or library using libkcapi is run on a kernel which doesn't have a required feature enabled, like AF_ALG, libkcapi by default writes an error message to stderr. While the caller of libkcapi can deal with the error and continue despite that, it fails because the error message itself is not expected by the caller.

e.g. the libzip testsuite fails:

[   61s] 144/145 Test #144: zip64_stored_creation.test .......................***Failed   12.71 sec
[   61s] Unexpected error output:
[   61s] --- expected
[   61s] +++ got
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] +libkcapi - Error: AF_ALG: socket syscall failed (errno: -97)
[   61s] zip64_stored_creation -- FAIL: error output

I suggest to default to not print any messages by default, not even error messages, unless they're fatal and result in immediate program termination.

Allowing the library user to handle messages e.g. by registering a logging callback might be useful.

AEAD gcm(aes) decrypt failure

I have the encrypt line working, but cannot get the decrypt line to return anything but "Error: AEAD decryption failed due to integrity violation".

I cannot find an example for AEAD gsm(aes) decryption in the libkcapi/tests except in your test.sh, the "AEAD synchronous one shot non-aligned" tests all seem to fail .

So I figure it is more likely that I must be doing something wrong.

So here is a test script based on your test scripts to replicate my issue (please excuse the "noobiness" , I am more of a code mechanic than a cryptologist.....)

#----------------------------------------
#!/bin/sh

hex2bin()
{
local hex=$1
local dstfile=$2

    echo -n $hex | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' > $dstfile

}

GCM_MSG="507937f393b2de0fa218d0a9713262f4"
GCM_KEY="5aa3d01e7242d7a64f5fd4ad25505390"
GCM_IV="94af90b40cc541173d201250"
GCM_AAD="0f7479e28c53d120fcf57a525e0b36a0"
GCM_TAG="0f7479e28c53d120fcf57a525e0b"
GCM_TAGLEN="14"
GCM_EXP="e80e074e70b089c160c6d3863e8d2b75ac767d2d44412252eed41a220f31"
hex2bin $GCM_KEY gcm_key
hex2bin $GCM_MSG gcm_msg

exec 8< gcm_key; kcapi-enc -v -c "gcm(aes)" -e --taglen $GCM_TAGLEN --aad $GCM_AAD --keyfd 8 < gcm_msg > test.out

what is the correct decrypt line?

exec 8< gcm_key; kcapi-enc -v -c "gcm(aes)" -d --tag $GCM_TAG --aad $GCM_AAD --keyfd 8 < test.out
#----------------------------------------------------------------

FIPS requirement?

Is the FIPS validation required? I think only Redhat/Centos (and maybe SUSE) went through the compliance program and provide /proc/sys/crypto/fips_enabled, which makes it difficult to easily test this library on other systems (like Debian) with the provided /apps/kcapi-hasher.

key size fixed at 32 bytes (need 52 for CAAM related "black" keys)

I am using an NXP imx8mq processor and tried kcapi-enc to encrypt a file and kept hitting -EINVAL when the key was being set setsockopt(3, SOL_ALG, ALG_SET_KEY...). I am using the "tk(cbc(aes))" cipher.

This was because the keybuf was capped at 32 bytes where a black key needs 52 bytes. I upped my version of keybuf to 64 bytes and it worked perfectly.

I can live with my version as I don't know if anyone else would need this.

I really do appreciate this library since I was studying the kernel user interface and realized how much more code was needed to handle large files. Thank all of you involved, it is much easier to do.

Compile error with musl libc

Observed on armv7, aarch64 & x86_64 (although the error seems to change slightly on 32-bit arches)

lib/kcapi-kernel-if.c: In function '_kcapi_common_send_meta':
lib/kcapi-kernel-if.c:212:26: error: unsigned conversion from 'long int' to 'long unsigned int' changes value from '-8' to '18446744073709551608' [-Werror=sign-conversion]
  212 |                 header = CMSG_NXTHDR(&msg, header);
      |                          ^~~~~~~~~~~
lib/kcapi-kernel-if.c:212:26: error: unsigned conversion from 'long int' to 'long unsigned int' changes value from '-8' to '18446744073709551608' [-Werror=sign-conversion]
lib/kcapi-kernel-if.c:228:26: error: unsigned conversion from 'long int' to 'long unsigned int' changes value from '-8' to '18446744073709551608' [-Werror=sign-conversion]
  228 |                 header = CMSG_NXTHDR(&msg, header);
      |                          ^~~~~~~~~~~
lib/kcapi-kernel-if.c:228:26: error: unsigned conversion from 'long int' to 'long unsigned int' changes value from '-8' to '18446744073709551608' [-Werror=sign-conversion]
cc1: all warnings being treated as errors

Strange test failures

When running the libkcapi testsuite, I sometimes (very rarely) notice failures in the "Symmetric synchronous multithreaded non-aligned test" instances with long (8k) messages. I discovered that this becomes much more often if I replace the sleep(1); in tests/kcapi-main.c with a shorter delay (say, usleep(100);).

To be honest, I don't see any logical reason for the sleep to be there. It seems it is only swiping a real bug under the carpet...

Here is an excerpt from strace over one such failed run:
Command:

strace -f ./../bin/kcapi  -x 1 -s -j  -e -c 'xts(aes)' -i 7fbc02ebf5b93322329df9bfccb635af -k 8d7dd9b0170ce0b5f2f8e1aa768e01e91da8bfc67fd486d081b28254c99eb423 -p $(for (( i = 0; i < 8*1024; i++)); do echo -n ee; done)

Output:

[...]
##################################################
# Setting up the cipher handles...
##################################################
socket(AF_NETLINK, SOCK_RAW, NETLINK_CRYPTO) = 4
bind(4, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, nl_pid=3374825, nl_groups=00000000}, [12]) = 0
sendmsg(4, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=224, type=CRYPTO_MSG_GETALG, flags=NLM_F_REQUEST, seq=1588419112, pid=0}, {cru_name="xts(aes)", cru_driver_name="", cru_module_name="", cru_type=0, cru_mask=0, cru_refcnt=0, cru_flags=0}}, iov_len=224}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 224
recvmsg(4, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=380, type=CRYPTO_MSG_GETALG, flags=0, seq=1588419112, pid=3374825}, {cru_name="xts(aes)", cru_driver_name="xts-aes-aesni", cru_module_name="kernel", cru_type=0, cru_mask=0, cru_refcnt=4, cru_flags=0x485}, [{{nla_len=8, nla_type=CRYPTOCFGA_PRIORITY_VAL}, 401}, {{nla_len=148, nla_type=CRYPTOCFGA_REPORT_BLKCIPHER}, {type="skcipher", geniv="<none>", blocksize=16, min_keysize=32, max_keysize=64, ivsize=16}}]}, iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 380
close(4)                                = 0
pipe([4, 5])                            = 0
setsockopt(3, SOL_ALG, ALG_SET_KEY, "\215}\331\260\27\f\340\265\362\370\341\252v\216\1\351\35\250\277\306\177\324\206\320\201\262\202T\311\236\264#", 32) = 0
pipe([6, 7])                            = 0
accept(3, NULL, NULL)                   = 8
sendmsg(8, {msg_name=NULL, msg_namelen=0, msg_iov=NULL, msg_iovlen=0, msg_control=[{cmsg_len=20, cmsg_level=SOL_ALG, cmsg_type=0x3}, {cmsg_len=40, cmsg_level=SOL_ALG, cmsg_type=0x2}], msg_controllen=64, msg_flags=0}, MSG_MORE) = 0
accept(3, NULL, NULL)                   = 9
sendmsg(9, {msg_name=NULL, msg_namelen=0, msg_iov=NULL, msg_iovlen=0, msg_control=[{cmsg_len=20, cmsg_level=SOL_ALG, cmsg_type=0x3}, {cmsg_len=40, cmsg_level=SOL_ALG, cmsg_type=0x2}], msg_controllen=64, msg_flags=0}, MSG_MORE) = 0
##################################################
# First loop iteration - everything works OK
##################################################
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDstrace: Process 3374839 attached
, child_tidptr=0x7f6f1c318a10) = 3374839
[pid 3374825] recvmsg(8,  <unfinished ...>
[pid 3374839] vmsplice(7, [{iov_base="\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356"..., iov_len=8192}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 8192
[pid 3374839] splice(6, NULL, 8, NULL, 8192, SPLICE_F_MORE) = 8192
[pid 3374825] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="N\243(\315[\20\320\313;\274z\271-T\7-\343\213T\302p|$\240\243\353~_0~9\225"..., iov_len=8192}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 8192
[pid 3374839] exit_group(0)             = ?
[pid 3374825] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 3374839] +++ exited with 0 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3374839, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
write(1, "4ea328cd5b10d0cb3bbc7ab92d54072d"..., 16384) = 16384
##################################################
# Second loop iteration - something goes wrong!
##################################################
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDstrace: Process 3374840 attached
, child_tidptr=0x7f6f1c318a10) = 3374840
[pid 3374825] recvmsg(9,  <unfinished ...>
[pid 3374840] vmsplice(5, [{iov_base="\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356\356"..., iov_len=8192}], 1, SPLICE_F_MORE|SPLICE_F_GIFT) = 8192
[pid 3374840] splice(4, NULL, 9, NULL, 8192, SPLICE_F_MORE <unfinished ...>
[pid 3374825] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="N\243(\315[\20\320\313;\274z\271-T\7-\343\213T\302p|$\240\243\353~_0~9\225"..., iov_len=8192}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 3344
[pid 3374840] <... splice resumed>)     = 8192
[pid 3374825] recvmsg(9,  <unfinished ...>
[pid 3374840] exit_group(0 <unfinished ...>
[pid 3374825] <... recvmsg resumed>{msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\321{~\336\177\312\223A\16k\311\356\226\313`$\277 .\312\371\211\35<\324\376V7\345\217\253o"..., iov_len=4848}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 4848
[pid 3374840] <... exit_group resumed>) = ?
[pid 3374825] write(1, "\nTwo concurrent opfd operations "..., 4096) = 4096
[pid 3374840] +++ exited with 0 +++

For some reason, the recvmsg() call is cut off early and returns only 3344 bytes (I believe it is always this number). The second recvmsg() then returns the remaining 4848 bytes, however the resulting message doesn't match the expected output. Any idea what's going on? This looks like a bug somewhere in the AF_ALG interface.

Kernel version: 5.5.15-200.fc31.x86_64

FTBFS on hppa - undefined symbols

Let see if I can get input from you guys on the following issue we have within Debian on hppa arch.

It turns out that the symbol black magic introduced in 1.3.1 makes the compilation of libkcapi fails on hppa arch:

It looks like the symbols that are messing the builds are the ones duplicated from one version to another, for example: kcapi_cipher_stream_init_enc which is either:

kcapi_cipher_stream_init_enc@LIBKCAPI_0.12.0
kcapi_cipher_stream_init_enc@LIBKCAPI_1.3.1

Questions about dividing data into chunks

Hello, I am reading the source code of libkcapi. I have some questions on _kcapi_cipher_crypt_chunk.

I see that impl_cipher_encrypt(in kcapi-sym.c) processes pagesize*ALG_MAX_PAGES (=65536 on my computer) bytes of data each time, but impl_aead_encrypt in kcapi-aead.c directly call _kcapi_cipher_crypt.

My questions:

  1. Why does impl_cipher_encrypt divide data into chunks, but impl_aead_encrypt does not?
  2. Does ALG kernel process pagesize*ALG_MAX_PAGES bytes each time?
  3. assuming using KCAPI_ACCESS_SENDMSG, what happens if I send larger data (> pagesize*ALG_MAX_PAGES) to the kernel in _kcapi_cipher_crypt?

Thanks

New version

Hi Stephan,

since there have now been a few bugfixes since v1.0.3, would you consider releasing a v1.0.4?

Thanks!

Issue with AIO + async skcipher + IV chaining

On a machine with Intel QAT accelerator, which provides an async implementation of cbc(aes), the following libkcapi tests fail:

[FAILED: open - 5.6.13-7190cc7.cki] Symmetric asynchronous cipher one shot multiple test
(./libkcapi/test/../bin/kcapi  -d 2 -x 9  -e -c cbc(aes) -k 8d7dd9b0170ce0b5f2f8e1aa768e01e91da8bfc67fd486d081b28254c99eb423 -i 7fbc02ebf5b93322329df9bfccb635af -p 48981da18e4bb9ef7e2e3162d16b1910)
Exp 8b19050f66582cb7f7e4b6c873819b7108afa0eaa7de29bac7d903576b674c32
Got 8b19050f66582cb7f7e4b6c873819b718b19050f66582cb7f7e4b6c873819b71
[FAILED: open - 5.6.13-7190cc7.cki] Symmetric asynchronous cipher stream multiple test
(./libkcapi/test/../bin/kcapi -s -d 2 -x 9  -e -c cbc(aes) -k 8d7dd9b0170ce0b5f2f8e1aa768e01e91da8bfc67fd486d081b28254c99eb423 -i 7fbc02ebf5b93322329df9bfccb635af -p 48981da18e4bb9ef7e2e3162d16b1910)
Exp 8b19050f66582cb7f7e4b6c873819b7108afa0eaa7de29bac7d903576b674c32
Got 8b19050f66582cb7f7e4b6c873819b718b19050f66582cb7f7e4b6c873819b71
[FAILED: open - 5.6.13-7190cc7.cki] Symmetric asynchronous cipher vmsplice multiple test
(./libkcapi/test/../bin/kcapi -v -d 2 -x 9  -e -c cbc(aes) -k 8d7dd9b0170ce0b5f2f8e1aa768e01e91da8bfc67fd486d081b28254c99eb423 -i 7fbc02ebf5b93322329df9bfccb635af -p 48981da18e4bb9ef7e2e3162d16b1910)
Exp 8b19050f66582cb7f7e4b6c873819b7108afa0eaa7de29bac7d903576b674c32
Got 8b19050f66582cb7f7e4b6c873819b718b19050f66582cb7f7e4b6c873819b71

It seems that libkcapi sends two parallel AIO requests, yet expects them to be executed serially (i.e. chain the IV properly). And this is indeed what happens when the implementation is synchronous. However, when it is asynchronous (i.e. it actually returns -EINPROGRESS), the second request can start before the first one completes, so it is processed with the same IV.

This is the crypto driver's entry from /proc/crypto:

name         : cbc(aes)
driver       : qat_aes_cbc
module       : intel_qat
priority     : 4001
refcnt       : 1
selftest     : passed
internal     : no
type         : skcipher
async        : yes
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 16
chunksize    : 16
walksize     : 16

I think it should be possible to reproduce this also with pcrypt(...), but I didn't manage to get it working...

I'm not sure it is correct to execute multiple parallel requests in _kcapi_cipher_crypt_aio() - it seems to me that it causes a logical race condition, unless the cipher is ecb(...). However, I don't have a deep understanding of this AIO stuff, so I could be mistaken...

1.2.1: test suite is failing

+ cd /home/tkloczko/rpmbuild/BUILD
+ cd libkcapi-1.2.1
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 scan
Makefile:2024: warning: overriding recipe for target 'lib/doc/bin/docproc'
Makefile:992: warning: ignoring old recipe for target 'lib/doc/bin/docproc'
  CCSA   test/kcapi-convenience.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ test/kcapi-convenience.c -o test/kcapi-convenience.plist
1.      <eof> parser at end of file
 #0 0x00007f123694af73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f12369491a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f123687e028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f1235aae310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f123d1e643f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f123d1e6b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f123d277870 (/lib64/libclang-cpp.so.11.1+0x20e4870)
 #7 0x00007f123d278478 (/lib64/libclang-cpp.so.11.1+0x20e5478)
 #8 0x00007f123d1ec504 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x2059504)
 #9 0x00007f123d2738a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007f123d1fba46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007f123d1fbaf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007f123d23189a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007f123d1ab6b6 (/lib64/libclang-cpp.so.11.1+0x20186b6)
#14 0x00007f123d23f3cd clang::ento::ExprEngine::getInitialState(clang::LocationContext const*) (/lib64/libclang-cpp.so.11.1+0x20ac3cd)
#15 0x00007f123d29938a clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210638a)
#16 0x00007f123d2ae347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f123d2b1c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f123d0066fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f123cc27039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f123d052fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f123d310ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000055efe9b7bb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x000055efe9b81c1d (/usr/bin/clang+0x20c1d)
#24 0x00007f123b9a75d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f123687e0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f123c23f176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f123c37ed1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f123c37f0c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f123c3b4e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x000055efe9b742ef main (/usr/bin/clang+0x132ef)
#31 0x00007f1235a98b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x000055efe9b74eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-convenience-3c0356.c
clang-11: note: diagnostic msg: /tmp/kcapi-convenience-3c0356.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: test/kcapi-convenience.plist] Error 254
make: *** Waiting for unfinished jobs....
  CCSA   test/kcapi-enc-test-large.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ test/kcapi-enc-test-large.c -o test/kcapi-enc-test-large.plist
1.      <eof> parser at end of file
 #0 0x00007fedee751f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fedee7501a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fedee685028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007feded8b5310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fedf4fed43f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fedf4fedb70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fedf507e870 (/lib64/libclang-cpp.so.11.1+0x20e4870)
 #7 0x00007fedf507f478 (/lib64/libclang-cpp.so.11.1+0x20e5478)
 #8 0x00007fedf4ff3504 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x2059504)
 #9 0x00007fedf507a8a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007fedf5002a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007fedf5002af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007fedf503889a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007fedf4fb26b6 (/lib64/libclang-cpp.so.11.1+0x20186b6)
#14 0x00007fedf50463cd clang::ento::ExprEngine::getInitialState(clang::LocationContext const*) (/lib64/libclang-cpp.so.11.1+0x20ac3cd)
#15 0x00007fedf50a038a clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210638a)
#16 0x00007fedf50b5347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007fedf50b8c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007fedf4e0d6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007fedf4a2e039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007fedf4e59fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007fedf5117ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000055715022ab63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x0000557150230c1d (/usr/bin/clang+0x20c1d)
#24 0x00007fedf37ae5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007fedee6850f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007fedf4046176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007fedf4185d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007fedf41860c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007fedf41bbe8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x00005571502232ef main (/usr/bin/clang+0x132ef)
#31 0x00007feded89fb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x0000557150223eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-enc-test-large-a799c6.c
clang-11: note: diagnostic msg: /tmp/kcapi-enc-test-large-a799c6.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: test/kcapi-enc-test-large.plist] Error 254
  CCSA   speed-test/cryptoperf-base.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ speed-test/cryptoperf-base.c -o speed-test/cryptoperf-base.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling cp_read_random
3.      speed-test/cryptoperf-base.c:182:5: Error evaluating statement
4.      speed-test/cryptoperf-base.c:182:5: Error evaluating statement
 #0 0x00007fa046310f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fa04630f1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fa046244028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fa045474310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fa04cbac43f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fa04cbacb70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fa04cc3d374 (/lib64/libclang-cpp.so.11.1+0x20e4374)
 #7 0x00007fa04cc3d518 (/lib64/libclang-cpp.so.11.1+0x20e4518)
 #8 0x00007fa04cbb255c clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x205955c)
 #9 0x00007fa04cc398a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007fa04cbc1a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007fa04cbc1af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007fa04cbf789a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007fa04cb7f007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#14 0x00007fa04cb7f1fc (/lib64/libclang-cpp.so.11.1+0x20261fc)
#15 0x00007fa04cbe369c clang::ento::ExprEngine::evalEagerlyAssumeBinOpBifurcation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet&, clang::Expr const*) (/lib64/libclang-cpp.so.11.1+0x208a69c)
#16 0x00007fa04cc51e6a clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f8e6a)
#17 0x00007fa04cc5bb04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#18 0x00007fa04cc5be8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#19 0x00007fa04cc5edb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#20 0x00007fa04cc5f09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#21 0x00007fa04cc74347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#22 0x00007fa04cc77c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#23 0x00007fa04c9cc6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#24 0x00007fa04c5ed039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#25 0x00007fa04ca18fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#26 0x00007fa04ccd6ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#27 0x000055e04d007b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#28 0x000055e04d00dc1d (/usr/bin/clang+0x20c1d)
#29 0x00007fa04b36d5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#30 0x00007fa0462440f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#31 0x00007fa04bc05176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#32 0x00007fa04bd44d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#33 0x00007fa04bd450c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#34 0x00007fa04bd7ae8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#35 0x000055e04d0002ef main (/usr/bin/clang+0x132ef)
#36 0x00007fa04545eb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#37 0x000055e04d000eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/cryptoperf-base-f5b90e.c
clang-11: note: diagnostic msg: /tmp/cryptoperf-base-f5b90e.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: speed-test/cryptoperf-base.plist] Error 254
  CCSA   apps/app-internal.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ apps/app-internal.c -o apps/app-internal.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling check_filetype
3.      apps/app-internal.c:253:12: Error evaluating statement
4.      apps/app-internal.c:253:12: Error evaluating statement
 #0 0x00007fe07a1f9f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fe07a1f81a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fe07a12d028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fe07935d310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fe080a9543f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fe080a95b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fe080b28214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007fe080a9b5b1 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x20595b1)
 #8 0x00007fe080b228a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
 #9 0x00007fe080aaaa46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007fe080aaaaf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007fe080ae089a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007fe080a68007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007fe080b0eec5 (/lib64/libclang-cpp.so.11.1+0x20ccec5)
#14 0x00007fe080a66282 (/lib64/libclang-cpp.so.11.1+0x2024282)
#15 0x00007fe080a666d8 clang::ento::CheckerManager::runCheckersForCallEvent(bool, clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::ento::CallEvent const&, clang::ento::ExprEngine&, bool) (/lib64/libclang-cpp.so.11.1+0x20246d8)
#16 0x00007fe080b34779 clang::ento::ExprEngine::evalCall(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNode*, clang::ento::CallEvent const&) (/lib64/libclang-cpp.so.11.1+0x20f2779)
#17 0x00007fe080b35571 clang::ento::ExprEngine::VisitCallExpr(clang::CallExpr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f3571)
#18 0x00007fe080b39e47 clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f7e47)
#19 0x00007fe080b44b04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#20 0x00007fe080b44e8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#21 0x00007fe080b47db6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#22 0x00007fe080b4809f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#23 0x00007fe080b5d347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#24 0x00007fe080b60c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#25 0x00007fe0808b56fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#26 0x00007fe0804d6039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#27 0x00007fe080901fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#28 0x00007fe080bbfade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#29 0x0000560ad1fa4b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#30 0x0000560ad1faac1d (/usr/bin/clang+0x20c1d)
#31 0x00007fe07f2565d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#32 0x00007fe07a12d0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#33 0x00007fe07faee176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#34 0x00007fe07fc2dd1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#35 0x00007fe07fc2e0c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#36 0x00007fe07fc63e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#37 0x0000560ad1f9d2ef main (/usr/bin/clang+0x132ef)
#38 0x00007fe079347b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#39 0x0000560ad1f9deee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/app-internal-4317c5.c
clang-11: note: diagnostic msg: /tmp/app-internal-4317c5.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: apps/app-internal.plist] Error 254
  CCSA   apps/kcapi-rng.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ apps/kcapi-rng.c -o apps/kcapi-rng.plist
1.      <eof> parser at end of file
 #0 0x00007f8ba1e81f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f8ba1e801a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f8ba1db5028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f8ba0fe5310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f8ba871d43f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f8ba871db70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f8ba87ae870 (/lib64/libclang-cpp.so.11.1+0x20e4870)
 #7 0x00007f8ba87af478 (/lib64/libclang-cpp.so.11.1+0x20e5478)
 #8 0x00007f8ba8723504 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x2059504)
 #9 0x00007f8ba87aa8a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007f8ba8732a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007f8ba8732af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007f8ba876889a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007f8ba86e26b6 (/lib64/libclang-cpp.so.11.1+0x20186b6)
#14 0x00007f8ba87763cd clang::ento::ExprEngine::getInitialState(clang::LocationContext const*) (/lib64/libclang-cpp.so.11.1+0x20ac3cd)
#15 0x00007f8ba87d038a clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210638a)
#16 0x00007f8ba87e5347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f8ba87e8c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f8ba853d6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f8ba815e039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f8ba8589fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f8ba8847ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000055feed973b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x000055feed979c1d (/usr/bin/clang+0x20c1d)
#24 0x00007f8ba6ede5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f8ba1db50f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f8ba7776176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f8ba78b5d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f8ba78b60c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f8ba78ebe8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x000055feed96c2ef main (/usr/bin/clang+0x132ef)
#31 0x00007f8ba0fcfb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x000055feed96ceee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-rng-7de167.c
clang-11: note: diagnostic msg: /tmp/kcapi-rng-7de167.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: apps/kcapi-rng.plist] Error 254
  CCSA   apps/kcapi-dgst.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ apps/kcapi-dgst.c -o apps/kcapi-dgst.plist
1.      <eof> parser at end of file
 #0 0x00007fcc7374df73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fcc7374c1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fcc73681028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fcc728b1310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fcc79fe943f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fcc79fe9b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fcc7a07a870 (/lib64/libclang-cpp.so.11.1+0x20e4870)
 #7 0x00007fcc7a07b478 (/lib64/libclang-cpp.so.11.1+0x20e5478)
 #8 0x00007fcc79fef504 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x2059504)
 #9 0x00007fcc7a0768a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007fcc79ffea46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007fcc79ffeaf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007fcc7a03489a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007fcc79fae6b6 (/lib64/libclang-cpp.so.11.1+0x20186b6)
#14 0x00007fcc7a0423cd clang::ento::ExprEngine::getInitialState(clang::LocationContext const*) (/lib64/libclang-cpp.so.11.1+0x20ac3cd)
#15 0x00007fcc7a09c38a clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210638a)
#16 0x00007fcc7a0b1347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007fcc7a0b4c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007fcc79e096fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007fcc79a2a039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007fcc79e55fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007fcc7a113ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x00005633cc8b1b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x00005633cc8b7c1d (/usr/bin/clang+0x20c1d)
#24 0x00007fcc787aa5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007fcc736810f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007fcc79042176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007fcc79181d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007fcc791820c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007fcc791b7e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x00005633cc8aa2ef main (/usr/bin/clang+0x132ef)
#31 0x00007fcc7289bb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x00005633cc8aaeee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-dgst-71b369.c
clang-11: note: diagnostic msg: /tmp/kcapi-dgst-71b369.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: apps/kcapi-dgst.plist] Error 254
  CCSA   lib/kcapi-sym.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-sym.c -o lib/kcapi-sym.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_cipher_conv_dec_common at line 306
        #1 Calling kcapi_cipher_dec_aes_ctr
3.      lib/kcapi-sym.c:256:6: Error evaluating branch
 #0 0x00007f5ef7ef7f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f5ef7ef61a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f5ef7e2b028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f5ef705b310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f5efe79343f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f5efe793c3e clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053c3e)
 #6 0x00007f5efe826214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f5efe75dc85 clang::ento::RangedConstraintManager::assumeSymUnsupported(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x201dc85)
 #8 0x00007f5efe82071b clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e071b)
 #9 0x00007f5efe7a8a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f5efe7a8af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f5efe7de89a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f5efe766007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f5efe7cc627 clang::ento::ExprEngine::processBranch(clang::Stmt const*, clang::ento::NodeBuilderContext&, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&, clang::CFGBlock const*, clang::CFGBlock const*) (/lib64/libclang-cpp.so.11.1+0x208c627)
#14 0x00007f5efe7ccec7 clang::ento::CoreEngine::HandleBranch(clang::Stmt const*, clang::Stmt const*, clang::CFGBlock const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x208cec7)
#15 0x00007f5efe84609f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#16 0x00007f5efe85b347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f5efe85ec3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f5efe5b36fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f5efe1d4039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f5efe5fffbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f5efe8bdade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000055ceefdc0b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x000055ceefdc6c1d (/usr/bin/clang+0x20c1d)
#24 0x00007f5efcf545d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f5ef7e2b0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f5efd7ec176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f5efd92bd1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f5efd92c0c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f5efd961e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x000055ceefdb92ef main (/usr/bin/clang+0x132ef)
#31 0x00007f5ef7045b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x000055ceefdb9eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-sym-070c81.c
clang-11: note: diagnostic msg: /tmp/kcapi-sym-070c81.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-sym.plist] Error 254
  CCSA   lib/kcapi-aead.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-aead.c -o lib/kcapi-aead.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_aead_ccm_nonce_to_iv
3.      lib/kcapi-aead.c:468:9: Error evaluating statement
4.      lib/kcapi-aead.c:468:9: Error evaluating statement
 #0 0x00007fad48d93f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fad48d921a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fad48cc7028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fad47ef7310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fad4f636f45 (/lib64/libclang-cpp.so.11.1+0x205af45)
 #5 0x00007fad4f685ea7 clang::ento::ProgramState::getSVal(clang::ento::Loc, clang::QualType) const (/lib64/libclang-cpp.so.11.1+0x20a9ea7)
 #6 0x00007fad4f686bbe clang::ento::ExprEngine::evalLoad(clang::ento::ExplodedNodeSet&, clang::Expr const*, clang::Expr const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, clang::ProgramPointTag const*, clang::QualType) (/lib64/libclang-cpp.so.11.1+0x20aabbe)
 #7 0x00007fad4f6d229c clang::ento::ExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f629c)
 #8 0x00007fad4f6d364c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f764c)
 #9 0x00007fad4f6deb04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#10 0x00007fad4f6dee8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#11 0x00007fad4f6e1db6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#12 0x00007fad4f6e209f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#13 0x00007fad4f6f7347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#14 0x00007fad4f6fac3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#15 0x00007fad4f44f6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#16 0x00007fad4f070039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#17 0x00007fad4f49bfbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#18 0x00007fad4f759ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#19 0x000055d55a51fb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#20 0x000055d55a525c1d (/usr/bin/clang+0x20c1d)
#21 0x00007fad4ddf05d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#22 0x00007fad48cc70f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#23 0x00007fad4e688176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#24 0x00007fad4e7c7d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#25 0x00007fad4e7c80c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#26 0x00007fad4e7fde8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#27 0x000055d55a5182ef main (/usr/bin/clang+0x132ef)
#28 0x00007fad47ee1b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#29 0x000055d55a518eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-aead-aa38e9.c
clang-11: note: diagnostic msg: /tmp/kcapi-aead-aa38e9.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-aead.plist] Error 254
  CCSA   lib/kcapi-kdf.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-kdf.c -o lib/kcapi-kdf.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_get_time at line 432
        #1 Calling kcapi_pbkdf_iteration_count
3.      lib/kcapi-kdf.c:416:6: Error evaluating statement
4.      lib/kcapi-kdf.c:416:6: Error evaluating statement
 #0 0x00007fefa601bf73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fefa601a1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fefa5f4f028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fefa517f310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fefac8b743f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fefac8b7b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fefac949e7b (/lib64/libclang-cpp.so.11.1+0x20e5e7b)
 #7 0x00007fefac8bd3ac clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x20593ac)
 #8 0x00007fefac9448a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
 #9 0x00007fefac8cca46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007fefac8ccaf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007fefac90289a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007fefac88a007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007fefac88a1fc (/lib64/libclang-cpp.so.11.1+0x20261fc)
#14 0x00007fefac8ee69c clang::ento::ExprEngine::evalEagerlyAssumeBinOpBifurcation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet&, clang::Expr const*) (/lib64/libclang-cpp.so.11.1+0x208a69c)
#15 0x00007fefac95ce6a clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f8e6a)
#16 0x00007fefac966b04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#17 0x00007fefac966e8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#18 0x00007fefac969db6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#19 0x00007fefac96a09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#20 0x00007fefac97f347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#21 0x00007fefac982c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#22 0x00007fefac6d76fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#23 0x00007fefac2f8039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#24 0x00007fefac723fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#25 0x00007fefac9e1ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#26 0x0000563678e75b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#27 0x0000563678e7bc1d (/usr/bin/clang+0x20c1d)
#28 0x00007fefab0785d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#29 0x00007fefa5f4f0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#30 0x00007fefab910176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#31 0x00007fefaba4fd1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#32 0x00007fefaba500c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#33 0x00007fefaba85e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#34 0x0000563678e6e2ef main (/usr/bin/clang+0x132ef)
#35 0x00007fefa5169b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#36 0x0000563678e6eeee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-kdf-31b41e.c
clang-11: note: diagnostic msg: /tmp/kcapi-kdf-31b41e.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-kdf.plist] Error 254
  CCSA   lib/kcapi-utils.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-utils.c -o lib/kcapi-utils.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_pad_iv
3.      lib/kcapi-utils.c:57:33: Error evaluating statement
4.      lib/kcapi-utils.c:57:33: Error evaluating statement
 #0 0x00007f7ff135cf73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f7ff135b1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f7ff1290028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f7ff04c0310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f7ff7bf843f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f7ff7bf8b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f7ff7c8b214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f7ff7bfe5b1 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x20595b1)
 #8 0x00007f7ff7c858a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
 #9 0x00007f7ff7c0da46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f7ff7c0daf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f7ff7c4389a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f7ff7bcb007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f7ff7bcb1fc (/lib64/libclang-cpp.so.11.1+0x20261fc)
#14 0x00007f7ff7c70f3b (/lib64/libclang-cpp.so.11.1+0x20cbf3b)
#15 0x00007f7ff7b9520e clang::ento::CheckerManager::runCheckersForLocation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::ento::SVal, bool, clang::Stmt const*, clang::Stmt const*, clang::ento::ExprEngine&) (/lib64/libclang-cpp.so.11.1+0x1ff020e)
#16 0x00007f7ff7bd38f7 clang::ento::ExprEngine::evalLocation(clang::ento::ExplodedNodeSet&, clang::Stmt const*, clang::Stmt const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, bool) (/lib64/libclang-cpp.so.11.1+0x202e8f7)
#17 0x00007f7ff7c4f977 clang::ento::ExprEngine::evalLoad(clang::ento::ExplodedNodeSet&, clang::Expr const*, clang::Expr const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, clang::ProgramPointTag const*, clang::QualType) (/lib64/libclang-cpp.so.11.1+0x20aa977)
#18 0x00007f7ff7c9b29c clang::ento::ExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f629c)
#19 0x00007f7ff7c9c64c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f764c)
#20 0x00007f7ff7ca7b04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#21 0x00007f7ff7ca7e8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#22 0x00007f7ff7caadb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#23 0x00007f7ff7cab09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#24 0x00007f7ff7cc0347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#25 0x00007f7ff7cc3c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#26 0x00007f7ff7a186fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#27 0x00007f7ff7639039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#28 0x00007f7ff7a64fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#29 0x00007f7ff7d22ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#30 0x0000557d45cfcb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#31 0x0000557d45d02c1d (/usr/bin/clang+0x20c1d)
#32 0x00007f7ff63b95d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#33 0x00007f7ff12900f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#34 0x00007f7ff6c51176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#35 0x00007f7ff6d90d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#36 0x00007f7ff6d910c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#37 0x00007f7ff6dc6e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#38 0x0000557d45cf52ef main (/usr/bin/clang+0x132ef)
#39 0x00007f7ff04aab75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#40 0x0000557d45cf5eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-utils-c002a7.c
clang-11: note: diagnostic msg: /tmp/kcapi-utils-c002a7.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-utils.plist] Error 254
  CCSA   speed-test/cryptoperf-aead.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ speed-test/cryptoperf-aead.c -o speed-test/cryptoperf-aead.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling cp_aead_register
3.      speed-test/cryptoperf-aead.c:374:9: Error evaluating branch
 #0 0x00007f85974eaf73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f85974e91a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f859741e028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f859664e310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f859dd8643f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f859dd86b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f859de19214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f859dd50c85 clang::ento::RangedConstraintManager::assumeSymUnsupported(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x201dc85)
 #8 0x00007f859de1371b clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e071b)
 #9 0x00007f859dd9ba46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f859dd9baf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f859ddd189a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f859dd59007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f859ddbf627 clang::ento::ExprEngine::processBranch(clang::Stmt const*, clang::ento::NodeBuilderContext&, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&, clang::CFGBlock const*, clang::CFGBlock const*) (/lib64/libclang-cpp.so.11.1+0x208c627)
#14 0x00007f859ddbfec7 clang::ento::CoreEngine::HandleBranch(clang::Stmt const*, clang::Stmt const*, clang::CFGBlock const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x208cec7)
#15 0x00007f859de3909f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#16 0x00007f859de4e347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f859de51c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f859dba66fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f859d7c7039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f859dbf2fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f859deb0ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000055ed3b6fbb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x000055ed3b701c1d (/usr/bin/clang+0x20c1d)
#24 0x00007f859c5475d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f859741e0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f859cddf176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f859cf1ed1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f859cf1f0c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f859cf54e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x000055ed3b6f42ef main (/usr/bin/clang+0x132ef)
#31 0x00007f8596638b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x000055ed3b6f4eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/cryptoperf-aead-bc7dd6.c
clang-11: note: diagnostic msg: /tmp/cryptoperf-aead-bc7dd6.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: speed-test/cryptoperf-aead.plist] Error 254
  CCSA   apps/kcapi-hasher.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ apps/kcapi-hasher.c -o apps/kcapi-hasher.plist
1.      <eof> parser at end of file
 #0 0x00007f5dccb8bf73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f5dccb8a1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f5dccabf028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f5dcbcef310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f5dd342743f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f5dd3427b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f5dd34b8870 (/lib64/libclang-cpp.so.11.1+0x20e4870)
 #7 0x00007f5dd34b9478 (/lib64/libclang-cpp.so.11.1+0x20e5478)
 #8 0x00007f5dd342d504 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x2059504)
 #9 0x00007f5dd34b48a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007f5dd343ca46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007f5dd343caf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007f5dd347289a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007f5dd33ec6b6 (/lib64/libclang-cpp.so.11.1+0x20186b6)
#14 0x00007f5dd34803cd clang::ento::ExprEngine::getInitialState(clang::LocationContext const*) (/lib64/libclang-cpp.so.11.1+0x20ac3cd)
#15 0x00007f5dd34da38a clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210638a)
#16 0x00007f5dd34ef347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f5dd34f2c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f5dd32476fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f5dd2e68039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f5dd3293fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f5dd3551ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000056028e311b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x000056028e317c1d (/usr/bin/clang+0x20c1d)
#24 0x00007f5dd1be85d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f5dccabf0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f5dd2480176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f5dd25bfd1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f5dd25c00c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f5dd25f5e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x000056028e30a2ef main (/usr/bin/clang+0x132ef)
#31 0x00007f5dcbcd9b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x000056028e30aeee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-hasher-ccc2fa.c
clang-11: note: diagnostic msg: /tmp/kcapi-hasher-ccc2fa.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: apps/kcapi-hasher.plist] Error 254
  CCSA   speed-test/cryptoperf-main.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ speed-test/cryptoperf-main.c -o speed-test/cryptoperf-main.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling main
3.      speed-test/cryptoperf-main.c:172:2: Error evaluating statement
 #0 0x00007f2a6773df73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f2a6773c1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f2a67671028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f2a668a1310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f2a6e08c9dd (/lib64/libclang-cpp.so.11.1+0x21069dd)
 #5 0x00007f2a6e08cdf9 (/lib64/libclang-cpp.so.11.1+0x2106df9)
 #6 0x00007f2a6dfa9875 clang::ento::CheckerManager::runCheckersForLiveSymbols(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymbolReaper&) (/lib64/libclang-cpp.so.11.1+0x2023875)
 #7 0x00007f2a6e087f7c clang::ento::ExprEngine::removeDead(clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&, clang::Stmt const*, clang::LocationContext const*, clang::Stmt const*, clang::ProgramPoint::Kind) (/lib64/libclang-cpp.so.11.1+0x2101f7c)
 #8 0x00007f2a6e0888f4 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x21028f4)
 #9 0x00007f2a6e088e8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#10 0x00007f2a6e08bdb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#11 0x00007f2a6e08c09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#12 0x00007f2a6e0a1347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#13 0x00007f2a6e0a4c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#14 0x00007f2a6ddf96fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#15 0x00007f2a6da1a039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#16 0x00007f2a6de45fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#17 0x00007f2a6e103ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#18 0x0000557d477a9b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#19 0x0000557d477afc1d (/usr/bin/clang+0x20c1d)
#20 0x00007f2a6c79a5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#21 0x00007f2a676710f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#22 0x00007f2a6d032176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#23 0x00007f2a6d171d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#24 0x00007f2a6d1720c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#25 0x00007f2a6d1a7e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#26 0x0000557d477a22ef main (/usr/bin/clang+0x132ef)
#27 0x00007f2a6688bb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#28 0x0000557d477a2eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/cryptoperf-main-d2c434.c
clang-11: note: diagnostic msg: /tmp/cryptoperf-main-d2c434.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: speed-test/cryptoperf-main.plist] Error 254
  CCSA   lib/kcapi-md.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-md.c -o lib/kcapi-md.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_md_mac_conv_common at line 251
        #1 Calling kcapi_md_hmac_sha512
3.      lib/kcapi-md.c:196:6: Error evaluating branch
 #0 0x00007f3f10918f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f3f109171a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f3f1084c028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f3f0fa7c310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f3f171b443f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f3f171b4c3e clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053c3e)
 #6 0x00007f3f17247214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f3f1717ec85 clang::ento::RangedConstraintManager::assumeSymUnsupported(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x201dc85)
 #8 0x00007f3f1724171b clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e071b)
 #9 0x00007f3f171c9a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f3f171c9af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f3f171ff89a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f3f17187007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f3f171ed627 clang::ento::ExprEngine::processBranch(clang::Stmt const*, clang::ento::NodeBuilderContext&, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&, clang::CFGBlock const*, clang::CFGBlock const*) (/lib64/libclang-cpp.so.11.1+0x208c627)
#14 0x00007f3f171edec7 clang::ento::CoreEngine::HandleBranch(clang::Stmt const*, clang::Stmt const*, clang::CFGBlock const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x208cec7)
#15 0x00007f3f1726709f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#16 0x00007f3f1727c347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f3f1727fc3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f3f16fd46fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f3f16bf5039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f3f17020fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f3f172deade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x0000559cdb32cb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x0000559cdb332c1d (/usr/bin/clang+0x20c1d)
#24 0x00007f3f159755d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f3f1084c0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f3f1620d176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f3f1634cd1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f3f1634d0c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f3f16382e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x0000559cdb3252ef main (/usr/bin/clang+0x132ef)
#31 0x00007f3f0fa66b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x0000559cdb325eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-md-987a31.c
clang-11: note: diagnostic msg: /tmp/kcapi-md-987a31.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-md.plist] Error 254
  CCSA   lib/kcapi-rng.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-rng.c -o lib/kcapi-rng.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_rng_get_bytes
3.      lib/kcapi-rng.c:162:6: Error evaluating branch
 #0 0x00007f4bf147df73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f4bf147c1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f4bf13b1028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f4bf05e1310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f4bf7d1943f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f4bf7d19c3e clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053c3e)
 #6 0x00007f4bf7dac214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f4bf7ce3c85 clang::ento::RangedConstraintManager::assumeSymUnsupported(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x201dc85)
 #8 0x00007f4bf7da671b clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e071b)
 #9 0x00007f4bf7d2ea46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f4bf7d2eaf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f4bf7d6489a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f4bf7cec007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f4bf7d52627 clang::ento::ExprEngine::processBranch(clang::Stmt const*, clang::ento::NodeBuilderContext&, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&, clang::CFGBlock const*, clang::CFGBlock const*) (/lib64/libclang-cpp.so.11.1+0x208c627)
#14 0x00007f4bf7d52ec7 clang::ento::CoreEngine::HandleBranch(clang::Stmt const*, clang::Stmt const*, clang::CFGBlock const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x208cec7)
#15 0x00007f4bf7dcc09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#16 0x00007f4bf7de1347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007f4bf7de4c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007f4bf7b396fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007f4bf775a039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007f4bf7b85fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007f4bf7e43ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x000055843ff36b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x000055843ff3cc1d (/usr/bin/clang+0x20c1d)
#24 0x00007f4bf64da5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007f4bf13b10f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007f4bf6d72176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007f4bf6eb1d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007f4bf6eb20c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007f4bf6ee7e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x000055843ff2f2ef main (/usr/bin/clang+0x132ef)
#31 0x00007f4bf05cbb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x000055843ff2feee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-rng-f9756d.c
clang-11: note: diagnostic msg: /tmp/kcapi-rng-f9756d.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-rng.plist] Error 254
  CCSA   speed-test/cryptoperf-skcipher.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ speed-test/cryptoperf-skcipher.c -o speed-test/cryptoperf-skcipher.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling cp_skcipher_dec_test
3.      speed-test/cryptoperf-skcipher.c:168:6: Error evaluating statement
4.      speed-test/cryptoperf-skcipher.c:168:6: Error evaluating statement
 #0 0x00007f27b7c20f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f27b7c1f1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f27b7b54028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f27b6d84310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f27be4c3f45 (/lib64/libclang-cpp.so.11.1+0x205af45)
 #5 0x00007f27be512ea7 clang::ento::ProgramState::getSVal(clang::ento::Loc, clang::QualType) const (/lib64/libclang-cpp.so.11.1+0x20a9ea7)
 #6 0x00007f27be513bbe clang::ento::ExprEngine::evalLoad(clang::ento::ExplodedNodeSet&, clang::Expr const*, clang::Expr const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, clang::ProgramPointTag const*, clang::QualType) (/lib64/libclang-cpp.so.11.1+0x20aabbe)
 #7 0x00007f27be55f29c clang::ento::ExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f629c)
 #8 0x00007f27be56064c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f764c)
 #9 0x00007f27be56bb04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#10 0x00007f27be56be8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#11 0x00007f27be56edb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#12 0x00007f27be56f09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#13 0x00007f27be584347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#14 0x00007f27be587c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#15 0x00007f27be2dc6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#16 0x00007f27bdefd039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#17 0x00007f27be328fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#18 0x00007f27be5e6ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#19 0x00005605c2e16b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#20 0x00005605c2e1cc1d (/usr/bin/clang+0x20c1d)
#21 0x00007f27bcc7d5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#22 0x00007f27b7b540f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#23 0x00007f27bd515176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#24 0x00007f27bd654d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#25 0x00007f27bd6550c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#26 0x00007f27bd68ae8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#27 0x00005605c2e0f2ef main (/usr/bin/clang+0x132ef)
#28 0x00007f27b6d6eb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#29 0x00005605c2e0feee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/cryptoperf-skcipher-525b1f.c
clang-11: note: diagnostic msg: /tmp/cryptoperf-skcipher-525b1f.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: speed-test/cryptoperf-skcipher.plist] Error 254
  CCSA   apps/kcapi-enc.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ apps/kcapi-enc.c -o apps/kcapi-enc.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling parse_opts at line 1101
        #1 Calling main
3.      apps/kcapi-enc.c:885:2: Error evaluating statement
 #0 0x00007f0c137fff73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f0c137fe1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f0c13733028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f0c12963310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f0c1a14e9dd (/lib64/libclang-cpp.so.11.1+0x21069dd)
 #5 0x00007f0c1a14edf9 (/lib64/libclang-cpp.so.11.1+0x2106df9)
 #6 0x00007f0c1a06b875 clang::ento::CheckerManager::runCheckersForLiveSymbols(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymbolReaper&) (/lib64/libclang-cpp.so.11.1+0x2023875)
 #7 0x00007f0c1a149f7c clang::ento::ExprEngine::removeDead(clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&, clang::Stmt const*, clang::LocationContext const*, clang::Stmt const*, clang::ProgramPoint::Kind) (/lib64/libclang-cpp.so.11.1+0x2101f7c)
 #8 0x00007f0c1a14a8f4 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x21028f4)
 #9 0x00007f0c1a14ae8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#10 0x00007f0c1a14ddb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#11 0x00007f0c1a14e09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#12 0x00007f0c1a163347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#13 0x00007f0c1a166c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#14 0x00007f0c19ebb6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#15 0x00007f0c19adc039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#16 0x00007f0c19f07fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#17 0x00007f0c1a1c5ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#18 0x000055c13e550b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#19 0x000055c13e556c1d (/usr/bin/clang+0x20c1d)
#20 0x00007f0c1885c5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#21 0x00007f0c137330f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#22 0x00007f0c190f4176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#23 0x00007f0c19233d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#24 0x00007f0c192340c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#25 0x00007f0c19269e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#26 0x000055c13e5492ef main (/usr/bin/clang+0x132ef)
#27 0x00007f0c1294db75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#28 0x000055c13e549eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-enc-ab888b.c
clang-11: note: diagnostic msg: /tmp/kcapi-enc-ab888b.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: apps/kcapi-enc.plist] Error 254
  CCSA   speed-test/cryptoperf-rng.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ speed-test/cryptoperf-rng.c -o speed-test/cryptoperf-rng.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling cp_rng_exec_test
3.      speed-test/cryptoperf-rng.c:82:7: Error evaluating statement
4.      speed-test/cryptoperf-rng.c:82:7: Error evaluating statement
 #0 0x00007f19fef50f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f19fef4f1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f19fee84028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f19fe0b4310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f1a057ec43f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f1a057ecb70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f1a0587f214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f1a057f25b1 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x20595b1)
 #8 0x00007f1a058798a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
 #9 0x00007f1a05801a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f1a05801af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f1a0583789a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f1a057bf007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f1a057bf1fc (/lib64/libclang-cpp.so.11.1+0x20261fc)
#14 0x00007f1a05864f3b (/lib64/libclang-cpp.so.11.1+0x20cbf3b)
#15 0x00007f1a0578920e clang::ento::CheckerManager::runCheckersForLocation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::ento::SVal, bool, clang::Stmt const*, clang::Stmt const*, clang::ento::ExprEngine&) (/lib64/libclang-cpp.so.11.1+0x1ff020e)
#16 0x00007f1a057c78f7 clang::ento::ExprEngine::evalLocation(clang::ento::ExplodedNodeSet&, clang::Stmt const*, clang::Stmt const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, bool) (/lib64/libclang-cpp.so.11.1+0x202e8f7)
#17 0x00007f1a05843977 clang::ento::ExprEngine::evalLoad(clang::ento::ExplodedNodeSet&, clang::Expr const*, clang::Expr const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, clang::ProgramPointTag const*, clang::QualType) (/lib64/libclang-cpp.so.11.1+0x20aa977)
#18 0x00007f1a0588f29c clang::ento::ExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f629c)
#19 0x00007f1a0589064c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f764c)
#20 0x00007f1a0589bb04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#21 0x00007f1a0589be8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#22 0x00007f1a0589edb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#23 0x00007f1a0589f09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#24 0x00007f1a058b4347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#25 0x00007f1a058b7c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#26 0x00007f1a0560c6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#27 0x00007f1a0522d039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#28 0x00007f1a05658fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#29 0x00007f1a05916ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#30 0x000055f3fde52b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#31 0x000055f3fde58c1d (/usr/bin/clang+0x20c1d)
#32 0x00007f1a03fad5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#33 0x00007f19fee840f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#34 0x00007f1a04845176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#35 0x00007f1a04984d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#36 0x00007f1a049850c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#37 0x00007f1a049bae8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#38 0x000055f3fde4b2ef main (/usr/bin/clang+0x132ef)
#39 0x00007f19fe09eb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#40 0x000055f3fde4beee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/cryptoperf-rng-510b06.c
clang-11: note: diagnostic msg: /tmp/cryptoperf-rng-510b06.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: speed-test/cryptoperf-rng.plist] Error 254
  CCSA   lib/kcapi-kernel-if.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ lib/kcapi-kernel-if.c -o lib/kcapi-kernel-if.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling kcapi_library_init
3.      lib/kcapi-kernel-if.c:1392:6: Error evaluating statement
4.      lib/kcapi-kernel-if.c:1392:6: Error evaluating statement
 #0 0x00007fa592dfff73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fa592dfe1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fa592d33028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fa591f63310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fa59969b43f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fa59969bb70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fa59972c374 (/lib64/libclang-cpp.so.11.1+0x20e4374)
 #7 0x00007fa59972c518 (/lib64/libclang-cpp.so.11.1+0x20e4518)
 #8 0x00007fa5996a155c clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x205955c)
 #9 0x00007fa5997288a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007fa5996b0a46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007fa5996b0af9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007fa5996e689a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007fa59966e007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#14 0x00007fa59966e1fc (/lib64/libclang-cpp.so.11.1+0x20261fc)
#15 0x00007fa5996d269c clang::ento::ExprEngine::evalEagerlyAssumeBinOpBifurcation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet&, clang::Expr const*) (/lib64/libclang-cpp.so.11.1+0x208a69c)
#16 0x00007fa599740e6a clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f8e6a)
#17 0x00007fa59974ab04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#18 0x00007fa59974ae8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#19 0x00007fa59974ddb6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#20 0x00007fa59974e09f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#21 0x00007fa599763347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#22 0x00007fa599766c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#23 0x00007fa5994bb6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#24 0x00007fa5990dc039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#25 0x00007fa599507fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#26 0x00007fa5997c5ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#27 0x000055fcd0dcfb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#28 0x000055fcd0dd5c1d (/usr/bin/clang+0x20c1d)
#29 0x00007fa597e5c5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#30 0x00007fa592d330f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#31 0x00007fa5986f4176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#32 0x00007fa598833d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#33 0x00007fa5988340c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#34 0x00007fa598869e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#35 0x000055fcd0dc82ef main (/usr/bin/clang+0x132ef)
#36 0x00007fa591f4db75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#37 0x000055fcd0dc8eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-kernel-if-92684e.c
clang-11: note: diagnostic msg: /tmp/kcapi-kernel-if-92684e.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: lib/kcapi-kernel-if.plist] Error 254
  CCSA   speed-test/cryptoperf-hash.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ speed-test/cryptoperf-hash.c -o speed-test/cryptoperf-hash.plist
1.      <eof> parser at end of file
2.      While analyzing stack:
        #0 Calling cp_hash_test
3.      speed-test/cryptoperf-hash.c:100:18: Error evaluating statement
4.      speed-test/cryptoperf-hash.c:100:18: Error evaluating statement
 #0 0x00007f204c869f73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007f204c8681a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007f204c79d028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007f204b9cd310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007f205310543f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007f2053105b70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007f2053198214 (/lib64/libclang-cpp.so.11.1+0x20e6214)
 #7 0x00007f205310b5b1 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x20595b1)
 #8 0x00007f20531928a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
 #9 0x00007f205311aa46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#10 0x00007f205311aaf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#11 0x00007f205315089a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#12 0x00007f20530d8007 (/lib64/libclang-cpp.so.11.1+0x2026007)
#13 0x00007f20530d81fc (/lib64/libclang-cpp.so.11.1+0x20261fc)
#14 0x00007f205317df3b (/lib64/libclang-cpp.so.11.1+0x20cbf3b)
#15 0x00007f20530a220e clang::ento::CheckerManager::runCheckersForLocation(clang::ento::ExplodedNodeSet&, clang::ento::ExplodedNodeSet const&, clang::ento::SVal, bool, clang::Stmt const*, clang::Stmt const*, clang::ento::ExprEngine&) (/lib64/libclang-cpp.so.11.1+0x1ff020e)
#16 0x00007f20530e08f7 clang::ento::ExprEngine::evalLocation(clang::ento::ExplodedNodeSet&, clang::Stmt const*, clang::Stmt const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, bool) (/lib64/libclang-cpp.so.11.1+0x202e8f7)
#17 0x00007f205315c977 clang::ento::ExprEngine::evalLoad(clang::ento::ExplodedNodeSet&, clang::Expr const*, clang::Expr const*, clang::ento::ExplodedNode*, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal, clang::ProgramPointTag const*, clang::QualType) (/lib64/libclang-cpp.so.11.1+0x20aa977)
#18 0x00007f20531a829c clang::ento::ExprEngine::VisitCast(clang::CastExpr const*, clang::Expr const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f629c)
#19 0x00007f20531a964c clang::ento::ExprEngine::Visit(clang::Stmt const*, clang::ento::ExplodedNode*, clang::ento::ExplodedNodeSet&) (/lib64/libclang-cpp.so.11.1+0x20f764c)
#20 0x00007f20531b4b04 clang::ento::ExprEngine::ProcessStmt(clang::Stmt const*, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2102b04)
#21 0x00007f20531b4e8a clang::ento::ExprEngine::processCFGElement(clang::CFGElement, clang::ento::ExplodedNode*, unsigned int, clang::ento::NodeBuilderContext*) (/lib64/libclang-cpp.so.11.1+0x2102e8a)
#22 0x00007f20531b7db6 clang::ento::CoreEngine::HandlePostStmt(clang::CFGBlock const*, unsigned int, clang::ento::ExplodedNode*) (/lib64/libclang-cpp.so.11.1+0x2105db6)
#23 0x00007f20531b809f clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210609f)
#24 0x00007f20531cd347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#25 0x00007f20531d0c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#26 0x00007f2052f256fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#27 0x00007f2052b46039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#28 0x00007f2052f71fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#29 0x00007f205322fade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#30 0x00005640223d3b63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#31 0x00005640223d9c1d (/usr/bin/clang+0x20c1d)
#32 0x00007f20518c65d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#33 0x00007f204c79d0f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#34 0x00007f205215e176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#35 0x00007f205229dd1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#36 0x00007f205229e0c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#37 0x00007f20522d3e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#38 0x00005640223cc2ef main (/usr/bin/clang+0x132ef)
#39 0x00007f204b9b7b75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#40 0x00005640223cceee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/cryptoperf-hash-62975c.c
clang-11: note: diagnostic msg: /tmp/cryptoperf-hash-62975c.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: speed-test/cryptoperf-hash.plist] Error 254
  CCSA   test/kcapi-main.plist
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /usr/bin/clang --analyze -DPACKAGE_NAME="libkcapi" -DPACKAGE_TARNAME="libkcapi" -DPACKAGE_VERSION="1.2.1" -DPACKAGE_STRING="libkcapi 1.2.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DKCAPI_MAJVERSION=1 -DKCAPI_MINVERSION=2 -DKCAPI_PATCHLEVEL=1 -DPACKAGE="libkcapi" -DVERSION="1.2.1" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=".libs/" -DHAVE_GETRANDOM=1 -DHAVE_SECURE_GETENV=1 -DCHECK_PREFIX="" -DCHECK_SUFFIX="hmac" -DCHECK_DIR="/usr/lib64" -DHAVE_FSEEKO=1 -I. -I./lib/ test/kcapi-main.c -o test/kcapi-main.plist
1.      <eof> parser at end of file
 #0 0x00007fb2cc6aef73 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/lib64/libLLVM-11.so+0xad0f73)
 #1 0x00007fb2cc6ad1a4 llvm::sys::RunSignalHandlers() (/lib64/libLLVM-11.so+0xacf1a4)
 #2 0x00007fb2cc5e2028 (/lib64/libLLVM-11.so+0xa04028)
 #3 0x00007fb2cb812310 __restore_rt (/lib64/libc.so.6+0x3d310)
 #4 0x00007fb2d2f4a43f clang::ento::RangeSet::IntersectInRange(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt const&, llvm::APSInt const&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&, llvm::ImutAVLValueIterator<llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait> >&) const (/lib64/libclang-cpp.so.11.1+0x205343f)
 #5 0x00007fb2d2f4ab70 clang::ento::RangeSet::Intersect(clang::ento::BasicValueFactory&, llvm::ImmutableSet<clang::ento::Range, clang::ento::RangeTrait>::Factory&, llvm::APSInt, llvm::APSInt) const (/lib64/libclang-cpp.so.11.1+0x2053b70)
 #6 0x00007fb2d2fdb870 (/lib64/libclang-cpp.so.11.1+0x20e4870)
 #7 0x00007fb2d2fdc478 (/lib64/libclang-cpp.so.11.1+0x20e5478)
 #8 0x00007fb2d2f50504 clang::ento::RangedConstraintManager::assumeSymRel(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, clang::BinaryOperatorKind, llvm::APSInt const&) (/lib64/libclang-cpp.so.11.1+0x2059504)
 #9 0x00007fb2d2fd78a0 clang::ento::RangedConstraintManager::assumeSym(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SymExpr const*, bool) (/lib64/libclang-cpp.so.11.1+0x20e08a0)
#10 0x00007fb2d2f5fa46 clang::ento::SimpleConstraintManager::assumeAux(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068a46)
#11 0x00007fb2d2f5faf9 clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::NonLoc, bool) (/lib64/libclang-cpp.so.11.1+0x2068af9)
#12 0x00007fb2d2f9589a clang::ento::SimpleConstraintManager::assume(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::DefinedSVal, bool) (/lib64/libclang-cpp.so.11.1+0x209e89a)
#13 0x00007fb2d2f0f6b6 (/lib64/libclang-cpp.so.11.1+0x20186b6)
#14 0x00007fb2d2fa33cd clang::ento::ExprEngine::getInitialState(clang::LocationContext const*) (/lib64/libclang-cpp.so.11.1+0x20ac3cd)
#15 0x00007fb2d2ffd38a clang::ento::CoreEngine::ExecuteWorkList(clang::LocationContext const*, unsigned int, llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>) (/lib64/libclang-cpp.so.11.1+0x210638a)
#16 0x00007fb2d3012347 (/lib64/libclang-cpp.so.11.1+0x211b347)
#17 0x00007fb2d3015c3c (/lib64/libclang-cpp.so.11.1+0x211ec3c)
#18 0x00007fb2d2d6a6fd clang::ParseAST(clang::Sema&, bool, bool) (/lib64/libclang-cpp.so.11.1+0x1e736fd)
#19 0x00007fb2d298b039 clang::FrontendAction::Execute() (/lib64/libclang-cpp.so.11.1+0x1a94039)
#20 0x00007fb2d2db6fbb clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib64/libclang-cpp.so.11.1+0x1ebffbb)
#21 0x00007fb2d3074ade clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib64/libclang-cpp.so.11.1+0x217dade)
#22 0x0000561bf8d6cb63 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/bin/clang+0x1ab63)
#23 0x0000561bf8d72c1d (/usr/bin/clang+0x20c1d)
#24 0x00007fb2d170b5d9 (/lib64/libclang-cpp.so.11.1+0x8145d9)
#25 0x00007fb2cc5e20f7 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib64/libLLVM-11.so+0xa040f7)
#26 0x00007fb2d1fa3176 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib64/libclang-cpp.so.11.1+0x10ac176)
#27 0x00007fb2d20e2d1b clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib64/libclang-cpp.so.11.1+0x11ebd1b)
#28 0x00007fb2d20e30c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib64/libclang-cpp.so.11.1+0x11ec0c7)
#29 0x00007fb2d2118e8c clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib64/libclang-cpp.so.11.1+0x1221e8c)
#30 0x0000561bf8d652ef main (/usr/bin/clang+0x132ef)
#31 0x00007fb2cb7fcb75 __libc_start_main (/lib64/libc.so.6+0x27b75)
#32 0x0000561bf8d65eee _start (/usr/bin/clang+0x13eee)
clang-11: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 11.1.0 (G2V 11.1.0-7.fc35)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang-11: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-11: note: diagnostic msg: /tmp/kcapi-main-7d2b8c.c
clang-11: note: diagnostic msg: /tmp/kcapi-main-7d2b8c.sh
clang-11: note: diagnostic msg:

********************
make: *** [Makefile:2010: test/kcapi-main.plist] Error 254

Freezy on big files;

step by step

GCM_MSG="507937f393b2de0fa218d0a9713262f4"
GCM_KEY="5aa3d01e7242d7a64f5fd4ad25505390"
GCM_IV="94af90b40cc541173d201250"
GCM_AAD="0f7479e28c53d120fcf57a525e0b36a0"
GCM_TAGLEN="14"

echo -n $GCM_KEY | perl -pe 's/([0-9a-f]{2})/chr hex $1/gie' > gcm_key;

exec 10<gcm_key;
kcapi-enc --keyfd 10 -e -c "gcm(aes)" -i tux.bmp -o gcm_out --iv $GCM_IV --aad $GCM_AAD --taglen $GCM_TAGLEN;


strace

SONAME bump?

Since commit 50b3ba1 changed the signatures of many public libkcapi functions, shouldn't this be accompanied by an SONAME bump of the library? Looking at the build scripts, it seems this would be achieved by bumping the major version.

I'm not aware of any packages at least in Fedora that would link against libkcapi, but still it would be better to follow the correct procedure.

speed measurement for hardware accelerators

Unless I'm missing something, the kcapi-speed tool has a fixed list of drivers that it can use. This means that unless a driver name is listed in https://github.com/smuellerDD/libkcapi/blob/master/speed-test/cryptoperf-hash.c#L114, it can't be tested, correct?

For example on a STM32MP1, I have:

grep stm32 /proc/crypto | sort -u    
driver       : stm32-cbc-aes
driver       : stm32-cbc-des
driver       : stm32-cbc-des3
driver       : stm32-ccm-aes
driver       : stm32-crc32
driver       : stm32-ctr-aes
driver       : stm32-ecb-aes
driver       : stm32-ecb-des
driver       : stm32-ecb-des3
driver       : stm32-gcm-aes
driver       : stm32-hmac-md5
driver       : stm32-hmac-sha1
driver       : stm32-hmac-sha224
driver       : stm32-hmac-sha256
driver       : stm32-md5
driver       : stm32-sha1
driver       : stm32-sha224
driver       : stm32-sha256

Should each accelerator's supported algorithms be added to that list (via PRs)? Or is there a way to detect all available algorithms automatically? Perhaps by parsing /proc/crypto?

Set key via keyfd crash system!

exec 10<${TSTPREFIX}gcm_key;

exec 10<${TSTPREFIX}gcm_key; run_app kcapi-enc --keyfd 10 -e -c "gcm(aes)" -i ${TSTPREFIX}gcm_msg -o ${TSTPREFIX}gcm_out --iv $GCM_IV --aad $GCM_AAD --taglen $GCM_TAGLEN

[   86.632994] BUG: kernel NULL pointer dereference, address: 0000000000000008
[   86.633071] #PF: supervisor read access in kernel mode
[   86.633071] #PF: error_code(0x0000) - not-present page
[   86.633071] PGD 20f5067 P4D 20f5067 PUD 20f6067 PMD 0 
[   86.633071] Oops: 0000 [#1] SMP
[   86.633071] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
[   86.633071] RIP: 0010:rb_insert_color+0x17/0x1a0
[   86.633071] Code: f3 c3 31 c0 c3 0f 1f 40 00 66 2e 0f 1f 84 00 00 00 00 00 48 8b 17 48 85 d2 0f 84 58 01 00 00 48 8b 02 a8 01 0f 85 7b 01 00 00 <48> 8b 48 08 49 89 c0 48 39 d1 74 54 48 85 c9 74 09 f6 01 01 0f 84
[   86.633071] RSP: 0018:ffffb935001ffc40 EFLAGS: 00010246
[   86.633071] RAX: 0000000000000000 RBX: ffff9b4a06027140 RCX: ffff9b4a02944988
[   86.633071] RDX: ffff9b4a02944988 RSI: ffff9b4a02944a40 RDI: ffff9b4a06027148
[   86.633071] RBP: 0000000057137340 R08: 336267786362696c R09: 666e6f632e336267
[   86.633071] R10: ffff9b4a06027140 R11: 0000000000680102 R12: 000000002a6489b6
[   86.633071] R13: ffff9b4a02944a40 R14: ffffb935001ffcb8 R15: ffff9b4a3686f050
[   86.633071] FS:  00007fc1f4cfc700(0000) GS:ffff9b4a7dc00000(0000) knlGS:0000000000000000
[   86.633071] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   86.633071] CR2: 0000000000000008 CR3: 0000000002939000 CR4: 00000000000006f0
[   86.633071] Call Trace:
[   86.633071]  ext4_htree_store_dirent+0xbb/0xf0
[   86.633071]  htree_dirblock_to_tree+0xea/0x290
[   86.633071]  ext4_htree_fill_tree+0xb9/0x2d0
[   86.633071]  ? __alloc_pages_nodemask+0x182/0x320
[   86.633071]  ? kmem_cache_alloc_trace+0x3a2/0x3e0
[   86.633071]  ext4_readdir+0x718/0xa50
[   86.633071]  ? __mod_memcg_lruvec_state+0x1f/0x100
[   86.633071]  ? handle_mm_fault+0x11de/0x16c0
[   86.633071]  iterate_dir+0xf7/0x170
[   86.633071]  __x64_sys_getdents+0x87/0x120
[   86.633071]  ? compat_fillonedir+0x160/0x160
[   86.633071]  ? do_syscall_64+0x33/0x40
[   86.633071]  do_syscall_64+0x33/0x40
[   86.633071]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   86.633071] RIP: 0033:0x7fc1f47da2bb
[   86.633071] Code: fc ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 57 41 56 48 63 ff 41 55 41 54 b8 4e 00 00 00 55 53 48 89 f3 48 83 ec 08 0f 05 <48> 3d 00 f0 ff ff 77 55 4c 8d 2c 06 49 89 c4 4c 39 ee 73 33 90 0f
[   86.633071] RSP: 002b:00007fff0222d550 EFLAGS: 00000206 ORIG_RAX: 000000000000004e
[   86.633071] RAX: ffffffffffffffda RBX: 0000000000e4c160 RCX: 00007fc1f47da2bb
[   86.633071] RDX: 0000000000008000 RSI: 0000000000e4c160 RDI: 0000000000000000
[   86.633071] RBP: 0000000000e4c160 R08: 000000000000007c R09: 0000000000000076
[   86.633071] R10: 00007fff0222d188 R11: 0000000000000206 R12: ffffffffffffffa0
[   86.633071] R13: 0000000000000002 R14: 0000000000e4c130 R15: 0000000000000000
[   86.633071] Modules linked in: fcoe libfcoe libfc scsi_transport_fc 8021q garp stp llc rdma_ucm ib_uverbs rdma_cm configfs ib_cm iw_cm ib_core ipv6 binfmt_misc dm_mirror dm_region_hash dm_log psmouse serio_raw e1000 drm_vram_helper drm_ttm_helper ttm drm_kms_helper drm fb_sys_fops sysimgblt sysfillrect syscopyarea sg i2c_piix4 sd_mod t10_pi sr_mod cdrom ata_piix
[   86.633071] CR2: 0000000000000008
[   86.652219] ---[ end trace 9edc79d698f4f962 ]---

Cannot get valid data via kcapi_cipher_dec_aes_cbc for blocks > 64KiB

Hello,

I'm experiencing issues with that function for blocks bigger than 64KiB. I'm working on migration from openssl based to kcapi based. The data is coming by 70-80KiB blocks and I need to decrypt them. There is a unit test which just compares the existing openssl based and the new kcapi based implementation. the byte-to-byte comparison is showing that the error exists ONLY in 16 bytes from 0x10000 all other parts of the entire decrypted data are identical.

The environment I've tried on:

  1. Stock Ubuntu 20.04 (Intel server platform)
  2. NXP imx8 (Android 10)

The quick check I've done by doubling the pagesize in _kcapi_handle_alloc() which avoid split the data into 64KiB blocks and after that the result is exactly the same to openssl output, i.e. all test have passed.

I've build 1.3.1 version by myself for both platforms.

Any guidance or recommendations would be appreciated. can it be that this function is deprecated for some reason?

Maximum input buffer size for AEAD

I'm testing the MR in GnuTLS and noticed the following error in tests/slow/test-ciphers-openssl.sh:

libkcapi - Error: vmsplice: not all data received by kernel (data received: 61255 -- data sent: 66579)
test-gcm: test-gcm.c:44: main: Assertion `kcapi_aead_stream_update_last(handle, iov, 2) >= 0' failed.

It seems that the kcapi_aead_stream_update_last function has some implicit limit on the input data, around 64KiB.
I'm attaching a reproducer (test-gcm.c.gz).

Failing to build with 4.18 kernel headers

Hi Stephan,

libkcapi is failing to build with 4.18 kernel headers, see this build log from Fedora.

The problem is that since commit torvalds/linux@7a074e9, the <linux/aio_abi.h> header pulls in also <linux/signal.h> and <linux/time.h>, which contain type definitions that conflict with types defined in various glibc headers.

From what I could gather from discussions around the web, it is not really expected to work when you mix Linux and glibc headers so I tried to see if the libkcapi code could be split up so that the conflicts are avoided, but it seems to be impossible without some very ugly hacks or code duplication.

I don't know how to proceed, could you please have a look? Perhaps it actually makes sense to patch this in the kernel (maybe by moving the new definitions from torvalds/linux@7a074e9 into a separate header?).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.