Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp732520ima; Fri, 15 Mar 2019 12:52:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6KxFXHwVdI/26ss/KkXP4Ky26hIfo3QSYszcoNj86FCZsvgh2J0ZHAMqzIAaCxrFYmkSU X-Received: by 2002:a65:63c1:: with SMTP id n1mr5022523pgv.339.1552679576254; Fri, 15 Mar 2019 12:52:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552679576; cv=none; d=google.com; s=arc-20160816; b=rqxi7vin3Ym8dUEWy510joq6oc/+Tn/w0qtsueM/EoLu8rzICYW1p+7ZfN45pBlVJZ eXBtx0OKkFYj2IuJ8QEgjE5w/sqSine5I2TeP9COLu+4/xLDguPTf3p6BZVdfubwVQ12 xEhJKcyjLALWk3tWg1jZ25Eo2oXgTnEbHoznTNff19550Uqe5EWADz/nPelaRuxGz9eu 3/VaSi4V7+J1uJCQw99O84yC3juitCIA6fu59rhO5ENgOgGetPUadWWq7F3wVEcaLmNw IrLUbUXoi+IWurhAcBNYov1Tb/9J9qHoqYXxDfIvk8InaozaVbpJus6ihVxxjLnHorlV eCbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=7EwJOZO2FU3roQl0F5aaHfBG2l97MDWb8Nx8DHL3tHk=; b=JhmLoW7XnKSkWp7lUmpx5IMlU26IFG4FWvmjH/9lihKnHcV6edTtdHq5mmmSxGYXtk 18vzI9BYOT37T+8aANgylMOOGL/unyuwjUyDM1eERTbUIVRiFuLrn2ZxtDhKILFpddGS qCl3aZ0j0mwqH35v8eOHyOlqsneEj8+6lazlTyxRa8IoGkwR3/8y2z413UgC5dL4A3o1 TKi/ItA+7UD/AEdHiVGneHIRGhnbvuquVCbFboiG91l6QTJ/Ae6YzuE9pSfOgAHLYoj+ pVIqGH3cBlT/ksASWIZWXHUMepk6+GT2X2q7M0z8IH44RvlhNV1/jdcFCRKS/xGvRvVK uOLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NsZbFgqg; 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 go21si2430950plb.368.2019.03.15.12.52.38; Fri, 15 Mar 2019 12:52:56 -0700 (PDT) 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=NsZbFgqg; 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 S1727239AbfCOTvu (ORCPT + 99 others); Fri, 15 Mar 2019 15:51:50 -0400 Received: from mail-io1-f73.google.com ([209.85.166.73]:51023 "EHLO mail-io1-f73.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727160AbfCOTvr (ORCPT ); Fri, 15 Mar 2019 15:51:47 -0400 Received: by mail-io1-f73.google.com with SMTP id s24so4084311ioe.17 for ; Fri, 15 Mar 2019 12:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=7EwJOZO2FU3roQl0F5aaHfBG2l97MDWb8Nx8DHL3tHk=; b=NsZbFgqg7rNL+MmKx3BQKEQu20uV5j38Y50xV/nkSWdpaI1ml/U6N36zAaOr/fw5UA vw0RHRh7TFVUW8EczyoyJgPl2GwQ0O2Y3mdoA35Hyc638cKh6Ou6T8eYWBn4JvcpMD/p rAobGvHGGcaX0d5KUxoitmIQyCm1jnvtMKLMyUhfKXJwo6H8C9LXAnbI3Vm9NBlauUvF LSPFoGZmvnqqM1DaPRlnN62YYv9Ww/FkPY+qI6Xd7c1DGMrBJfACmaSSGw3vWzqTDpi4 0fO7tv8nv58nySaGO3aBtIsMUSYoC0bWVWTZpEnNl/6BuoGd6099E0jO7AssN7waL7VF i1Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=7EwJOZO2FU3roQl0F5aaHfBG2l97MDWb8Nx8DHL3tHk=; b=ph1gOpJPeltk8gAXRP+WPZfId5yGkgRPvgc1DT7D6b5e6uOWb2bol+HETx6XySYNuW M8+blfkUvQVv/WxtPYaiwULXmGhzf9LxarR3y4LHhfHtu7WhNv/3oBCPK7Rsp/vsyOo+ MEO5gq8sTi1WoJGx/2Lv+XFUl1mHkV87uEmYR07bZ1DvnrdJLBsWkl5fS36t8vejKUyh 6/dKCL5aZYkbEf9dnotmUWNtbegWoiJb9AOGFYxCb9NzFGopO2vaGoAS9lKV6K52KzV+ teAFuRO+3vXP8jws8b+YQXZTTbWfcLaeYO1BvvqaRK/moyYg7PPbgnkuOuuwOYVes+j2 NQOg== X-Gm-Message-State: APjAAAUzqYUxI59rQUHam3F99xvYAIgWGrwwrwgF6vx/WoCCHZnVBKnK 1BAHrEz6AUxRu2wB68z70heVw4tQt7UoJHvE X-Received: by 2002:a24:7bd3:: with SMTP id q202mr100068itc.32.1552679506915; Fri, 15 Mar 2019 12:51:46 -0700 (PDT) Date: Fri, 15 Mar 2019 20:51:25 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.21.0.360.g471c308f928-goog Subject: [PATCH v11 01/14] uaccess: add untagged_addr definition for other arches 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 , Eric Dumazet , "David S. Miller" , Alexei Starovoitov , Daniel Borkmann , Steven Rostedt , Ingo Molnar , Peter Zijlstra , Arnaldo Carvalho de Melo , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org, bpf@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 Content-Type: text/plain; charset="UTF-8" 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/mm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 76769749b5a5..4d674518d392 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -99,6 +99,10 @@ extern int mmap_rnd_compat_bits __read_mostly; #include #include +#ifndef untagged_addr +#define untagged_addr(addr) (addr) +#endif + #ifndef __pa_symbol #define __pa_symbol(x) __pa(RELOC_HIDE((unsigned long)(x), 0)) #endif -- 2.21.0.360.g471c308f928-goog