Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4830101rwl; Tue, 28 Mar 2023 11:53:57 -0700 (PDT) X-Google-Smtp-Source: AKy350ZB3LdgwNBVIq6dy+vC3RElPSH6DZQ0Yk5ked6FP+13hZtJsYFTwwdOfaohxsCg0XrX7wtG X-Received: by 2002:a17:906:5a43:b0:8aa:be5c:b7c5 with SMTP id my3-20020a1709065a4300b008aabe5cb7c5mr18068702ejc.41.1680029637714; Tue, 28 Mar 2023 11:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680029637; cv=none; d=google.com; s=arc-20160816; b=ZwPOQlmSnwQ/Si4zjQq0Jan7odWT6KqiHOrPbtI6XwFvcIbLOeWXCA0F7GlYGqYvVN i2+1n1wgnXXxg8SFo5psNevZARWf09eAW+ILrSHMKijpcBu5h/kW3NCdmN0dXdmWSsOa KCVYAq34PmyQ42AyX8agCIrk5L4n1ruvv6Y7BES4xdoL2A8aRCMlRqWXXWzHgvHHujr6 fa3cIVXCBCFAFhMaKHh5bb9BJnx17jne79DZevo4yLrpZAIedDHw7waZZubzmdtNYhCR b6Sbgse+EUMkA3QEGkbitFF9xNMp1gI8SOQvGcdy5c9X7DXd0+4CSbYgK88O49e3p/zF jCSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=ORP2FIKdfRirdyD2Lu4aWJpigZ2drmLWozeD8QCTfbg=; b=CLQkyqaTKfqiq+hUs0j8KBlrDlH45E5k1vWbwSk9Msl3ldV3z11UbZnAATlNzBL/Zu 6+XAxhEMLLVtU1TJtxOg0cIE9RTKUP3aKChSsmnsf/E0i/d6fow9nRi+P5pmmp+bbdre pHfvhl57SStql4K0CNQL0/d4V4FekBTHcjPrG9yoR6xA4hOtr8cmL5TgVHbzsy/UbRk2 4eC2u2Tx5lXOEfROKpgpc56n7MlKK7+35GZWkmLEtDPfPodsYCjPNgsYD8DyYtsyjmaZ Li54N22/HkXYVMHpSc67ShMmP/eQS0yRCcf2Pf/sLJZ/9xKxtgEwc8bVbvYuJQvbq3dU 6FSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="Zmq41Z/q"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=tdxBQh+0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020aa7cad4000000b005004b4ca08dsi29538482edt.599.2023.03.28.11.53.32; Tue, 28 Mar 2023 11:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b="Zmq41Z/q"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=tdxBQh+0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjC1Sqg (ORCPT + 99 others); Tue, 28 Mar 2023 14:46:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbjC1Sqe (ORCPT ); Tue, 28 Mar 2023 14:46:34 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F7142107; Tue, 28 Mar 2023 11:46:30 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 341855C00B9; Tue, 28 Mar 2023 14:46:27 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 28 Mar 2023 14:46:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1680029187; x=1680115587; bh=OR P2FIKdfRirdyD2Lu4aWJpigZ2drmLWozeD8QCTfbg=; b=Zmq41Z/qSRMn9rYp+h QDNmVcNMoLhclV/Hq1H5ugsx2lOCfEYHLvvTFmQg+RMWJrkym/WeIRc3MLvDHkDO HTLlocYp2MP2d8ICO4tnvSs469GkfAH6/BwEDWyKiyXrt/Grg0Q36E3ytLWoMgVY kVs6uuC6q4rihRfqOtOtxlAzLj5Do+ABME+dLp8/dowyD7zms93hlezwCC0hO2jO gc4Etx3f3cr9lkTjP9KQr25IAKxCDW6mY9imntxbaqqBHgOY+zPHISXPfZNt/fuE hdzRkfn+jZ/Tf25ykGdteW4/5VebEAdEgCiW2ZmIVpd9GHM26wsg4EidEvJeT/07 dtHw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1680029187; x=1680115587; bh=ORP2FIKdfRird yD2Lu4aWJpigZ2drmLWozeD8QCTfbg=; b=tdxBQh+0EYo2NEcZuqxzWQqO0iBup z7kKFZO7eLXSnp/penapQpwCORauQUrn1+S28WIKpr9NXH22yUC7X7WM4KoT0sSA Utdqa1wIqN3voN9NMdJhx+n1s/L0/t0c2qL7KhFQMUVrtS6IEovWlufwT4grYd2g Mpvz5DsY3OOX4Brj/D+dZx/AThVFwhXIAhMoqD/yv/9Sc/Nx7VdtZdWPfPb9NT15 gTtJyaIh/FC/BxrH9ORyJMvFvYyPUafyy6Rrx2Hlw0Syj2ID5lqcQPJdSSMOhNwy OCKv82SpmoGpl8+byqpQUt7DnPctCQ+AwuApPF2SjgNgsRo5HKGVYMvZQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehgedguddvlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 4754DB60098; Tue, 28 Mar 2023 14:46:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-237-g62623e8e3f-fm-20230327.001-g62623e8e Mime-Version: 1.0 Message-Id: In-Reply-To: <20230328164811.2451-2-gregory.price@memverge.com> References: <20230328164811.2451-1-gregory.price@memverge.com> <20230328164811.2451-2-gregory.price@memverge.com> Date: Tue, 28 Mar 2023 20:46:06 +0200 From: "Arnd Bergmann" To: "Gregory Price" , linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linux-Arch , "Oleg Nesterov" , avagin@gmail.com, "Peter Zijlstra" , "Andy Lutomirski" , krisman@collabora.com, "Thomas Gleixner" , "Jonathan Corbet" , shuah , "Catalin Marinas" , "Will Deacon" , "Mark Rutland" , tongtiangen@huawei.com, "Robin Murphy" , "Gregory Price" Subject: Re: [PATCH v14 1/4] asm-generic,arm64: create task variant of access_ok Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 28, 2023, at 18:48, Gregory Price wrote: > On arm64, access_ok makes adjustments to pointers based on whether > memory tagging is enabled for a task (ARM MTE). When leveraging ptrace, > it's possible for a task to enable/disable various kernel features (such > as syscall user dispatch) which require user points as arguments. > > To enable Task A to set these features via ptrace with Task B's > pointers, a task variant of access_ok is required for architectures with > features such as memory tagging. > > If the architecture does not implement task_access_ok, the operation > reduces to access_ok and the task argument is discarded. > > Signed-off-by: Gregory Price For asm-generic: Acked-by: Arnd Bergmann