Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1840407lqt; Sun, 21 Apr 2024 11:38:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV26SfoZXT1kO39BLwVqIktXDXlbOG/+3a6REhvAmszT/OjAi3uRs4lBHr6r0MUDkyR3wQRW9LhouW8Q2yQTl6oTUJK0vD4+wupnL0F8Q== X-Google-Smtp-Source: AGHT+IFLURJ1f3P29cdkNwImRiughUegyxb109vNAIozFO3+3Hj8ixyoStyRgDDSqybnr4bH9Wym X-Received: by 2002:a05:6512:ea2:b0:51a:cb81:8f77 with SMTP id bi34-20020a0565120ea200b0051acb818f77mr5503095lfb.16.1713724680974; Sun, 21 Apr 2024 11:38:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713724680; cv=pass; d=google.com; s=arc-20160816; b=M4TFcEoJkn2uoHRUUmacdh4fs9pD6cIH226f9EU5qG0gi8OPR24UGZiMugj9JA8Oe+ /VV7fjojT+tSuH7sex/hUmbzCK87Mgo2AcczSDsf44wQrLSZg5nDvz4Gqw3ijjd3M9Z1 RnitkP6JVnJHcLm4BqraT66XAfwPX5OEWxygMpkuyRWvhl/QvfcAXygX9hJrE5k45TVH 4vsfgEP+ujsI/mUjTNB7giExAPjhGLlrU9CAleLzTjN/YOQaDGz3UFgikry0mp9oQNb/ X+0ePqtVCWtac+I3uyPpT17kHMEXulvhlKDYC6H6RJ7hSO2UjVp9ZTMivsjJ3VK2N7NC kxcA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=W0qXdv+3SHyokXrLV1y0MFYXcFm8D5IujwYvjvLIrU4=; fh=/sWSQW/MA3GXMZ4dhZfF+9pBM3bVaiugmk/i2e8BzTo=; b=DprnpUwTtLsiGmC9SjF2Ji3UTail9mCbN9qQQX1V7Z8ZKsOrMemN2PFYO7N3I2QHTe zEIKO4gns5OlOyFfarWIXJfmQE/S5sfovWltdBXrjQW5Hzsqev2lLA/YhD0/cHEo2Rwi P5PlGLRFVrCMr8P9L794gktWhFhjpZSrHmK4pgF2EfJZZzP1xWv0y/fRCjDajnKou229 uT5rdfI6fH79JvAji1AP9eHr5vBIR2GiNaXVFqWzZIhOJG1h7SXw6kg1dfPCpesfyswd 2HeAu33HQiK4adgLTJlX2ZBrX9GgdhmnxyqILJj0YaltrQdWmmcQb4+ZsRND7pKzSw8e WN7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ya9ajvWO; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-152585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f4-20020a170906494400b00a4e8f736d61si4887644ejt.140.2024.04.21.11.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 11:38:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Ya9ajvWO; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-152585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8A5661F21365 for ; Sun, 21 Apr 2024 18:38:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03ED9224FA; Sun, 21 Apr 2024 18:37:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Ya9ajvWO" Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6F8579FD for ; Sun, 21 Apr 2024 18:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713724672; cv=none; b=eBxkRJBjdwUtLLIyOIQMFL7aZSw4KZjUx+1cBNkYqaI5R2kD/hoekEQgA8oz4Ec+L2uhHKZLiCu6hfioqCnacYDay+6YHt3O/3kRQXayyCwJL3cBDCKkoETlTMLUirMV8dCwLx15cC7IXXcs9EJFHgK5iUT1voXsKwhV6xuSWhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713724672; c=relaxed/simple; bh=W0qXdv+3SHyokXrLV1y0MFYXcFm8D5IujwYvjvLIrU4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=qRWhrRNutrxvlRgScRQbsz0p9p/BNq9+IOAcVI+9W09LRRfkNe079PL6B01Xsse+zkjUtVpjBdumMwfPZv2bypaYwBAx+tqM8I5XRIkcnlni7+/2DYqKkeLhh1YSiEqlNmR326/5GhulUwnXMMy2C6gyiwO3szhPas5U4rxMA8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Ya9ajvWO; arc=none smtp.client-ip=209.85.222.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-7e7af556187so1241435241.1 for ; Sun, 21 Apr 2024 11:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713724670; x=1714329470; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W0qXdv+3SHyokXrLV1y0MFYXcFm8D5IujwYvjvLIrU4=; b=Ya9ajvWOysApoUVKR/09qKBEwN6FcjPde9U02kMMfGNQw6XMkJb5HehsZsJuErfRAf NBbtf0kFQSkm37X4/ApHH1QCPfP116ECgCqfwiIZ7OTk1LEUb4iD8sRvIKJ3z0qWOOdZ rftdo3/kP+/Gpo9mPwRry7UVwUIS40cVIv/1xcrMiB/3Kk7sh9LcjkmoyMroT4Ce/uB9 vW+qKB9XhPxbUrS2+EIHFe1QE764PHgZ+0zPOlfe79kYCyuUHogBe7GMYQrrbSiIf34u t7tDESJMR0XjOq2iDTJkMlZD069pNqdnTz+TmtJEuS8TnUL3sw74+FV8EK4ryd/E46+t KUEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713724670; x=1714329470; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W0qXdv+3SHyokXrLV1y0MFYXcFm8D5IujwYvjvLIrU4=; b=MBS8z4qtFDcxfywKez/PH47O6TQTGZ6cd7aR/QQCz6Uxdg/pJ4PyuLKij+tpDex8MH ukBAhedSpxI/xjFC55jdSp0XgA4n0BbnaTKZxij6ECT9by8s2aztBajyFOCt+s8kueiH b67KY6UbrTNQFwjZRNHhy7I+M9PsZTA7gHij1oC9PvlNWY4Zn767d9gLhKRvQjCUGIfA Y7rggWjbxrN4Fg1UUajmzY/e+mvLCG6KQyQhUehysZu0yRQrdLHVWBwPFUJ/0ZsCJI/Z o269wCxlf//aN8nICY/S40HaVxLnpv1F2hgqADwEryLDJP2HlN3ewkg/Xyq6zA+ilE5a AlFA== X-Forwarded-Encrypted: i=1; AJvYcCWpekz8pXZxKlSsSmgQDI8OMnLYeAA1D4jhQV+Kb+SUBLW4TxKYh1qpAWDTS5MD62Yv1oUKmmOaxcbb9MZNHm8+vbH6FSpBT8SECvpA X-Gm-Message-State: AOJu0YzSlwHGR0y16GpPGdv0Y5d5EHW7yA9XQRacw9El+CEMz+rkoLGP 6y5JbXvrNMlNwKsiBAgpgAROaHYi28oXqm+lVvRU0SBz9m4CdWUC1zCAsAgbauPXjpwFHVxFxZ/ ac06r5zNvrkWql2oG8gsu+FG4cBPrnC93tjOv X-Received: by 2002:a05:6122:2191:b0:4c9:a9c9:4b3b with SMTP id j17-20020a056122219100b004c9a9c94b3bmr8241148vkd.9.1713724669627; Sun, 21 Apr 2024 11:37:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240416095323.1107928-1-aliceryhl@google.com> <5a45ccc04cae4976900d031989104737@AcuMS.aculab.com> In-Reply-To: <5a45ccc04cae4976900d031989104737@AcuMS.aculab.com> From: Alice Ryhl Date: Sun, 21 Apr 2024 20:37:38 +0200 Message-ID: Subject: Re: [PATCH v5 1/4] rust: uaccess: add userspace pointers To: David Laight Cc: "boqun.feng@gmail.com" , "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" , "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" , "willy@infradead.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 21, 2024 at 8:08=E2=80=AFPM David Laight wrote: > > Should you be implementing 'struct iov_iter' ? > > Even if it means creating an IO_UBUF for ioctls? > (Although that might take some 'fettling' for read+write for ioctls.) That seems to be intended for when you have several chunks of memory in userspace that you want to treat as one contiguous chunk. That's not something I need in the Android Binder driver. Alice