From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-0201.mail-europe.com (mail-0201.mail-europe.com [51.77.79.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FD9CD26D for ; Fri, 7 Feb 2025 00:23:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=51.77.79.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738887817; cv=none; b=K6JTpS0whdCl5VbiqzFhgwADjrjudMnY1lICMSf+9mikyoflVN6b6O3ZxWHJVAI/MZmiAiNeDbYXoUvbfuveE2B1qWPKSG/pl4Xl5EZsgLrzr3oOZtGDuQesnCI787Ko+3bsZhFtf7sEAFVv7dXei8JVO4yPu+2oPfnn6RnyGWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738887817; c=relaxed/simple; bh=MSBQ8GWnqbmkXkDJQH1fTfd8ljxtUT/P4BqezHpjyeA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=vDLL+KM/1xQOKigZ+nLejNTxIO5soopzxp+jgUH46+KCad1PMvW3epsuXxzsB+pmgomO/5CkS8wkHB+DEH2u4rNyYRrGCvzILZZNWZal9Wlu5pbf+X0r+f77mUO4hrl5ugVH2aM+D21t/lTkc71z1POUYULCYUOlm2R/ItBufEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=DAAmmzsU; arc=none smtp.client-ip=51.77.79.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="DAAmmzsU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1738887805; x=1739147005; bh=+Y17yiJKHXbqIJKjLYffT+nV6HQjYl3k7kgDM8kNNBE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=DAAmmzsUhsgxUQje4qg9DrQub53aodQNzRZXxLSsX8E8J37eTISb97wKLPkWd2qUa dkjt83wiQEBv+Fd/xOgYy1ZYAfM3x+8MgHrAv72xgD+DLP1hgkkksMcC8+Sfc1Gxld yWGh9aIXFtAdAUjlnEjt4VS2Vtr4B5IGgsqQ8eKzGE1gSvG3Ds8dFlinAUN3Qn8NtR AAkS7yaZp70LqCh8DAsL/RchjVV4IQ7/eijVxvC/UPVeZ/FZr4HsDxKmz5he3webkE MIg8R2VteMaR75Hdmry5dLzOPatOhl6NHAt7V1qlohSxK+D8QO6dJiE+UBLczuxpAe bXE5opynilM5w== Date: Fri, 07 Feb 2025 00:23:21 +0000 To: Mitchell Levy , Boqun Feng , Miguel Ojeda , Alex Gaynor , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Trevor Gross , Andreas Hindborg From: Benno Lossin Cc: linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 1/2] rust: lockdep: Remove support for dynamically allocated LockClassKeys Message-ID: In-Reply-To: <20250205-rust-lockdep-v3-1-5313e83a0bef@gmail.com> References: <20250205-rust-lockdep-v3-0-5313e83a0bef@gmail.com> <20250205-rust-lockdep-v3-1-5313e83a0bef@gmail.com> Feedback-ID: 71780778:user:proton X-Pm-Message-ID: c4b077ab609d510ca1842e9ee98f1b607618ee1c Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 05.02.25 20:59, Mitchell Levy wrote: > Currently, dynamically allocated LockCLassKeys can be used from the Rust > side without having them registered. This is a soundness issue, so > remove them. >=20 > Suggested-by: Alice Ryhl > Link: https://lore.kernel.org/rust-for-linux/20240815074519.2684107-3-nmi= @metaspace.dk/ > Cc: stable@vger.kernel.org > Signed-off-by: Mitchell Levy > --- > rust/kernel/sync.rs | 16 ++++------------ > 1 file changed, 4 insertions(+), 12 deletions(-) Reviewed-by: Benno Lossin