smuellerDD / libkcapi

Linux Kernel Crypto API User Space Interface Library
http://www.chronox.de/libkcapi
Other
166 stars 70 forks source link

Hang on read call in _kcapi_common_read_data #163

Open panburana opened 1 year ago

panburana commented 1 year ago

I appear to be getting a hang on the read call in _kcapi_common_read_data() when using kcapi_cipher_encrypt() for xts(aes). Any ideas of what could cause that read call to block and hang?

My setup: Ubuntu 22.04.2 LTS 5.19 kernel libkcapi master branch

Here's the data inputs to cipher_encrypt() that trigger the hang (it's arbitrary test data): Key: 1D87AA6C2DA8215058EDBD7C98B16D65046FC6BE540D1F3E5405476028F5A049F4092AAA425E6E392C55A67660C5B5EAC1AA519CCF1D414832EDCA9CE14DA6FF IV: 726E0199562271B0A260815BFB862937 plaintext: 641E424E9C2E0F550C95DB9555512B1EA129AECEF504673657C6D851B37BCF07EAFCC88BE457146F7946A13654990E0B3E7E17B05591FC2CAA27A5B09E889BADCC2F2E645C699DB9DA035FF131115EFD7677DA4F289B36196125F58211EE73D937D248B296858218CD404C8CAA5D519FA9B79E1161D38014E1C5E9DF826BF9278F0A4E82B007B415883B22A8B018DE4B0477ED0B1503E38555F9BA4B9B0A54F0E9FDA489A8551697C2B4144558D50D9B1085EAD65CE3243493F6D8C79F76CA9D