Message ID | 8213858e15e7ad5f27cccb442a62db141269c973.1527268727.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6F419602D8 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 25 May 2018 17:21:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 564DF29321 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 25 May 2018 17:21:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AE532972F; Fri, 25 May 2018 17:21:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D50B029321 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 25 May 2018 17:21:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B4ABD6B000D; Fri, 25 May 2018 13:21:24 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AD76D6B000E; Fri, 25 May 2018 13:21:24 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 926BE6B0010; Fri, 25 May 2018 13:21:24 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 303EA6B000D for <linux-mm@kvack.org>; Fri, 25 May 2018 13:21:24 -0400 (EDT) Received: by mail-wm0-f71.google.com with SMTP id a16-v6so3946933wmg.9 for <linux-mm@kvack.org>; Fri, 25 May 2018 10:21:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=ZDgTBkc7SgtSMHD63ovogp2w1o0H2E+utv6QzLdbKbE=; b=Wjv8USb5d+R642VRozOkVELOp+R8RPUYBjS+SDuWuQEJ43vJRhXuy42wKele0Fhl81 rlFwvPiJgwgZobD3N4NUzf/eN3qF791uhQdomnVWhdYYfH7OgsbuTf5eQm9bEybsoicE UdY+0lt/hEk74Qb4dVKShQ4PvzRDgX3QiOYEBaHHptblBsz9ECSa7n0Ik16YbgNweyi7 mBitKitnhNu+SS2aBpnGWX2eYNrLd2G2u75DHkxyaWh3zYZX5mOQucrwAgCO9gz7oEBd 2qPNa1VGTkY+REwrmkaebX5WTvnueShfui8R3fhVYmltwJ1SpZFqaXwytJjUeEV0a4l0 BLog== X-Gm-Message-State: ALKqPwcdlbeFHeoeTraVAqyBch4Z4nyMDrx0kY3DJrAuU7n0TUZ+0dmG XCjUnmqqYwQIUinGuOR+Sdn9cWrH40fDcAMmSCEXOGZsAdGDqOjj2dLN7UB3MnSwihtzyX35e4h DXgWJ6FxIJ7Zfi/DV7GT3ijmH3jW/LMKAFIDepE11s3yjR+kwjQBicOCa8qh5DrdLftfnolYtkw sz2JZUNYS8zKZu6qOzAVzN5G3r+/BNvzrj2h85jTr6QbLQBHREo7Ml0MTyRFbnINjl6ZZSwCFth ncoqi5j+/mfc5XxpJ4Rbgu1afVoAjgDh77qLP0rNtcK6Zw1ucJZE5ehkYlDRGCU9wuhZgohBOys 7jawLaXyeWs9DSdxglmVu9exKniEISrtfoV5DWSfjjapMT6qwWr9ATlq1qYBRl/vVY9wA8Uus7C T X-Received: by 2002:a1c:850c:: with SMTP id h12-v6mr2881566wmd.136.1527268883651; Fri, 25 May 2018 10:21:23 -0700 (PDT) X-Received: by 2002:a1c:850c:: with SMTP id h12-v6mr2881528wmd.136.1527268882914; Fri, 25 May 2018 10:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527268882; cv=none; d=google.com; s=arc-20160816; b=qNzila03CO1wVh2uzHpsFmFJZHrvMFwJcM0Wcry1g46J/ZBVNrRiEJFY58lvEyascF UivooikmLv0MCu4fenDfpK2PH4NDjNKn5pasC/eV06LSGDo2XwBOWA11QA1Q1kLqLoBZ Mnf7mJ1y6upa2PWtH+n16h1EWIWNCLDz7u9QmpT6snyShmfJZS2dyGnt3iREmpqqv/Qd oAP0z8kJqq1o7E7kRmYFv3dTc7PbGdTqpyIj+CzjCJ98CZUpZtgBKKW9f9rusx+1LB57 CMDi11bICpTPGBpTxjFliKBJz0WczQBvKuXPn27bK22E/HBRACLOicsxQhpkQ4XRKA5l pdEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ZDgTBkc7SgtSMHD63ovogp2w1o0H2E+utv6QzLdbKbE=; b=YX/lWj3ysJsYbN38HMT/81pOlWMSfTUOkvuWw2pdKPrbk7L7iDJzjUUW+5bI0mDGiA ro6tUS2rQ095UpaSq2Gt7/LhclYO/FRQrDUd9wY1gPsCG5u3hFDf32N2AkSK02PMa0BD erTYXjg6OwuOtb6D2MMmcW7Xi7YMd+OPTTBgeonou6Mh669RqQ8TciKtaR8KuDFm+b+w H4FcGyP445pn8UPnoogTlM0Jln8tih2Uf68ipb6P49mqqLRI49U+klXWailXw0OXJhUn R5EcIEmVHTlvJqeGV+K/qcT/qZoAeNO1Qs+DUvJmRAtUj6cfpWVIz/2SLjvyczlt44NE ZdKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CWX2Krxt; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u12-v6sor12785292wre.62.2018.05.25.10.21.22 for <linux-mm@kvack.org> (Google Transport Security); Fri, 25 May 2018 10:21:22 -0700 (PDT) Received-SPF: pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CWX2Krxt; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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; bh=ZDgTBkc7SgtSMHD63ovogp2w1o0H2E+utv6QzLdbKbE=; b=CWX2KrxtOpOGEhzQyMghOdwHK2k6aPH3o7eD3rNp8WSLhYe0UdTc042AN8ik/cwOWc x9hQeNVDL8PxiCrCBp0iDPKGYbfjmv5iUZZG/ReZsXe5eO0oSnrMIYju+BlmlnHvvI2s vFwmZ6WoxDfmFQSS0yXGCfEnWDW5AWfooh19S+g5u3Zef/0344xDlJ34NPWtnDZDQwea /htXuR2NK85coCDPG7azc5VoiRrW6gus1MfAmaNZRtx+zvQuvwgjT7SAiSJjYj8Ixsye XpA73/ICdqmO2ybICF4N9DRstkCLBjufVzOA4sS/u8Z5Ykhwub2ec3A2+OUUzAiLVDX2 E5/w== X-Google-Smtp-Source: AB8JxZqdncVPgboUx+muPIF6UZylHBYvo3cLcj9D5apljZ+baBrO3bD8dYoz6bx4+7Zz/q2kAv0kFg== X-Received: by 2002:adf:80ad:: with SMTP id 42-v6mr3255242wrl.211.1527268882429; Fri, 25 May 2018 10:21:22 -0700 (PDT) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:84be:a42a:826d:c530]) by smtp.gmail.com with ESMTPSA id s5-v6sm26579964wra.48.2018.05.25.10.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 10:21:21 -0700 (PDT) From: Andrey Konovalov <andreyknvl@google.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Mark Rutland <mark.rutland@arm.com>, Robin Murphy <robin.murphy@arm.com>, Al Viro <viro@zeniv.linux.org.uk>, Andrey Konovalov <andreyknvl@google.com>, Kees Cook <keescook@chromium.org>, Kate Stewart <kstewart@linuxfoundation.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Andrew Morton <akpm@linux-foundation.org>, Ingo Molnar <mingo@kernel.org>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dmitry Vyukov <dvyukov@google.com>, Kostya Serebryany <kcc@google.com>, Evgeniy Stepanov <eugenis@google.com>, Lee Smith <Lee.Smith@arm.com>, Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>, Jacob Bramley <Jacob.Bramley@arm.com>, Ruben Ayrapetyan <Ruben.Ayrapetyan@arm.com>, Chintan Pandya <cpandya@codeaurora.org> Subject: [PATCH v3 2/6] uaccess: add untagged_addr definition for other arches Date: Fri, 25 May 2018 19:21:12 +0200 Message-Id: <8213858e15e7ad5f27cccb442a62db141269c973.1527268727.git.andreyknvl@google.com> X-Mailer: git-send-email 2.17.0.921.gf22659ad46-goog In-Reply-To: <cover.1527268727.git.andreyknvl@google.com> References: <cover.1527268727.git.andreyknvl@google.com> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index efe79c1cdd47..c045b4eff95e 100644 --- a/include/linux/uaccess.h +++ b/include/linux/uaccess.h @@ -13,6 +13,10 @@ #include <asm/uaccess.h> +#ifndef untagged_addr +#define untagged_addr(addr) addr +#endif + /* * Architectures should provide two primitives (raw_copy_{to,from}_user()) * and get rid of their private instances of copy_{to,from}_user() and
To allow arm64 syscalls 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 (like the mm subsystem), the untagged_addr macro should be defined for all architectures. Define it as a noop for other architectures besides arm64. Signed-off-by: Andrey Konovalov <andreyknvl@google.com> --- include/linux/uaccess.h | 4 ++++ 1 file changed, 4 insertions(+)