Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp581808rdb; Thu, 8 Feb 2024 14:56:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUOAZD43CaG3K/gHr+kVhG+1Jpq6aC2laHTteyCyz6VOTcRPEp7bMZDpN4A7s+liCeCPBFf8oWQAFyk0punQLwZLbLMGB/Vmf5Gg60BQ== X-Google-Smtp-Source: AGHT+IFRy5XJJMcGf7HftoGWd6dNoahuAUMjsTbXkWzP+fj3Ar9yIp5t6iAPfYC/84D11HadMh+U X-Received: by 2002:aca:1909:0:b0:3bd:a8b4:1a9e with SMTP id l9-20020aca1909000000b003bda8b41a9emr752623oii.20.1707432961186; Thu, 08 Feb 2024 14:56:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707432961; cv=pass; d=google.com; s=arc-20160816; b=RmHeqsnOf2YVp6OsiRf9WrSOMFK6810P6ygoM2/R9mdwWRXqjzNJL8v+wNmnmcjIn3 M8J5tf7Vk6lOkg6yPcRGMlTqo+/Zlyn1ifYVLapIeKddhx0kYssthAzf+549KTspzIQU n6IbjAbp/MjTp4rhPwFlQ9bzDRNdVeUhLz5Ihzu3X9zFfVBjXO4JEPIEFmpEdUC67y+o HIrfYuRYBZxyk1iGN9jt/VmoiP+NXcrEkbJgvjwYaU4MgOsMyf1y+C70yZ3zLrQbqsQf QSaaKc2eMMBR6EUnQH2OLKo3FT2X00/nYs+ydc8y7rmOZLCKj65UzUVir3lcscESJprb yl4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=DrxURgwTjH4QX3w6BhoUyTVcJxAM7dCwhd7CTn9J7e8=; fh=jK4ESpxAjqXWwCm2ReykQUiT58xKzi8UVBW4v3QhwaM=; b=iCWlEGUslUGl8R0K7bEzDySvCB7ZLJWB6olDT4bdcRMo76oLVJ+GJqNKU0OZQxErCW jvDcPxV8sNGEeugwCEOUwFJd8+GEehC/x95j3gZDIezwrKoVs0W0QlOLnlViY/wywiWw rqwB0WlHLQnSZFdIX55lT6X8urXe7lJrq0WLN2FwXaAHkyx8x0c3sihkDUA/Sk5XTw4q pEumHET+7r1WfzCkTh5MfAEzhJ3W/oBjDfAgXp5LHHfvfbaWTd/KSYpdsbUaXvZWRRWV EzFqvzIEjUVFR0cQspADNgyOsL6dKV2fyJmJaT0IgdtZsY9PuTGgYI65IW2sLdnO/ajr +/8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@valentinobst.de header.s=s1-ionos header.b=zCiRV+cy; arc=pass (i=1 spf=pass spfdomain=valentinobst.de dkim=pass dkdomain=valentinobst.de); spf=pass (google.com: domain of linux-kernel+bounces-58800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58800-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWoK9uaWAhIg4sbafUCg3gk9myO5vsRrij6XlpEHEz+9gLH4/UKRkLtd2oFxu/j5m5kVCLaG118+B4Grn3Nj6JTAAnCPlleExtW26C9NA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y14-20020a05622a120e00b0042c07745437si540964qtx.184.2024.02.08.14.56.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:56:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@valentinobst.de header.s=s1-ionos header.b=zCiRV+cy; arc=pass (i=1 spf=pass spfdomain=valentinobst.de dkim=pass dkdomain=valentinobst.de); spf=pass (google.com: domain of linux-kernel+bounces-58800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58800-linux.lists.archive=gmail.com@vger.kernel.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 975071C252BD for ; Thu, 8 Feb 2024 22:55:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44F1550A68; Thu, 8 Feb 2024 22:55:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=valentinobst.de header.i=kernel@valentinobst.de header.b="zCiRV+cy" Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) (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 B24CD4F603; Thu, 8 Feb 2024 22:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.126.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707432925; cv=none; b=AXduFu6SiV8doreO4QklUmm21KRKvsBK6kNmtCjVgZ6z2LfzNTjZmhq8QC0ZX3eaVPEUIkdDbKHFQMBdY6Vo2Nz9hahsrmkiWac305Io6wgOndQo9d2oFG0eUNa8AMv/UQM+IuYCYk7zyIKOEKyZz/8kBjpjri2rFbaM8uymOPY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707432925; c=relaxed/simple; bh=e+MFB3XZAq9GFafBngfM90xut0vO6IkDIPYDubemxVg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aVGuTjBiQiHn1/86HWCACWcb/+gsxqv+9u/dicmBeAKLFnWxcBkQcS0qgxoOAwh2hpWRyaYy7Zf06UlRO3AWBlP/Opgjqag96TsC9EMVM2f2D81sQq0DWFE+En814pWgZDzRi2ff9noJypGPoWkqd0Lr4S36oZmLxEp5lUZVsCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=valentinobst.de; spf=pass smtp.mailfrom=valentinobst.de; dkim=pass (2048-bit key) header.d=valentinobst.de header.i=kernel@valentinobst.de header.b=zCiRV+cy; arc=none smtp.client-ip=212.227.126.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=valentinobst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=valentinobst.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=valentinobst.de; s=s1-ionos; t=1707432886; x=1708037686; i=kernel@valentinobst.de; bh=e+MFB3XZAq9GFafBngfM90xut0vO6IkDIPYDubemxVg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=zCiRV+cy6zuur2CXcS8b6/spqGAfMlbIdvYb/z/6NCVsCXAUUSqvKMJPn356W5qu IGaaJbdoittkjnqXIQJ5BYeqaoq7c4jCVBSSXEC4i+hkI/IdVZXa9+k/ernd6V+N1 v2+tsPIoQd5iY3B9lF7kt0j+3KIM0qSEPsdxfz8ZGnx5uwl3WYH44DAkI/AW4FQxr ZIlVhwsUTSpjuFubtUCqyoOL0n/+Q/7SMNsLVCCStLuOz0eXbyrZ6oktEpyYmvdTf 0j1oUCD8ES5/E1YW3wnyVP6DaZaqR1RkWUSb4imprQ57pBjjmB0TM93FFC9oABRkc +fNURJPSQWPWd4JooA== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from localhost.localdomain ([217.149.163.107]) by mrelayeu.kundenserver.de (mreue010 [213.165.67.97]) with ESMTPSA (Nemesis) id 1N4A1h-1qq2id2Ohd-0105qW; Thu, 08 Feb 2024 23:54:46 +0100 From: Valentin Obst To: aliceryhl@google.com Cc: a.hindborg@samsung.com, akpm@linux-foundation.org, alex.gaynor@gmail.com, arnd@arndb.de, arve@android.com, benno.lossin@proton.me, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, brauner@kernel.org, cmllamas@google.com, gary@garyguo.net, gregkh@linuxfoundation.org, joel@joelfernandes.org, keescook@chromium.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, maco@android.com, ojeda@kernel.org, rust-for-linux@vger.kernel.org, surenb@google.com, tkjos@android.com, viro@zeniv.linux.org.uk, wedsonaf@gmail.com, Valentin Obst Subject: Re: [PATCH v2 1/4] rust: uaccess: add userspace pointers Date: Thu, 8 Feb 2024 23:54:07 +0100 Message-ID: <20240208225407.11951-1-kernel@valentinobst.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208-alice-mm-v2-1-d821250204a6@google.com> References: <20240208-alice-mm-v2-1-d821250204a6@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Provags-ID: V03:K1:c3KgsHDte+YYH7c1f2niFI8o4D1CssfnYZbqlLxRwIzgZlV1m65 1v+5LpTs0C45KrSXwq/XbwLAJyIk3blTzGXfeL3Mnh07bZ2CvceAW9v+EE07z83Lrkp/AKr ABHwcTm8b2pMVasBQXP6G2032obiZSmZBzVqnyNj6tOdnFZF5Uo231GEQ7Wg9brVtFrdEsZ pdb1HmRnnrTtxtfXypukw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:KYCs2emiKW8=;K18jqxUd3/8AJwUpPierWZAqHDc dEw+/3PzbaX7olGqnUAxVQIfFtYjFRNUhFOTpO/0AxMFQ530MoNbMFZF1d6QLW2KyjUF69Gv2 NEu8LRblExRRKFGfUsWvxRiTB391W54u38qktQdpgfUobuKc7Abjc4IFc3AYB3XnYym/r6pKv Rzz66fZ4GpcZak2akShmYvB73hp4OazEJ31FwuEhG2nIs8E4HNYdFjAWUiPhkHwqcppwRZuiD WzuB3U3Eq4Udx4kpPY7vFKDnk3+sxoCyqqLFN1uymBe3NP7SmsZoXsDsZgsGLw7FqNRUfhJMi vD6ncfSRAW9KYgA6GWlxeeTlOamwAtFPecjFLvXRdkS4pV/UtHU9RJov45VjVd+9zZmn4wvcv sWO8eQOSZhbTXJXgwQXQQPqqDjgxVdOMZ79aVcQ9Ygp5QO20rm3DA8kXSjPai00ByE+SZj8z3 7yylVcHnwfFF4tbtHTeBcIbMu7tiVAYxWSBPfiO+GW14ToOURtIf4rGYcu7ej1dCXM0x8aZxV l18+fflSjQeCEj94Po9ceNIKKCH4PrP2DvS+EANQmPL3bGuDJldsP45z6w1k2HloXVZVH27bj ALU02viAHi3M4Lqmrw/5fsU1RyHP4lsQSN0mhpX6Itgh6zfBwt/cc9qFCs2W1ir+mQuLnLU76 PPQbQ1iVm5ylROWyrEk4/2mP0EUcKRLjoW91zDrkIjf7nv1e0nYbsQKSE6ThNJfj+yJGnbxPu 6GE1jj9j1acKmRW+qLkkaLifdUrCcpXbnExS97bXFzJT/Ax02hkE9s= > + /// Reads the entirety of the user slice, appending it to the end of the > + /// provided buffer. > + /// > + /// Fails with `EFAULT` if the read encounters a page fault. > + pub fn read_all(self, buf: &mut Vec) -> Result<()> { > + self.reader().read_all(buf) > + } I think there is also no need to give an explicit `()` for the generic type parameter here as it is the default (applies to some other methods in this patch as well).