All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@sigma-star.at>
To: Christoph Anton Mitterer <calestyo@scientia.org>,
	Eric Biggers <ebiggers@kernel.org>
Cc: linux-crypto@vger.kernel.org,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Milan Broz <gmazyland@gmail.com>
Subject: Re: AF_ALG deprecation fallout
Date: Sun, 26 Jul 2026 13:12:32 +0200	[thread overview]
Message-ID: <4065668.hXSD6JRtRq@nailgun> (raw)
In-Reply-To: <20260708011112.GA3890@sol>

On Mittwoch, 8. Juli 2026 03:11 Eric Biggers wrote:
> Note that cryptsetup 2.8.7 will further reduce the cases in which it
> even needs AF_ALG at all.  So just because you are using a particular
> algorithm doesn't necessarily mean you need it in AF_ALG.
> 
> No algorithms have been proposed to be dropped from dm-crypt (which is
> *not* the same thing as AF_ALG), by the way.  Given that dm-crypt allows
> some "interesting" algorithms like RC4, DES-ECB, and even the null
> cipher, I do think we can expect an allowlist for it at some point as
> well.  But that would be separate.
> 
> I'd indeed like to remove AF_ALG entirely eventually.  But that's a long
> term thing that would be many years from now and would occur only after
> iwd, bluez, cryptsetup etc. have all fully migrated to userspace crypto.

Since I got already mails from alerted clients, I'd like to highlight
one particular use case on (deeply) embedded systems and make sure
this use case is known.

On systems with very little space, like a few megabytes of flash,
utilizing dm-crypt with LUKS can be a challenge. Adding a crypto
library to userspace (e.g. initramfs) is a huge burden.

cryptsetup's --with-crypto_backend=kernel helps a lot here.
So, by completely removing AF_ALG these systems would unnecessarily
suffer. Please keep both AF_ALG and --with-crypto_backend=kernel around.

Thanks,
//richard 



  parent reply	other threads:[~2026-07-26 11:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08  0:31 AF_ALG deprecation fallout Christoph Anton Mitterer
2026-07-08  1:11 ` Eric Biggers
2026-07-08  2:14   ` Christoph Anton Mitterer
2026-07-08  3:01     ` Eric Biggers
2026-07-09 10:47       ` Milan Broz
2026-07-09 12:38         ` Christoph Anton Mitterer
2026-07-09 15:27           ` Eric Biggers
2026-07-09 15:35         ` Eric Biggers
2026-07-09 17:07           ` Milan Broz
2026-07-26 11:12   ` Richard Weinberger [this message]
2026-07-26 15:37     ` Eric Biggers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4065668.hXSD6JRtRq@nailgun \
    --to=richard@sigma-star.at \
    --cc=calestyo@scientia.org \
    --cc=ebiggers@kernel.org \
    --cc=gmazyland@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.