Received: by 10.213.65.68 with SMTP id h4csp520061imn; Tue, 13 Mar 2018 11:38:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELvVceggrscGTwVoZE2ag6lvg0J2e95Mg7YPVOyHuw2al2sz+oUc9EdSA9BvxEyyPeMJSC3A X-Received: by 2002:a17:902:9307:: with SMTP id bc7-v6mr1430813plb.29.1520966319780; Tue, 13 Mar 2018 11:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520966319; cv=none; d=google.com; s=arc-20160816; b=oEtEsYwGrHhOD+S9YQrbsfSd4TQTTftYZx7aN6+rk7Qpp5/IUaqxXZDlk+N5P8H9zN Oey1JGz1RIEOhlyusAi2PcGq8n/dVA4xqeFkZCGLDtHVB2UOhnYyMrGT8KUO1QgjlLD3 68wj3bgKjAGq8BtQ9bsj2h3suAXuFPOgc7DHO10yQPaHFrjNMnF1yQHNrliZfFxtme+Z cJOH2Gas7oGsuCp5Y4jNLwTIi8A+9weYw7bc41AC0kw9gorrijnbeCl1k6Loq6TeVwqb wAiHDbUKEJTJY5v1REgR+1KCE/ggKfVOUTDLjRGP1RLWm6Y0wtHMHBriNuwVNoV/yHiq 3YoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aZ5FTHPU/ylRTZiCgLf/mH9jA0Dpyhx7KIT258nAZfw=; b=lxY3LPpxmIoV/0wblB6GBPtbeV2/CWnFqvzaGyBkcWYWsC1VcrQoZ5onjGPUaWrFaG 9m5YqyKURJGfZB7OTEwRvBo4CTTCanIlBKRey5OYixcLql7gbDHN1tpCJap4Ww4wy215 z+51cAySXTLIqnga1BRx4egL0SY9pSZpz/kJJPpNUsOOLQh8tV9MhrWZ+3fHNEU0mxMq y+NkoJRBETJ/8Xc9NnQRwVhZ6VcG5Aw05U/ge+ymcRVDXrbZT9Uy6wGdicjH19F/ZhCu qPTsTVmE6vtshezZtd8Fj2+H9LKOMbbdOtGsorJxMD2y5C/JMVWIlIZYi+P6B9XUfZKC WQ9Q== 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 w123si577588pfd.14.2018.03.13.11.38.25; Tue, 13 Mar 2018 11:38:39 -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 S1752226AbeCMSdw (ORCPT + 99 others); Tue, 13 Mar 2018 14:33:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:53434 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412AbeCMSdu (ORCPT ); Tue, 13 Mar 2018 14:33:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E5A17AECD; Tue, 13 Mar 2018 18:33:48 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Peter Zijlstra , Michal Suchanek , Kate Stewart , Greg Kroah-Hartman , Philippe Ombredanne , Nicholas Piggin , "Tobin C. Harding" , Mahesh Salgaonkar , David Gibson , Al Viro , Michael Neuling , "Oliver O'Halloran" , "Naveen N. Rao" , Madhavan Srinivasan , Masami Hiramatsu , Andrew Morton , Balbir Singh , Sergey Senozhatsky , Christophe Leroy , Andrew Donnellan , Daniel Axtens , Russell Currey , Joe Perches , "Bryant G. Ly" , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , linux-kernel@vger.kernel.org Subject: [PATCH RFC 0/8] powerpc barrier_nospec Date: Tue, 13 Mar 2018 19:32:58 +0100 Message-Id: X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this is patchset adding barrier_nospec on powerpc. It is based on the out-of-tree gmb() patch and the existing rfi patches. I do not have the tests for the Spectre/Meltdown issues available so this is untested. Feedback on the general approach as well as actual effectivity is welcome. Thanks Michal Michal Suchanek (8): powerpc: Add barrier_nospec powerpc: Use barrier_nospec in copy_from_user powerpc/64: Use barrier_nospec in syscall entry powerpc/64s: Add support for ori barrier_nospec powerpc/64: Patch barrier_nospec in modules powerpc/64: barrier_nospec: Add debugfs trigger powerpc/64s: barrier_nospec: Add hcall triggerr powerpc/64: barrier_nospec: Add commandline trigger arch/powerpc/include/asm/barrier.h | 9 ++++ arch/powerpc/include/asm/feature-fixups.h | 9 ++++ arch/powerpc/include/asm/setup.h | 11 +++++ arch/powerpc/include/asm/uaccess.h | 11 ++++- arch/powerpc/kernel/entry_64.S | 3 ++ arch/powerpc/kernel/module.c | 6 +++ arch/powerpc/kernel/setup_64.c | 72 +++++++++++++++++++++++++++++++ arch/powerpc/kernel/vmlinux.lds.S | 7 +++ arch/powerpc/lib/feature-fixups.c | 38 ++++++++++++++++ arch/powerpc/platforms/pseries/setup.c | 38 ++++++++++------ 10 files changed, 190 insertions(+), 14 deletions(-) -- 2.13.6