[PATCH] fscrypt: don't use hardware offload Crypto API drivers
Eric Biggers
ebiggers at kernel.org
Wed Jun 11 23:25:21 PDT 2025
On Thu, Jun 12, 2025 at 12:59:14AM +0000, Eric Biggers wrote:
> On Thu, Jun 12, 2025 at 09:21:26AM +0900, Simon Richter wrote:
> > Hi,
> >
> > On 6/12/25 05:58, Eric Biggers wrote:
> >
> > > But
> > > otherwise this style of hardware offload is basically obsolete and has
> > > been superseded by hardware-accelerated crypto instructions directly on
> > > the CPU as well as inline storage encryption (UFS/eMMC).
> >
> > For desktop, yes, but embedded still has quite a few of these, for example
> > the STM32 crypto offload engine
By the way, I noticed you specifically mentioned STM32. I'm not sure if you
looked at the links I had in my commit message, but one of them
(https://github.com/google/fscryptctl/issues/32) was actually for the STM32
driver being broken and returning the wrong results, which broke filename
encryption. The user fixed the issue by disabling the STM32 driver, and they
seemed okay with that.
That doesn't sound like something useful, IMO. It sounds more like something
actively harmful to users.
Here's another one I forgot to mention:
https://github.com/google/fscryptctl/issues/9
I get blamed for these issues, because it's fscrypt that breaks.
FWIW, here's what happens if you try to use the Intel QAT driver with dm-crypt:
https://lore.kernel.org/r/CACsaVZ+mt3CfdXV0_yJh7d50tRcGcRZ12j3n6-hoX2cz3+njsg@mail.gmail.com/
https://lore.kernel.org/r/0171515-7267-624-5a22-238af829698f@redhat.com/
- Eric
More information about the linux-mtd
mailing list