Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp339160ybl; Fri, 9 Aug 2019 06:49:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/xnk16/JiI1oF2ZhaHrYfMZmfbIzENT4EjF+imvSW3FPCawPZt/URCwr8qeccMrD/ndxl X-Received: by 2002:a17:90a:858c:: with SMTP id m12mr4120340pjn.129.1565358554661; Fri, 09 Aug 2019 06:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565358554; cv=none; d=google.com; s=arc-20160816; b=mFNmACxSfi08eM4q4G0Ph46/iEOMUQLkJ4PltcPZDEiL2V9jIn0tn5f9qWh4wnMb+/ jvqcIWw25nnm1V9L9+TslEGCITY4tFBDzMHB9CUlOVBYvdKiuRLENTfXKxkFtxemZ7e/ d7MWkSW+LJ7RK3U1mqU5L5Ydamg49gbRR3vhbv085qzdawvS/dbP7DOERzK25ndW/CL0 6vdEWhySaO9Q76KrYt+nKvVRy4nE3YevZ9tFCEI4wsm3WnUXhycekWeu44rNhokWpS1t Dni0EcmIll7HeLQXPiEnS7DCW4fEaeYTDRm3Ehl6ibpx87qzCHJKngp5yHLKTOV1+4vb c4VQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=F7Z91SYjJHncerTn/HtGuUW9/iJPJE0Rick1WRBl98U=; b=ZI7imlLqOqYhqpIYHFfVlBr8IufXU+23Hw4yCKj4pStRUa0gqh6UXkdzcZBZS6F/UT Sgl0iKVL4ikFfqKFID2K39OmAIbcvdek2ZvfYRQzFopbAc617FLzJS2GcCLFpV6vPg+F ctl3eX9pBwQi39PHceroTjtM8TBy8/Zx7OoyWpagf2Gf2c9yee/+PQgUJE4Rj8Qn63j/ aQkkB31bhSZH3dtYYij5X0ZqM/rGFVNxeHM6q/hyGtO9x59iNBitWvZDy5oBSe8uxYJ8 fIG6DehZ76b+maO0atLrmkFy5L61j2Kmcn9UUH4ISt06tI29ZNB28NceWcC5LiVv78CP +OHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gNbWFWQS; 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 v24si56593426pgk.509.2019.08.09.06.48.58; Fri, 09 Aug 2019 06:49:14 -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=@kernel.org header.s=default header.b=gNbWFWQS; 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 S2436625AbfHINrq (ORCPT + 99 others); Fri, 9 Aug 2019 09:47:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:37720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406833AbfHINrj (ORCPT ); Fri, 9 Aug 2019 09:47:39 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 60747217F4; Fri, 9 Aug 2019 13:47:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565358458; bh=yTQUjLiGg98j1+bl78Zq1HHFkNqXgz6yiBPO75nQCiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gNbWFWQSvDHPl+/qGtGVrif5TEb4ppIbOPcQ4BCk4sohFfxcd9hRwSW35WOFZe3VE wXiOUT3DET+ql4hlMam977+PrsVZ0iSDOBSLs6AukYTml1HSg03KnoGAKwwVq4yqCq YIhQDIm7rcZytnVwFoMqHl3i/LONfJ+unizU//yE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Josh Poimboeuf , Thomas Gleixner , Ben Hutchings Subject: [PATCH 4.9 31/32] x86/entry/64: Use JMP instead of JMPQ Date: Fri, 9 Aug 2019 15:45:34 +0200 Message-Id: <20190809133923.929468509@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190809133922.945349906@linuxfoundation.org> References: <20190809133922.945349906@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josh Poimboeuf commit 64dbc122b20f75183d8822618c24f85144a5a94d upstream. Somehow the swapgs mitigation entry code patch ended up with a JMPQ instruction instead of JMP, where only the short jump is needed. Some assembler versions apparently fail to optimize JMPQ into a two-byte JMP when possible, instead always using a 7-byte JMP with relocation. For some reason that makes the entry code explode with a #GP during boot. Change it back to "JMP" as originally intended. Fixes: 18ec54fdd6d1 ("x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations") Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner [bwh: Backported to 4.9: adjust context] Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- arch/x86/entry/entry_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -434,7 +434,7 @@ END(irq_entries_start) TRACE_IRQS_OFF CALL_enter_from_user_mode - jmpq 2f + jmp 2f 1: FENCE_SWAPGS_KERNEL_ENTRY 2: