Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp905405imm; Wed, 20 Jun 2018 08:26:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1X3DefZ+HjsrE0aZmS88HnpDEXy4FbNmzYA0yu1sBzUDnjiu2uHjasbKTiufGJIJ+3v7w X-Received: by 2002:a17:902:b216:: with SMTP id t22-v6mr24381662plr.199.1529508392067; Wed, 20 Jun 2018 08:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529508392; cv=none; d=google.com; s=arc-20160816; b=Ecaf/iFK+jYRAlBaYL1OHsYkTZndKi7bza83J2evXW95jvfpGJCFX+MVDbMPI5L+KW kg7x2+6CwTxLR+xXg0G1oSuY29oknYigjsyG3LLXPMsi46nz4GVMMzh7oYy9afo0CL/I 3deduHKEP8OiN0tzWa9+aZMHikvPeynycvFUS6b9D+fcUK+o2LxLkShDiGwjrN6MLgr5 PrdsmAXC2ioIPvkNgO/xOm+qHGxT3PYjOrQOOELdsiC5+TR8gBtD423TjS0BVLdX9aIm HyDSTYO2psM7N98KVQXsBSfyQFvaSUh/BwGCETFs/IIw+Ic3Z3P+NtPA8Pc0JyaD7pmF aHDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=XKjQm946wgqBcvKf36FFRVltlqNjqNquoHht/aDg6nU=; b=oDfb1rj1Y4C9GhmReT1voi9xZSAx0NQOP8NGGg0hQsPrs+A9bsDORH/rtGACH+YlUu x1zPmFYLDwVtPaePEXIm3YGqbw+S5YFDSFCXmFCnh1QjynAZITMqkpxsrC8HROOY6/ng 7A8wYUjxWLl6ArCie94BZUy8HdlidAF1ly9brJQwvCMs4zrhKgk2uqTwrizZFLtWhcLP OFSJL16N0+tkvhY2BWs9a0wGzuedrhHGEHOblWScp32MxI242l31hHNrb15ZGxkMIU/v mmqwGmO8NaiB5ksTEIr96jwhDUTmXHoiidF+40J+2f0xPBKR/B1C/JjMgcBmQiLwVzJ4 7LEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lEJigrz2; 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 m12-v6si2553645plt.276.2018.06.20.08.26.18; Wed, 20 Jun 2018 08:26:32 -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=lEJigrz2; 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 S932385AbeFTPYk (ORCPT + 99 others); Wed, 20 Jun 2018 11:24:40 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:42768 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754093AbeFTPYe (ORCPT ); Wed, 20 Jun 2018 11:24:34 -0400 Received: by mail-wr0-f195.google.com with SMTP id w10-v6so3725337wrk.9 for ; Wed, 20 Jun 2018 08:24:33 -0700 (PDT) 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=XKjQm946wgqBcvKf36FFRVltlqNjqNquoHht/aDg6nU=; b=lEJigrz2OiWBxMqQ2GbgTMNaf8HM5o4WfSODpVX11gR3uVG3NYEkX6OOAxhXBkO2VM jomcNT4FHr5zvHDoAr14vO7x6jbK/mhwcwrRvRYcV3f14W3VEREc3BgU5Uu4PLBrMPvd AxlLMDnVf6PytDxds14J7F6wIztQmBZ8ZVXxk0wQd7oBiM5FB87jNG8Z8VbYARGtapY0 Jqj71BFYcO6Arm4MqZyQEoxU7h9jidia7mGzCLpPPKekORuZtnizCR4o1aemqWBVwI7r m/qrma4RcAX2hw+LUNMM9RiOQUTiUZer0boGMlOxJt1C6TjzUg1yXvyarAOiHl0ijDnv X7Uw== 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; bh=XKjQm946wgqBcvKf36FFRVltlqNjqNquoHht/aDg6nU=; b=QoWpqBRSvDlt7DkhtFyCRcT0npg+eIYhqQYq7JO6o7/gpY9EgMifG8MQ4qBKxi7zTK GBje4aicVg/dWcU4eRA/un6c875yKMYKEhjt8KKFsn5wckfnNV1oD2WON3x3ryNZsFVT PKs1S5ttaLKrOhNMKaOQN8SajHT0ZqvQ0tb5o1N+if6QuHryXaMGiBhXXcmuUVXCT4md HPCGvoyW3yif0pwowJtyZ93ZO/qPbvqY7FhzjNMvejyPn3yu30USwBGYb5Jya/hgTyRb 8MlxuEnM/DX0O84fNlY3wOunfT0LhtxgIetPs+bxPm5Jz9tYMFA1UCrwEGwJO5qNxiie rzOQ== X-Gm-Message-State: APt69E0sY3M9OBLEmPlzUa8+vjTuuNyU8PLJJ+O7qhNNZHETYloZbOAR tR9PS06cgn5DS3+ZKo8nev28sg== X-Received: by 2002:adf:a706:: with SMTP id c6-v6mr19077169wrd.61.1529508272731; Wed, 20 Jun 2018 08:24:32 -0700 (PDT) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:84be:a42a:826d:c530]) by smtp.gmail.com with ESMTPSA id c11-v6sm3959244wrm.65.2018.06.20.08.24.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 08:24:32 -0700 (PDT) From: Andrey Konovalov To: Catalin Marinas , Will Deacon , Mark Rutland , Robin Murphy , Al Viro , Andrey Konovalov , Kees Cook , Kate Stewart , Greg Kroah-Hartman , Andrew Morton , Ingo Molnar , "Kirill A . Shutemov" , Shuah Khan , 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 Subject: [PATCH v4 2/7] uaccess: add untagged_addr definition for other arches Date: Wed, 20 Jun 2018 17:24:21 +0200 Message-Id: X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- include/linux/uaccess.h | 4 ++++ 1 file changed, 4 insertions(+) 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 +#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 -- 2.18.0.rc1.244.gcf134e6275-goog