Received: by 10.192.165.148 with SMTP id m20csp804606imm; Fri, 27 Apr 2018 07:48:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrOFWYjO8tntV2/ufHxI1ds3ycVqRZqr6/qzXDHnhymdpmVOW1x4PVXGxOQI9u5V0vcUojR X-Received: by 10.167.128.207 with SMTP id a15mr2474102pfn.116.1524840481772; Fri, 27 Apr 2018 07:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524840481; cv=none; d=google.com; s=arc-20160816; b=maXjz6IQbbH3dDBviZu9+gAIEIbFcP4QNl/EC/AL/puuluA6fDVZjEwzcg4zoRDPjl htmnFT+xEAsWbT5NUDfuX+rJkFN062BlTMMM0i014xDdVYPPuVfVs7hcKGQgvo5u1kJp zEQEAtBr3ROnsXGBV1jAJSYLm0CZ/dWzx2kHtU///65+HHEZ9w8SabqcePfTYWvJ0QW2 R09bG+qHJCPAALP6+dYMsJvxVh+r8z9/16HM/Z7DlTgKzfI6Gas876bXEoq2q93apkHn XqdnfssK7ofH2QvHl34VPwYCVkURtrZPjF7lvcpwHZynYgI8f22quymBACYPYCxhW+Yx 3U3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=rlSwnbx7IGGQ8tVHZWYE9TwXNSOt5iBbDNYyKQbgQOA=; b=UldlL6O77BwcztdRIuooF4g+l13aDlirV+M+9saB/1f+6MDBvtKjW6gZ3V73gS5fWe f3rIwQfoult3YTyUmBZWaq1asdwDTYZ0tg9IHqq6hF2mEzDi+1PBOF5H68UwTtdpKDJu s33ReP19dG97PusevxSYqqxizdROQcZnTKgQ4vjviKvBR3Due6G+mb0Tb6piA1cepzCw eGwlryXrfeQlSb11cUtbo2NO6cR22Iiq9uvkWs0YIlli9+zIpusXVVRBcYyJ7tKDo3re ydY+fnUxmGn9BnpDQuuJ6k2gTpkxxz1t5ekSw18ojtSu8inDReEghJEzCOpSW08EtcxN F2mw== 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 s15-v6si1380243plp.243.2018.04.27.07.47.47; Fri, 27 Apr 2018 07:48:01 -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 S934557AbeD0Oqn (ORCPT + 99 others); Fri, 27 Apr 2018 10:46:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:53692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934393AbeD0OH6 (ORCPT ); Fri, 27 Apr 2018 10:07:58 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 910F121892; Fri, 27 Apr 2018 14:07:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 910F121892 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Schwidefsky Subject: [PATCH 4.14 53/80] s390: do not bypass BPENTER for interrupt system calls Date: Fri, 27 Apr 2018 15:58:46 +0200 Message-Id: <20180427135735.630826274@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427135732.928644313@linuxfoundation.org> References: <20180427135732.928644313@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Martin Schwidefsky [ Upstream commit d5feec04fe578c8dbd9e2e1439afc2f0af761ed4 ] The system call path can be interrupted before the switch back to the standard branch prediction with BPENTER has been done. The critical section cleanup code skips forward to .Lsysc_do_svc and bypasses the BPENTER. In this case the kernel and all subsequent code will run with the limited branch prediction. Fixes: eacf67eb9b32 ("s390: run user space and KVM guests with modified branch prediction") Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- arch/s390/kernel/entry.S | 1 + 1 file changed, 1 insertion(+) --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S @@ -1375,6 +1375,7 @@ cleanup_critical: stg %r15,__LC_SYSTEM_TIMER 0: # update accounting time stamp mvc __LC_LAST_UPDATE_TIMER(8),__LC_SYNC_ENTER_TIMER + BPENTER __TI_flags(%r12),_TIF_ISOLATE_BP # set up saved register r11 lg %r15,__LC_KERNEL_STACK la %r9,STACK_FRAME_OVERHEAD(%r15)