From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 From: Alexey Shabalin To: devel-kernel@altlinux.org Date: Wed, 18 Nov 2026 17:42:35 +0300 Message-ID: <20261118144240.3865115-1-shaba@altlinux.org> X-Mailer: git-send-email 2.50.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [d-kernel] [PATCH v2 6.18/sisyphus 0/5] libceph: add support for AES256KRB5 (aes256k) cephx keys X-BeenThere: devel-kernel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2026 14:42:42 -0000 Archived-At: List-Archive: List-Post: 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(-) -- 2.50.1