Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp345694rdb; Thu, 8 Feb 2024 07:36:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGdI22ofBsfTvWQ+/WMw0OZ8wW/3yhQIczta9UFXtsKxgXD/jZQyJc0NWwuDYkQxwd+uDR X-Received: by 2002:a05:6358:7f02:b0:178:951b:d1a6 with SMTP id p2-20020a0563587f0200b00178951bd1a6mr6850220rwn.25.1707406574909; Thu, 08 Feb 2024 07:36:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707406574; cv=pass; d=google.com; s=arc-20160816; b=MpCY6aei4EioYYBcv2duoU8mQ7XhFdNKhVF3DlhGkmCw+zbw5SI8WrV+0gHwHOCFab EiCjkKYqm74qew2fJIExByyX/ISSIwOZOtNX+jxR8b4tsatTVTzp2RWvjA/9hZTNr1XW /L57PSRyCaIGFUuRuZBCfZgo7BHUZnbX1WJ++0trwfvoNs+5eGdncU+puoScFUmJJjKC XjT3cjvdQiMRA/zoDo0gBhuplBVsC2jRb4m0sZgzfMWl8rc6X3GO8cVfST2//mcahvEA RUJxe50NCZbKHze7lRVNnfKXlRIHLQHB+S/i8Lr74jerMk6p+lt2iz1ffdFIh8/rlhyl 7k5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GEcT7Dv26ItwbPQBhNsHVSaIeMNEoPZCK9rZiUkJ8dk=; fh=H7ZHCzFB03ZMUEPALRQToj035ravf7/ZmUrcdptqpsQ=; b=kqIjAWw3e7vSwn1W0IVCpvLXEXuaM0wk50oJ+51KA+qJeJzIY7vKKjd9g5Fz4KVDER NfBQAIooGG8OH1NNtFjTxSu5ZPFF2keOx7qpyj7xK9jD6lLq7griFCB6YOllJjHW9XKw TdgSN5gMiqECc3UaBv/QBspH0s7ZVlhWDIRPd4ACrKKA8SrD44VjWiHKYXOovMpypGmX zV2PQzzsLAFkEUkGbrfRC727UiEgYo4WwPElb6kqJWTdyaCcZW38xQtClSbwAfQ/mHDq ID/sAi6OQ/DSv7RvmQK2G+gEDHKQu+i8ZyLG3POK36CMXE7LQkokmUT9FJaqGkbM0vtA DpPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KQl0RuAM; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-58291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58291-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; AJvYcCV/I5MebjnsUI/oZVGM6vyvmmkVfLYJKWe4ZWrYDC+ivMAtdLx1eKSqz8XjOChH3jMJEWcmeYiAZlbRcIWubrtQg7/1hKxX0W3/y98wrw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bw15-20020a056a02048f00b005dc3c49442esi2566966pgb.732.2024.02.08.07.36.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 07:36:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KQl0RuAM; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-58291-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58291-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DB6472820A9 for ; Thu, 8 Feb 2024 15:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5B417C6C0; Thu, 8 Feb 2024 15:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KQl0RuAM" 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 E94C47B3E1; Thu, 8 Feb 2024 15:35:48 +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=1707406549; cv=none; b=FV56CAGP45xSoqluT3/PQCKL2lRuLmTUo0KlV5lf/WNto+GXij6PS88NNB83LA3KW/NwYZyEU4qTi/AuYVrWh/o1J99CVThzz3HfRSOCPittg/+RyymIC9Kvu0YySZD9rnMIhGj6/B6f2Q6M9pkYKh/NXyLJrqe6KDxBqintrj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707406549; c=relaxed/simple; bh=Oyd+0UxjHh1jKnK11zlznPLxJVZq1YhY3TWT2JBQK4I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ES4wRzeksWQoN14x9VG5yafU0nrRUNSWBhf/WVulSSULDRJbJ6bzcgkRpagQe9xrEzlQEgdl1U9p8rrBrN2Qp2FoJI8yoIqJGoksQjRwKUmthhB0hMVKg6py87qSVCVCmbzK/CgCiI56e0+v+wYM1xGy+H2s7bS3g3aAeIT1i/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KQl0RuAM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C68F7C433F1; Thu, 8 Feb 2024 15:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707406548; bh=Oyd+0UxjHh1jKnK11zlznPLxJVZq1YhY3TWT2JBQK4I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KQl0RuAMe+WdOE/LDDy3xatZEz8RXFLJ2liVNPHOOif2Ui/V0aymQ7CZRV2jT1OQ4 beAM6RNDfy49jWgzm09Plsu7hram53aUgPfAOmrMdLTy4y5qPfb2PUkZuPWA05JgMP 07+IOiEeobpR363RjzTmorEP9HVwp8jiipWIWjI0= Date: Thu, 8 Feb 2024 15:35:45 +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: <2024020859-lusty-ladylike-29d4@gregkh> References: <20240124-alice-mm-v1-0-d1abcec83c44@google.com> <20240124-alice-mm-v1-1-d1abcec83c44@google.com> 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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Feb 08, 2024 at 01:53:20PM +0100, Alice Ryhl wrote: > > Is some sort of `Debug` implementation useful? > > Leaking pointer addresses in logs is frowned upon in the kernel, so I > don't think we should include that. s/frowned upon/forbidden/ :) 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. thanks, greg k-h