From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailo.com (msg-4.mailo.com [213.182.54.15]) (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 BD1AE204C3A for ; Fri, 21 Feb 2025 22:53:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.182.54.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740178389; cv=none; b=rN3KWorzWD/jC7oHkDLxPUgm5onLWg1yH4oy5bLN50rSSE1jhW/QKvB0oAWjNdnfoXPArW6t5piGYr3qKv0NOcNVnLBXIvTMudGMtSppG6bZEbPgLu5p3fcipwCCm6C6pkrEYh7PnPnlmdFIiN1JPQ29s54Sx+HmizuevQeonQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740178389; c=relaxed/simple; bh=cRUwksf4u+5RiYbEvj1XWVJNajVosPkimIDSkGK2VQg=; h=From:To:Cc:Date:Subject:MIME-Version:Message-ID:In-Reply-To: Content-Type; b=s4xGxpiBbW0RtMKdIDYAyFKcwBmXIyWlF699G3hvjYQ0cfK/hLEvD0TSupdohUr/k0yWj2j7Rx8ZIL0WzcQ2r3gssy41YXZdGIuctriwCaD8cC5L1rNSR1J8KM/L/XtWBHwo2CFcKRtu9c89tN+CZyK9soTeDEfFfAMzwHLX11w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mailo.com; spf=pass smtp.mailfrom=mailo.com; dkim=pass (1024-bit key) header.d=mailo.com header.i=@mailo.com header.b=BK612r1X; arc=none smtp.client-ip=213.182.54.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mailo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailo.com header.i=@mailo.com header.b="BK612r1X" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1740178347; bh=cRUwksf4u+5RiYbEvj1XWVJNajVosPkimIDSkGK2VQg=; h=X-EA-Auth:From:To:Cc:Date:Subject:MIME-Version:X-Mailer: Message-ID:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=BK612r1XETzHb2k+sML5ZBPdw8gHZdxkU9F53JsDJjHkGXPgobAlGOQf0vacUtnHo yrOhfwz377nIh4IwCphhPwYXRRCQj5CT1QOjC1Wg534EMr2yXFANBGxpJYNznz6+32 JsU0Wv+ppuiRVPThpw1+UmMzGDH6nVN1iXQERA5c= Received: by www.mailo.com with http webmail; Fri, 21 Feb 2025 23:52:23 +0100 (CET) X-EA-Auth: 6de4wPF2sLGGf2XJmdVIVM85OhhIJ8NRtB/wTlgmIjIGzPxomYaDGIZYctjlWcg7vA8ogg6PBvq/APrsOYDwEpPD3LK22ei7 From: henrychurchill@mailo.com To: torvalds@linux-foundation.org, "Jan Engelhardt" Cc: "David Laight" , "H. Peter Anvin" , "Greg KH" , "Boqun Feng" , "Miguel Ojeda" , "Christoph Hellwig" , "rust-for-linux" , "David Airlie" , linux-kernel@vger.kernel.org, ksummit@lists.linux.dev Date: Fri, 21 Feb 2025 23:52:23 +0100 (CET) Subject: Re: C aggregate passing (Rust kernel policy) X-Priority: 3 Precedence: bulk X-Mailing-List: ksummit@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mailer: COMS/EA24.10/r20241127 Message-ID: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ---- Original message ---- > From: Linus Torvalds > To: Jan Engelhardt > Subject: Re: C aggregate passing (Rust kernel policy) > Date: 02/21/2025 21:26:02 Europe/Paris > Cc: David Laight ; > H. Peter Anvin ; > Greg KH ; > Boqun Feng ; > Miguel Ojeda ; > Christoph Hellwig ; > rust-for-linux ; > David Airlie ; > linux-kernel@vger.kernel.org; > ksummit@lists.linux.dev >=20 > Yeah. People love to talk about "safe C", but compiler people=20 have > actively tried to make C unsafer for decades. The C=20 standards > committee has been complicit. I've ranted about the crazy C=20 alias > rules before. The unsafe subset of Rust has way stricter aliasing rules than C. You should read up on unsafe before touching it in Rust, it can get gnarly.