Re: [PATCH 2/3] AF_ALG: Drop support for off-CPU cryptography
From: Richard Weinberger
Date: Sun Jul 26 2026 - 16:14:05 EST
On Sun, Jul 26, 2026 at 5:52 PM Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
> Then I would suggest that skcipher_bind() should check if the name is
> "cbc(paes)", and if so use 0 instead of AF_ALG_CRYPTOAPI_MASK. Please
> go ahead and send a patch against mainline (for v7.2-rc6) if you're
> interested.
Patch sent.
> On cryptodev/master (future 7.3) it should get an entry in the new
> skcipher_allowlist as well: { "cbc(paes)", true }. That would be a
> separate patch.
Do you mind a new field in struct af_alg_allowlist_entry which indicates
that AF_ALG_CRYPTOAPI_MASK should get bypassed?
bool bypass_apimask;?
> With those it will keep working as root. (And you mentioned in your
> other email it's used only as root anyway.)
Agreed. While I don't know whether others out there using it in
non-privileged mode,
let's be conservative. If something breaks, users will speak up, I hope.
--
Thanks,
//richard