Re: [PATCH 2/3] AF_ALG: Drop support for off-CPU cryptography
Richard Weinberger <[email protected]> Sun, 26 Jul 2026 22:10:48 +0200
| Newsgroups | org.kernel.vger.io-uring,org.kernel.vger.linux-crypto,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-s390,org.kernel.vger.netdev |
|---|---|
| Message-ID | <CAFLxGvzaAH+ZGr-OFo=Li1aOxgwBjjR76T7m1CjFaL-6w3KPPQ@mail.gmail.com> |
On Sun, Jul 26, 2026 at 5:52 PM Eric Biggers <[email protected]> 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