Received: by 10.213.65.68 with SMTP id h4csp518264imn; Tue, 13 Mar 2018 11:35:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELv9zlVHdMWR5WeWHLnWJxD6hgDMf4zUKshnDlapeJcVMlaJFGMVxuKyFqBK5MfS/6XLgpaL X-Received: by 2002:a17:902:b10c:: with SMTP id q12-v6mr1453360plr.197.1520966109531; Tue, 13 Mar 2018 11:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520966109; cv=none; d=google.com; s=arc-20160816; b=oXOz6RYXyDmWv/BrZXPA6AQ2CC/UfGnnJ/qIeCxBLWDfrljG0gOp9zwAO8hRLGgZ1C 3I9e3QLcxtghKqIKg8jtU2owkMseoqGbNuKe2JLD8yxJADphUycvxCud/qLN8xSQqR8T C7l0n2RhJME24rw30mwYkRWxyokmWwJ2vyKEHQCM/hd2Uz8WUVSi1G+dUFt2hzm4rA7z kANdQWtwue2tR0zpw2Hq0NyQCguB8am8+EH7WVhglA/MI7Qe/fmKgERv+ysj0ngo2pFJ kSbPuDt5unxdG7lHo5ePmDE7lqAZqCDA0aRjsMMhollCPa9i2QygkpaLFRi2CpREkinP tZSg== 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:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=28jtqkuI/3INGkGjZKgFJyOIS31V8rzqeF41hUcJBb8=; b=mNLyEE3E2uDhbhMJnB22neNiJtF4tS5H+20zyqDBcjixpNPKeW9MQOINbmXHbUoOg1 oc75DMjk4r+EzoJnQ1QNxecBjq4bzP7ZTz1cfzrKXAux+82eOtlrA66aJJY0Oku9gdDS WfCBEr+wMQfCY1cf5qVef+O+plYWIR0n+aMjGx/0rWpLok9d3jumNSKMDABhBCAzrfpC wCAHgOQy/MhXexQGVOqCGp2j50u1tBJ/7CwEuz1CPknBq4ggw9C2dXX0fWu9S3Q5Ko00 0abA5o4HmsigErTPGVPX/yFOmfzLgS7ezTsyw1bp9EDEL1D07Dh/1bqWgcZvQJyjaYP0 vg/w== 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 u16-v6si500645plq.183.2018.03.13.11.34.54; Tue, 13 Mar 2018 11:35:09 -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 S932327AbeCMSdz (ORCPT + 99 others); Tue, 13 Mar 2018 14:33:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:53527 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752196AbeCMSdw (ORCPT ); Tue, 13 Mar 2018 14:33:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 16C0BAF52; Tue, 13 Mar 2018 18:33:51 +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 3/8] powerpc/64: Use barrier_nospec in syscall entry Date: Tue, 13 Mar 2018 19:33:01 +0100 Message-Id: <7121fe11b8ecbc0dd041819d8d331324df58c0e0.1520965380.git.msuchanek@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Michal Suchanek --- arch/powerpc/kernel/entry_64.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 2cb5109a7ea3..7bfc4cf48af2 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -36,6 +36,7 @@ #include #include #include +#include #include #ifdef CONFIG_PPC_BOOK3S #include @@ -159,6 +160,7 @@ system_call: /* label this so stack traces look sane */ andi. r11,r10,_TIF_SYSCALL_DOTRACE bne .Lsyscall_dotrace /* does not return */ cmpldi 0,r0,NR_syscalls + barrier_nospec bge- .Lsyscall_enosys .Lsyscall: @@ -319,6 +321,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR) ld r10,TI_FLAGS(r10) cmpldi r0,NR_syscalls + barrier_nospec blt+ .Lsyscall /* Return code is already in r3 thanks to do_syscall_trace_enter() */ -- 2.13.6