imx93 dm-crypt crash with RT-patch

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx93 dm-crypt crash with RT-patch

629 Views
electro1
Contributor II

Hi,

We are trying to use dm-crypt with OP-TEE based encryption as described in imx Linux User's Guide chapter 10.5.5. We are using BSP 6.6.36 as a base. This seems to be working fine,  however we also need RT functionality in Linux so we have applied the RT patch manually.

When running a dm-crypt I/O test with RT patch + CONFIG_PREEMPT_RT=y in the kernel, we get strange behavior with random processes crashing, ssh sessions being terminated etc. This makes us suspect some memory corruption occuring in the kernel.

Command used for testing I/O and which triggers the error:

fio --filename=/mnt/encrypted/fio.bin --size=128MB --rw=rw --bs=8k --ioengine=sync --iodepth=1 --runtime=120 --numjobs=1 --time_based --group_reporting --name=throughput-test-job --eta-newline=1

Usually fio segfaults in addition to other errors occuring or not. It can take a while to trigger the errors.

We have also tried the recently released:

  • lf-6.6.52 with manual RT patch
  • real-time-edge-linux Real-Time-Edge-v3.0-202412 which already has the RT patch

All kernels give the same result. We have not been able to reproduce the error when using CONFIG_PREEMPT=y instead of CONFIG_PREEMPT_RT=y.

We have also tried non OP-TEE based encryption with dm-crypt (capi:cbc-aes-ce-plain algorithm) as a comparision and not gotten any errors with RT preemption. However, we need the hidden key support.

Thankful for any help.

Labels (2)
Tags (2)
0 Kudos
Reply
2 Replies

502 Views
Harvey021
NXP TechSupport
NXP TechSupport

hi @electro1 

Will reply back to you in other ticket created by you - imx93 cbc-aes-tee immediate crash - NXP Community

 

Regards

Harvey

0 Kudos
Reply

576 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

We're working on the issue, please wait.

 

Regards

Harvey

0 Kudos
Reply