New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying caam_keyblob with mainline 5.10.76 on imx7 #11
Comments
I have also tested the caam_tool.go application: echo "Test file" > test.txt The kernel warning below happened once: [ 397.989563] ------------[ cut here ]------------ |
Can you please share the CAAM related entries in your dts file? (see here for an example of the equivalent i.MX6UL configuration). |
Hi Andrea, The dts patch is this one: https://pastebin.com/raw/bs8HNVkZ Do you know if imx6ul-usbarmory works well with 5.10.76? Thanks! |
I have also tested 5.10.76 running on a imx6ulp-pico-pi board and the same error happens: ./caam_tool enc test.txt text.enc caam_tool: encrypting 10 bytes fr[ 74.847839] caam_keyblob: kb_ioctl rawkey_len:10 keyblob_len:58 |
And here is an strace log: |
strace is not necessary as the exception happens in kernel code and not in the userspace tool (though thanks anyway), the dts patch looks fine. I don't have an i.MX7 board handy, but at the end of next week I will double check if the current patch works correctly with 5.10.76 on i.MX6UL to reproduce, or not, the issue. |
Thanks, Andrea. Just FYI: the strace was taken on an imx6ul-pico-pi. I do see the same error on both i.MX6UL and i.MX7. Cheers |
Thanks, Jo. I did as you suggested and changed caam-keyblob like this: https://pastebin.com/raw/dLDzQzDV Rebuilt the driver with the applied patch, but the same error happens: ./caam_tool enc test.txt text.enc Thanks! |
Hi Jo, I managed to fix it :-) ./caam_tool enc test.txt text.enc I will submit a patch for caam-keyblob soon. Thanks a lot for your help! |
Hi,
I am trying to run the caam_keyblob driver on a imx7s-warp
board running kernel 5.10.76.
dmesg | grep caam
[ 3.704456] caam 30900000.crypto: device ID = 0x0a16030000000000 (Era 8)
[ 3.711210] caam 30900000.crypto: job rings = 3, qi = 0
[ 3.794157] caam algorithms registered in /proc/crypto
[ 3.807700] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[ 3.816357] caam 30900000.crypto: registering rng-caam
[ 11.119916] caam_keyblob: loading out-of-tree module taints kernel.
[ 11.131042] caam_keyblob caam-keyblob: caam_keyblob: initialized
[ 11.138815] caam_keyblob: Secure State detected
I am using the caam-blob-example userspace application from:
https://github.com/digi-embedded/dey-examples/tree/dey-2.6/maint/caam-blob-example
echo "Test file" > test.txt
./caam-blob-example -e test.txt
[ 530.869784] caam_keyblob: kb_ioctl rawkey_len:10 keyblob_len:58
[ERROR] could not encrypt data.
[ERROR] Encryption failed
Does anyone have any suggestions as to how to fix this problem?
Thanks a lot,
Fabio Estevam
The text was updated successfully, but these errors were encountered: