Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp382965ybe; Mon, 2 Sep 2019 03:13:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiyz8MRckK8MU/05VpQG3KH64sPxiw3eGXaxkfWpjOkiTte87gWnjmtCZs8KvlAG8YzQsu X-Received: by 2002:a17:902:7792:: with SMTP id o18mr12601057pll.73.1567419196107; Mon, 02 Sep 2019 03:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567419196; cv=none; d=google.com; s=arc-20160816; b=NEWR9lH1SSn6VxOEfYhnFBmkgS1fuy6FR7h2uXCL5AypZVenTxjpI2fwNGs4cibDco hTB9os7yc/rIo6ryTfftQ2csHIY9J32DKaZrMAudmciEWq62FeFWdTKyUU4K1Mc0UNL9 sCFp/LP00YBjb0RcS6RJao9ekOekrtaoqVa4fJ2kF28x1AlIKd2pYk2+V+cME0VzxSxG ahgeyMYFgdKOUxTmLzKKGPxbxAGq4M6PTHZAvR72A1qt9k0tu5Tg7jNNusAB0bcpVbO6 TLhvsq8meIIJSuUKInCI7h4DCBN2PbEA3Vs9Gwg1y9ICrOxyM8FkdHPlSYHHJ+kNZNrK MEBg== 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; bh=7t+HR2BBzuL3ee0XRoOGVfDlJ2YZyG2LxHiXTX4ceXU=; b=g1RzPSE1l7L4iWj3lMoadHnXBh9IFb8nOwXds2I0/kPApK1zznlGR99KsAYCFw+qd+ zItG43qr428O5ukYmsGIw9Fy9tnNeZoMlVEHf/7mn3OKjoRSlxeXZJrK7J8Qvs+vhN6u O4HTNAZptF94S1bLqGbL/BD4Cq+6WHdWSZ4Ymi3/F8z2uPRTp9JSSi4+UyEnf2eynqMP bYxYurCAtu40dAuAtu1oPtVZETmHf4UP621CTaqSly/b4fd0Wjz2YTgD6T/d2p1BqCpF YqzkKeiIErxQJHIGpSuXdE/T4moqYzyysJ45huLIQhND2yadc8o5sbsFHOcyu3Szri+9 METg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si3735070pju.88.2019.09.02.03.13.01; Mon, 02 Sep 2019 03:13:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730765AbfIBIrj (ORCPT + 99 others); Mon, 2 Sep 2019 04:47:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:45676 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729328AbfIBIrj (ORCPT ); Mon, 2 Sep 2019 04:47:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D9537B6C9; Mon, 2 Sep 2019 08:47:37 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org, Suraj Jitindar Singh Cc: Michal Suchanek , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Christophe Leroy , Mathieu Malaterre , Russell Currey , Anton Blanchard , linux-kernel@vger.kernel.org Subject: [PATCH] Revert "powerpc: Add barrier_nospec to raw_copy_in_user()" Date: Mon, 2 Sep 2019 10:47:26 +0200 Message-Id: <20190902084726.14515-1-msuchanek@suse.de> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190821153656.57fabe9c@kitsune.suse.cz> 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 This reverts commit 6fbcdd59094ade30db63f32316e9502425d7b256. Not needed. Data handled by raw_copy_in_user must be loaded through copy_from_user to be used in the kernel which already has the barrier. Signed-off-by: Michal Suchanek --- arch/powerpc/include/asm/uaccess.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h index 8b03eb44e876..76f34346b642 100644 --- a/arch/powerpc/include/asm/uaccess.h +++ b/arch/powerpc/include/asm/uaccess.h @@ -312,7 +312,6 @@ raw_copy_in_user(void __user *to, const void __user *from, unsigned long n) { unsigned long ret; - barrier_nospec(); allow_user_access(to, from, n); ret = __copy_tofrom_user(to, from, n); prevent_user_access(to, from, n); -- 2.22.0