From: "Ivan A. Melnikov" <iv@altlinux.org>
To: ALT Linux kernel packages development <devel-kernel@lists.altlinux.org>
Cc: devel-kernel@altlinux.org
Subject: Re: [d-kernel] [PATCH v2 6.18/sisyphus 0/5] libceph: add support for AES256KRB5 (aes256k) cephx keys
Date: Fri, 20 Nov 2026 16:59:28 +0400
Message-ID: <awBDTnGkvX177gXS@iv-alt> (raw)
In-Reply-To: <20261118144240.3865115-1-shaba@altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2111 bytes --]
On Wed, Nov 18, 2026 at 05:42:35PM +0300, Alexey Shabalin wrote:
> Ceph 19.2.6+ generates cephx keys in the new AES256KRB5 (aes256k)
> format by default, following CVE-2025-30156 (AES-CBC misuse in
> CephX). The kernel client, however, accepts only the legacy
> CEPH_CRYPTO_AES keys, so mounting any such cluster with mount -t
> ceph fails with EINVAL ("libceph: secret too big 32").
>
> https://bugzilla.altlinux.org/61355
>
> This series backports the upstream CEPH_CRYPTO_AES256KRB5 support
> (merged in v7.0-rc1 via the "ceph-for-7.0-rc1" pull:
> https://lore.kernel.org/all/20260217173743.1840319-1-idryomov@gmail.com/)
> to 6.18. All patches are direct cherry-picks from upstream.
>
> The crypto/krb5 library and the prerequisite HMAC-SHA256 conversion
> are already present in this branch.
>
> Changes since v1:
> - add Signed-off-by from the sender to every patch, as requested
> - no code changes
>
> Testing: kernel-image-6.18 with this series was built and tested
> against a Ceph 20.2.5-alt1 (tentacle) cluster:
>
> - the stock kernel fails to mount with "libceph: secret too big 32"
> - with this series, mount -t ceph with an aes256k key
> (ceph fs authorize --key-type=aes256k) succeeds
> - msgr1 (legacy, mon port 6789) and msgr2 both verified
> - read/write (64 MiB file, checksummed), 250-char file names,
> nested directories; dmesg clean, no warnings
>
> Please apply to 6.18/sisyphus (and to p11 after testing).
>
> Ilya Dryomov (4):
> libceph: generalize ceph_x_encrypt_offset() and ceph_x_encrypt_buflen()
> libceph: introduce ceph_crypto_key_prepare()
> libceph: add support for CEPH_CRYPTO_AES256KRB5
> libceph: adapt ceph_x_challenge_blob hashing and msgr1 message signing
>
> Alexey Shabalin (1):
> config: enable CONFIG_CRYPTO_KRB5
>
> 8 files changed, 263 insertions(+), 59 deletions(-)
>
Applied to 6.18/sisyphus: 62583a05b4440 -> 0a1519d7ff703. Thank you!
As for the larger series for 6.12, I have to postpone it till the next
week, as it requires a bit more time to review.
--
wbr,
iv m.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 870 bytes --]
prev parent reply other threads:[~2026-11-20 12:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 14:42 Alexey Shabalin
2026-11-18 14:42 ` [d-kernel] [PATCH v2 6.18/sisyphus 1/5] libceph: generalize ceph_x_encrypt_offset() and ceph_x_encrypt_buflen() Alexey Shabalin
2026-11-18 14:42 ` [d-kernel] [PATCH v2 6.18/sisyphus 2/5] libceph: introduce ceph_crypto_key_prepare() Alexey Shabalin
2026-11-18 14:42 ` [d-kernel] [PATCH v2 6.18/sisyphus 3/5] libceph: add support for CEPH_CRYPTO_AES256KRB5 Alexey Shabalin
2026-11-18 14:42 ` [d-kernel] [PATCH v2 6.18/sisyphus 4/5] libceph: adapt ceph_x_challenge_blob hashing and msgr1 message signing Alexey Shabalin
2026-11-18 14:42 ` [d-kernel] [PATCH v2 6.18/sisyphus 5/5] config: enable CONFIG_CRYPTO_KRB5 Alexey Shabalin
2026-11-20 12:59 ` Ivan A. Melnikov [this message]
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=awBDTnGkvX177gXS@iv-alt \
--to=iv@altlinux.org \
--cc=devel-kernel@altlinux.org \
--cc=devel-kernel@lists.altlinux.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
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git