Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp360253rdb; Thu, 8 Feb 2024 08:00:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUDad/WgJPKeM4VexO3JEdbdxpdOrBU8Gzmf7um/4Dm4qmU0bR6c3sM4uD21S6KpgISnq4CakzaXpL3NqwHXuX8wGVs83SqkEqKXZqBdw== X-Google-Smtp-Source: AGHT+IH0YOEJACPmECgWxEXvulQCgP4PsmjbspgnGw00tF4PwM7awW2oCOMeE5VUKDLJl7qE+Ku/ X-Received: by 2002:a05:6102:1612:b0:46d:6719:cd81 with SMTP id cu18-20020a056102161200b0046d6719cd81mr1315199vsb.13.1707408046053; Thu, 08 Feb 2024 08:00:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707408046; cv=pass; d=google.com; s=arc-20160816; b=Tgo14ybuHutuLMtgzY+Lo04TA5Hq9Q0F0Phj5uMLBoHxKSz1Al1e0HNfTwZGc0krZb m8l736mcwkAZEGXKg/73pdEflReOutqQy3xVPm0wO2DG6QKf10ZLZp25eCtJfYlmRINx mDpJwjXxXgUDoWOT5JdbEsxKkO6vqU1OCqZeQUqMfO8wFSVBYNrxzMWh8JSnkeRXToxF pQ/EgA3vOmWxztj3+VcjhAhQf/ARPunDptmPGHA4fFWW6AEnfigCg4XV+knaKRsWA0MG kCHoGe/44ZSUrkOsndeKkt6OldOFw+/3ZoYOS3p/lxIyFv6K85EH+w68glKRm9xighHc FbGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=V4/HQy+EBnv4HPTzr6jkslGKrdJG4+wfzmNxacxLd+s=; fh=D3OCnbYDRi6/1+K4BbFCSkryelExvd3Hf6lUWlJr5Kw=; b=LSGM89CMFLVPT2i+IQTSfJden5LL+pHWd3ooDsS+6idXHGRR013eefI7gZq6YCSFaG Fw7Ughf8DvaHd5ZB6RCqEOvWPOTWTguLc7QmuoMjwxoeX+IihCG2FM8pK7wb2/Suypsp B4xoCYT7SMMfpgm/mUrIiW5TsDHpT6iXdr3utu1H3UIhTdnLdKOZabYx/59VB1pctqZq 541zVCXLtpOpfSroXvi+jxmsppmHuuuMVTiPHVQKtz87UhtpePh6J8KtIzI0imkswOTM cO2UFxTZ7eL0p0l0SjeaQX1A+NwBRVKEAr6lA/tBwM49/QoCajQIA29BLNSbA+VBr3O5 QvSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JaOt+WKQ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-58317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCX5hPuj2frmdaUkPAvHAIiI0Ch+0wmEDha7eET8t+QVipyyOfWX1dWpNqUwJl30v7DB9GSHkX3hYECdmGND3ADqkA/pf+YJl4ztEay6nw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h6-20020a0562140da600b0068cb4c6ecdbsi279507qvh.317.2024.02.08.08.00.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 08:00:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JaOt+WKQ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-58317-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58317-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 579291C23F8C for ; Thu, 8 Feb 2024 16:00:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBF577E115; Thu, 8 Feb 2024 16:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JaOt+WKQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E0FBB7CF3C; Thu, 8 Feb 2024 16:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707408003; cv=none; b=JSPerapgcdRrRkcHuvVx6ZZlfUPOG80dDOiTqP3LgSnCN+786QHBGOMJS2nYVY6yCDBbnlrRxSzeRH1ykBCog8DbkihGgIrVVRHRl7eRjDUjWocoGe3slhqIWrl1W9TQlqD33zKbww2HbXjhHolHPva+YG45GViCZcQQE16BIao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707408003; c=relaxed/simple; bh=NFml/Mcl7A/mi1oKcXg7Sdv20bTJSW+STEYiKv1z0BU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bj2umXupOLkRUGPJ1KuK+3FcGNCsGHBhhDtwGqa1t3k8++yVLmj8VhbMEyaO6weqCutPcswCAOFOdU7YewdxygQUCKJb2A+8m6+/wNPqhQNpdeWtTItrTFLdFnTsrsLraATQvxVHaWXqynpzj7R4Ju81Kvo6NsgeMIuECCLTncg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JaOt+WKQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DACC7C433F1; Thu, 8 Feb 2024 16:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707408002; bh=NFml/Mcl7A/mi1oKcXg7Sdv20bTJSW+STEYiKv1z0BU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JaOt+WKQW+SW6lNAF6OPmoLeYLoCx8RbhR361T89bM/NJRaG4fEuWEYkUp9RyalNf CsYypFCB8PYAi5YuT63EpakdpjsfqnFixCkDacd0UGczHXywv0Mb/CNQipCCIDRUq4 5OrlajV8eSZoqOAbERNuEkUq9BaUCR7eljjwRTw4= Date: Thu, 8 Feb 2024 15:59:59 +0000 From: Greg Kroah-Hartman To: Alice Ryhl Cc: Trevor Gross , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Kees Cook , Al Viro , Andrew Morton , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Arnd Bergmann , linux-mm@kvack.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Christian Brauner Subject: Re: [PATCH 1/3] rust: add userspace pointers Message-ID: <2024020849-smog-mothball-8723@gregkh> References: <20240124-alice-mm-v1-0-d1abcec83c44@google.com> <20240124-alice-mm-v1-1-d1abcec83c44@google.com> <2024020859-lusty-ladylike-29d4@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Feb 08, 2024 at 04:41:52PM +0100, Alice Ryhl wrote: > On Thu, Feb 8, 2024 at 4:35 PM Greg Kroah-Hartman > > Along those lines, you all are tieing in the "I want to print a pointer, > > so hash it properly before I do so" logic from rust like we have in c, > > right? Ideally you'd use the same logic if at all possible. > > > > If not, that probably needs to be done so that you don't accidentally > > start leaking things. > > I don't know what the status of this is. For anything I've added, I've > just made it entirely impossible to print addresses, hashed or not. Even better, thanks!