Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp511839imm; Thu, 30 Aug 2018 04:44:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYifTkHpsTDSndmXyKXqrzJ4sGGDY2AEEwafYnTePWSRxpE+a8C017mqYBTXBu/nT5pfpe7 X-Received: by 2002:a65:5286:: with SMTP id y6-v6mr9197474pgp.65.1535629477447; Thu, 30 Aug 2018 04:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535629477; cv=none; d=google.com; s=arc-20160816; b=WKi9qj8Kpsq8YdTHbpw6sscVzcdHk7XHLW7Pgg2keV5iBONuDPj+5fVrPOlwOrzC2b NPhkmilJX0dwj/fmpbkJzcfl9u4cmwKhyahrSpf0FQKK6U3xqbI1fGMef/kFePmyIVJh hUnZSk6gQjbMDDtpXTEfM0O0sWLfZl8XwvhrnvXVLCDeLugiBXcronMk2YQWFVpkNe2j funCtktKKTKCHObJ5zLDUa7sxAtnvwKchOn9DhmW7dms8H5GDunILk8dlf2oC87a7zmw +2hcPJJNXNHO8naWKWiaAI65IpSuvGyLB4VMJWwQI01tRKFRAzSrtjxqd3dt/7tkRrcB me8A== 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:arc-authentication-results; bh=KfYH6Tzsb0z/vmKFOXCsrYnHaggF5QU419/lUUKCb/M=; b=f3fPZrgYkCV6HrHYoeb9gKhgoI62vKeMCTQ8QABUqCER6zWuzAv74fsWlevx2j5Axi 21dmylnN1CVP7qb2AXWIdJEGJIhZ809x0w2UfnESpNUn8yE6T/gL/g3Fo9lhTpPanwlt APQPWuJSQWgv3bW9/iq3y6Dng5uW9fpxMJfTol9e0bIMFgi/aqUcgWniYnqpjD0dBxiM rOaNTH0OuVhtt+57DvOENSga8hrTUCMD5gUlDoaMDpzJP3HoQ/dnRq3jLNmVhbL5iAid YNa3seU8cC1Ft3hWY3M036BL1UhRavuh6P8HNIsMk2rCyGm/IGIjkmaYP4Bdy8KIdpoH wahQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SlVrQke1; 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 b8-v6si6200676pls.392.2018.08.30.04.44.22; Thu, 30 Aug 2018 04:44:37 -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=SlVrQke1; 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 S1728339AbeH3PnK (ORCPT + 99 others); Thu, 30 Aug 2018 11:43:10 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39650 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728145AbeH3PnI (ORCPT ); Thu, 30 Aug 2018 11:43:08 -0400 Received: by mail-wr1-f65.google.com with SMTP id o37-v6so7757313wrf.6 for ; Thu, 30 Aug 2018 04:41:24 -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 :mime-version:content-transfer-encoding; bh=KfYH6Tzsb0z/vmKFOXCsrYnHaggF5QU419/lUUKCb/M=; b=SlVrQke1WhZ6O7NRIVjFhSxayQWj+0CsRGKGIwkcT2jBX14NAIHkWVjXQWA2EUGecR 8YqeRKcb8aU1JvFpetpYruAgMrf4QvtMgcPKs2lMwrnQ6FIp+2emSvfGBtjXPmoanpE8 OgWrUG9Oc+AUrCcm5yUGPEAYrCSRnOYb1EPJRWzGK2ELv7RFjTJkVuUxlpj+FaR0K4Fm T26n780JhZ9e07DlSfaMe4HZCX09HrgO6FY/a8g4OjQ2ZtelwTDFoRt5VxT22TP9pWpS zR5Dfk+GoIfpdC6OSm47yVm6eaduuRwduGf5yZ7D1k8y8Qfc/Ij6G6VYWM9MeB801lDc YfLQ== 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=KfYH6Tzsb0z/vmKFOXCsrYnHaggF5QU419/lUUKCb/M=; b=j9N64geTdOXW3bRep3qka5ibMphq4rhaaWkGpfIsqWMKEUVm9u5RjLupoHn+TXVL6d RgsyT/QLAOyAnG4lfKRpYKO8LV4n5vArRb++cYnSRH121omFdOk0wbDHUnj01mVs/hx/ ve0tVlQm/Ft0h5RvPy5Js0FQyd8UtZWctfGGwAdkq2ELUhgts6DkE2BjzO3w5UCnsUy5 B01r5EgwHupJy+GC6VPR9ZWLd/oQazLDk7uugHjaoBSysrrYVUranX6JytPBP4vsIzHt CsvEIwLWFGIBg564JP7K14k3Vp3K023t8CGOMsUHwlZygf/ZspVonE/E69zL611I/mtp pUDQ== X-Gm-Message-State: APzg51B4wvNxVo2NuvzTLY9C2PuYQ0sQ9HikIPqDyjDs+x8ZTb4caH0F G5TIY81w8VcRUkWLaWvwByiBSg== X-Received: by 2002:adf:add0:: with SMTP id w74-v6mr7745481wrc.73.1535629283942; Thu, 30 Aug 2018 04:41:23 -0700 (PDT) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:84be:a42a:826d:c530]) by smtp.gmail.com with ESMTPSA id z184-v6sm2175218wmz.0.2018.08.30.04.41.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 04:41:23 -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 v6 02/11] uaccess: add untagged_addr definition for other arches Date: Thu, 30 Aug 2018 13:41:07 +0200 Message-Id: X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-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 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 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.19.0.rc0.228.g281dcd1b4d0-goog