Message ID | 35f97a89d5cc881f0f4052f43d56b3b7ed736581.1544445454.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-2.web.codeaurora.org (Postfix) with ESMTP id 8A15D1751 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 10 Dec 2018 12:51:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C99A2A2A8 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 10 Dec 2018 12:51:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 702492A287; Mon, 10 Dec 2018 12:51:18 +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=unavailable 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 1D7B72A29A for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 10 Dec 2018 12:51:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 214CC8E000B; Mon, 10 Dec 2018 07:51:15 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 1719D8E0001; Mon, 10 Dec 2018 07:51:15 -0500 (EST) 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 DF5FF8E000B; Mon, 10 Dec 2018 07:51:14 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by kanga.kvack.org (Postfix) with ESMTP id 88DA38E0001 for <linux-mm@kvack.org>; Mon, 10 Dec 2018 07:51:14 -0500 (EST) Received: by mail-wr1-f70.google.com with SMTP id 51so3466775wrb.15 for <linux-mm@kvack.org>; Mon, 10 Dec 2018 04:51:14 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=EnNoEMrMgUcWWKorAen45ktTirJw06vWZl+y3HjnYKc=; b=TjW3OgIVOMs73uK5kJGwsg8/vC50T9fwlc3ryqZvAYudWt2zliYISwX3B10J2zPH4f QZ+CObrnYZLpDkQRaQ4MisMXlSekogUNZ11nK7O6b+J+WFvMur7gAxIK1FKdPcS3fKel T+3p++WyexyMQnOyUujWl+VW8fbXGi3ZGNjuYtgqSh+SFjZy93j0bBpufavzkvhZrqRD yKt7h4W/++4Zemzo+yIgXEn/EYNSnSZlWRGSDwR8CDe89kijsl4uuAG3m2OxpD+JnMJd PrUyHf6cEYG2L8Vye903G9DCTkhMoz30jbQV7vNjkCWXRWztXxHnCfD9ibhJjCR2fZgL Lk6w== X-Gm-Message-State: AA+aEWYqQdeZmRqrXlqg961/nodhu0oZJN0tVC6BELjjrBIymYhF7ibx 5waedm0/o8PwFX7YXzGfHgvUtofii4E8fP2CsHTyF336QE/BXNVVo17P5I8eqk/t4HhYCZZt5Q2 dTLiZrg9ttBnVqtt0kthR9EqujpblPXNCbVVXcYRQBdBGSxMcXbf7oFr9bjWJYSNSjdfWkR+pB/ bGiJn2eSGs1L+OzSpGjnXFj9Cf71ohhLUTzp9PV5MMpZzOjuapoec40QBY4lh7KyyZjpH/BufIK irVmzD0ZPPHh2qErOjkwSAw/M+BvkWZ6LCfBs9i6U32kcyN424/BZLr/G4Ms3sWzcdFi+fl6FZ4 Y6D+vhZSKnQ/UzXvmoNaTLiREnEU3csO5W/Rg+pMi3ebXLhDwfYccjltytwWCGoKP9DpEmg46Um O X-Received: by 2002:a1c:7eca:: with SMTP id z193mr11305441wmc.140.1544446274009; Mon, 10 Dec 2018 04:51:14 -0800 (PST) X-Received: by 2002:a1c:7eca:: with SMTP id z193mr11305397wmc.140.1544446273186; Mon, 10 Dec 2018 04:51:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544446273; cv=none; d=google.com; s=arc-20160816; b=mOTab8na8u4g9QGFiOmMSKo6UswGHocM4Bh6sfjIrGQU7V2vHFbg9oKG39HHrzNp5C fl9YV6Txq7to8of3CVr9A4kCduiJyuEIGGAonDrYTFObi0fX/+yOS1xEwAq6P+hUdaZe 8BBn+egrP4MF5C+HAdd9+0g0P1n7hpEfrNHJBaKO93kvpd9QwfPb6nY5UAS7idxvza9d ScD/s7+ZHQ4719VF3YIKiar1zBeSIqIuMSQzaPHLZiTLFscvjsCdWxNI5TmXZWxgImH7 FSYZJfEy/mfLCXc+G6u9QpHJ1AtCh5jRMHTKNZIRlf0zTi8bXdIXstgSK0SAf9z0E6A1 UcOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=EnNoEMrMgUcWWKorAen45ktTirJw06vWZl+y3HjnYKc=; b=HzAHy9fWtX9zWc2lZI8dc6sxaynzeyIQ8WRBqRTpkuez7vdcTWQajrFxyZW8CaKSEh IiqoS9DHSHJzDy+Zr5HP8tjBhFNn/MOJ9y2GCR1TSq7mqvPZXl5ZpuDCquPeUNzKeM+d Fu5yA5NoCyy7aX1l0/SSZEdc3rY9rAcfq7tJJF1QN1mDsaLaB9v6tF8AYL8gx58C7Xsx 0n7drIWMRQ+aMIdSdot2RXHCXO5ugqHMSYCwcyUqIqRg6wo6WCvebmkNOONe35kvyW1r FnPxsD0UrtTPcF7EKgBS3HqLg1PTZekEdrb8jM9rLiOmvdgafi+3Is+dambZI6OkAeRo bg7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZFDzySXH; 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 62sor7642030wmp.0.2018.12.10.04.51.13 for <linux-mm@kvack.org> (Google Transport Security); Mon, 10 Dec 2018 04:51:13 -0800 (PST) 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=ZFDzySXH; 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 :mime-version:content-transfer-encoding; bh=EnNoEMrMgUcWWKorAen45ktTirJw06vWZl+y3HjnYKc=; b=ZFDzySXH+RcGKbu7apwOJhQV89JvZa+gIzkdi3lCpAr8rANmuaA696lcNSMihz5jsd Mgc8z5GDqlKqPiGIFUGFJV5LZ6mPD1yG7h/fXqDnZeBSJrvzsxOfDPf/WQ2TgUnbPF+K BulPEM7LRkLz/+A0NCyQ10FFjDpEaoS17rWmhBEhu1vWUWzxbXcbBgiYI+GWlU+bKJpF hbHErYklHv8F4KC/8y3KrbRg/WdRewnyb+I6zzpz2QW0JhyjVBllF1qeuzcMDR2q476/ 85vwRgG7I3nE+1b5PDbnOhjIJiH5ILXwm/PcvsVjUrvLOA0sv3kgXe81o9mc0j3Nhaf+ o9oA== X-Google-Smtp-Source: AFSGD/XfpH+7b2MBHMbSzaZiRmsmRTBYGLOi6i4h/Gy2a0EmicqS+e3KfIv69EriIxjgI+TvTV5Ofg== X-Received: by 2002:a1c:d08b:: with SMTP id h133mr10494086wmg.8.1544446272635; Mon, 10 Dec 2018 04:51:12 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:3180:41f8:3010:ff61]) by smtp.gmail.com with ESMTPSA id l197sm36893363wma.44.2018.12.10.04.51.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 04:51:11 -0800 (PST) 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>, 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>, Shuah Khan <shuah@kernel.org>, 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 <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>, Luc Van Oostenryck <luc.vanoostenryck@gmail.com>, Andrey Konovalov <andreyknvl@google.com> Subject: [PATCH v9 2/8] uaccess: add untagged_addr definition for other arches Date: Mon, 10 Dec 2018 13:50:59 +0100 Message-Id: <35f97a89d5cc881f0f4052f43d56b3b7ed736581.1544445454.git.andreyknvl@google.com> X-Mailer: git-send-email 2.20.0.rc2.403.gdbc3b29805-goog In-Reply-To: <cover.1544445454.git.andreyknvl@google.com> References: <cover.1544445454.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 |
Series |
arm64: untag user pointers passed to the kernel
|
expand
|
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index efe79c1cdd47..42b7a4ac65e2 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