Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1497814imp; Fri, 22 Feb 2019 04:55:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IaTP2yLHdNvzz6R7tzZqtCiALhyaXn/F7+WSo858GQUHh6JKa4FW+x59XYzCa116sKtTase X-Received: by 2002:a63:2a86:: with SMTP id q128mr3893850pgq.424.1550840132925; Fri, 22 Feb 2019 04:55:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550840132; cv=none; d=google.com; s=arc-20160816; b=QDziq7smsw96pQOYFx+vFCVJ6TD17wSkBtBew6ws+w1WQnuLY/bvhPuW3lzViKhh+K XBJP5g1ahdfGEWDaxuu9htH1Z7/B/U1i0jBgFd2uxKrkR9YwueV+kR3cMTU/plougY3B D2CW640DV/zwmr7IdZLop8HS+K/jHyKeDMI0oTFHQ3/U4pvbIeNpo97YF7NjeW31wn4V ScJHxfrYg7oUCl6erutxnW7O3RBv/6vQr01czej67A6zHMDn3xFe14GyEjKfiBGuXVN9 tazp0ohMsZgwTWjcDXMfVjt6d6FIS8r2gvzXoaPPVE0ZmkwwCLIxT0OwwTnn9EjGeOUh ljug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cci7ZilHiWLbA64Mc6AMOu/bLCyx/LwY/bSfReud1WI=; b=YH6H2DQWgbzEe7PA5xI+9ckCEPYx5zvitGtTRH+/zVZQzxEa1UDa50KGPjZmR63gZD 7bu6RseKAj7KfocQdB7oWyDSJkhP06F8PqGcR9D9tlM6ZcOLxfNgeWi1JGrcub82ZNJW IVOCdM0iw/rYsTppjagcZLXpu5rEIUpiFiT1yAowJqRDRth319UFdavFNKqCwiLuXrnw Ujg1+qwS5dZwo4uFQKNaijwvfkU84AVkb4dcaxpKfvbl6AaD6NZZogc1/H7v0mXyeWTQ FchGijz/B0Hjb+lwmzIuqrBOc8VGcIb3OLFpMMwfh4EzdhbG7AJfn0EoQgJo4dg/sF24 OKiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mN2rwWcX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o32si1352207pld.163.2019.02.22.04.55.17; Fri, 22 Feb 2019 04:55:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mN2rwWcX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727110AbfBVMxj (ORCPT + 99 others); Fri, 22 Feb 2019 07:53:39 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37062 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726551AbfBVMxd (ORCPT ); Fri, 22 Feb 2019 07:53:33 -0500 Received: by mail-wr1-f68.google.com with SMTP id c8so2265574wrs.4 for ; Fri, 22 Feb 2019 04:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Cci7ZilHiWLbA64Mc6AMOu/bLCyx/LwY/bSfReud1WI=; b=mN2rwWcXbmXv4T54C8g+dQZceONkqeqfDnfFBkdS/1z2f+11756LZtilFVL9vmN8Ub asXmJYdmjDVQkCK9dtCydjOWxr+KWTUU0EEaMipiA+1WfFsqs10CUXUyp5B+yuljcBc1 0C0tywzNl+KEsDi5E1V9a1Ws2dGSyCYbuw6oXbdAfIH3UZ7l6SUpfEF4GcTbMbPCNeeB Ot4+ZahceUY35FVe2YDPYC6Ax0ARG1yKOQgJNw51FBiolm56hh/XyUho+qccTDZViTri rRytDOGFcggeSEQD/tMlfRQXS2V8i4wpp47+jYCO3tkhuGYSljzEFFfYn0oW2evDAak3 2ugw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Cci7ZilHiWLbA64Mc6AMOu/bLCyx/LwY/bSfReud1WI=; b=HXVoCaxsYGKmfHFpHWjwPiKPRgYr7juKAby6EINTepMx7R/f/k8DGQske1zx9kcPMN ObbaKGMy8Ov2ODhdw0rbGIp3mJS7W/FcF7LuwNa09bXnyhKeFqauXNbfH/UGEREj6DvM fzqeZg0ZnLzosDghmuxhPCZT7POfAlD3noMR4MxzRv2pZMqDJlzV2IoklcN58OpXrUd6 2CBYn0btGJ8l+J3gnmCWEargrIAYVTzOeL9PrVjbQuyHlEQB11ET2Ji0h4BXvSkZxFLc yzII4MBjHFBib2fYx+dukVFRv+aO7crywqh69TPVjoDrjR/UgSr8NBtuM0u/3qwIIFj6 NeJA== X-Gm-Message-State: AHQUAubjc37IkwTXzIhxsjw+n0HPkTygC90rGzqC5FdraPA5X8146lu7 Tnf85abCo8znmIvHm3e9OVsVQQ== X-Received: by 2002:adf:f6ca:: with SMTP id y10mr2869999wrp.148.1550840011806; Fri, 22 Feb 2019 04:53:31 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:13:8ce:d7fa:9f4c:492]) by smtp.gmail.com with ESMTPSA id o14sm808209wrp.34.2019.02.22.04.53.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 04:53:30 -0800 (PST) From: Andrey Konovalov To: Catalin Marinas , Will Deacon , Mark Rutland , Robin Murphy , Kees Cook , Kate Stewart , Greg Kroah-Hartman , Andrew Morton , Ingo Molnar , "Kirill A . Shutemov" , Shuah Khan , Vincenzo Frascino , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dmitry Vyukov , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Chintan Pandya , Luc Van Oostenryck , Dave Martin , Kevin Brodsky , Szabolcs Nagy , Andrey Konovalov Subject: [PATCH v10 01/12] uaccess: add untagged_addr definition for other arches Date: Fri, 22 Feb 2019 13:53:13 +0100 Message-Id: <2b5a5d7d7a36a75a2a796f0c2b9b30669d81d470.1550839937.git.andreyknvl@google.com> X-Mailer: git-send-email 2.21.0.rc0.258.g878e2cd30e-goog In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To allow arm64 syscalls to accept tagged pointers from userspace, we must untag them when they are passed to the kernel. Since untagging is done in generic parts of the kernel, the untagged_addr macro needs to be defined for all architectures. Define it as a noop for architectures other than arm64. Acked-by: Catalin Marinas Signed-off-by: Andrey Konovalov --- include/linux/memory.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/memory.h b/include/linux/memory.h index a6ddefc60517..fc383bc39ab8 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -21,6 +21,10 @@ #include #include +#ifndef untagged_addr +#define untagged_addr(addr) (addr) +#endif + #define MIN_MEMORY_BLOCK_SIZE (1UL << SECTION_SIZE_BITS) struct memory_block { -- 2.21.0.rc0.258.g878e2cd30e-goog