Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1324994imm; Tue, 2 Oct 2018 06:33:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV63PE2wv+jzYRUNBlnbrO/p2NbkoV0nKHWvXjPb+pjxz9DkJk60Y26WiUeCRpHYZ43UCO9tR X-Received: by 2002:a63:1a5a:: with SMTP id a26-v6mr14648886pgm.9.1538487198239; Tue, 02 Oct 2018 06:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538487198; cv=none; d=google.com; s=arc-20160816; b=06L4/09sxJpU/vLAR08MFQ7W+W6qyqEq2Bi5hHP0+7j+wHpUNsLqrkMZYNEOBaf4ty dDAMMDx5JSeHpnqKlg+tQmbkBDx2+i9CzSfzRJUz4pJrLCsmu2UaoJfBxX3o+g5VqfFV iHv9OATz4v3oCD2c9tTvgeKCZOllqWmrDuLFcj0kDDt3ckxx/z+ewP2XXxVFeZaggWpF BPv5M0EF0YbKm7Q7bk2vu/L5ASD2AuBD+XSEBb+gYcIxPowVzHyGuIwKXSKyGRUDI2Cm KukrpBVEN+nGLzyEDxj08KNKcrpNCncca6R1ps8XE6ZWvZ6ql369zBT2CYxSyVUO/GtX vzTg== 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; bh=bE8tWelq0bRUNfYspG5u7gIZahmJG1S3MBIVIRdtPok=; b=kqipmGSrknnIIz1yb7qmc2pHUnGoJEtQqPWPsVbFt/F1wpBZKMm1VaxjKSBUJpSSaE +NQ/ML/JuSnfxCl/8JGJd34O/rSrM8fsBlEAYJG93PM3TvEQFjYGxweApWkbF08lIoxa YwuoWQGnL70ivJJHALph1MkEssV6izu4N3gADlaMF9DdaSmB8urh4f3bVgW5jLuBvg4k Hne0ssx47VHHHA36ajQctxWNwy+0a4+mjlabdUtjvVA/0jYbpD0PjblsnQvnKDGd8bCH UgKLSo/U0bxpi4uwppnCIFH5eF2rFRqDoephzOv8CgaF/uTCk9kS8lAGB7oyo73kQ8kp gRkA== 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 y73-v6si3031650pfi.61.2018.10.02.06.33.03; Tue, 02 Oct 2018 06:33:18 -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 S1731286AbeJBUPc (ORCPT + 99 others); Tue, 2 Oct 2018 16:15:32 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34410 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731270AbeJBUPc (ORCPT ); Tue, 2 Oct 2018 16:15:32 -0400 Received: from localhost (24-104-73-23-ip-static.hfc.comcastbusiness.net [24.104.73.23]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5ECCAC2B; Tue, 2 Oct 2018 13:32:08 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jan Beulich , Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Sasha Levin Subject: [PATCH 4.14 030/137] x86/entry/64: Add two more instruction suffixes Date: Tue, 2 Oct 2018 06:23:51 -0700 Message-Id: <20181002132500.557978137@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181002132458.446916963@linuxfoundation.org> References: <20181002132458.446916963@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jan Beulich [ Upstream commit 6709812f094d96543b443645c68daaa32d3d3e77 ] Sadly, other than claimed in: a368d7fd2a ("x86/entry/64: Add instruction suffix") ... there are two more instances which want to be adjusted. As said there, omitting suffixes from instructions in AT&T mode is bad practice when operand size cannot be determined by the assembler from register operands, and is likely going to be warned about by upstream gas in the future (mine does already). Add the other missing suffixes here as well. Signed-off-by: Jan Beulich Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/5B3A02DD02000078001CFB78@prv1-mh.provo.novell.com Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/entry/entry_64.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -88,7 +88,7 @@ END(native_usergs_sysret64) .endm .macro TRACE_IRQS_IRETQ_DEBUG - bt $9, EFLAGS(%rsp) /* interrupts off? */ + btl $9, EFLAGS(%rsp) /* interrupts off? */ jnc 1f TRACE_IRQS_ON_DEBUG 1: @@ -630,7 +630,7 @@ retint_kernel: #ifdef CONFIG_PREEMPT /* Interrupts are off */ /* Check if we need preemption */ - bt $9, EFLAGS(%rsp) /* were interrupts off? */ + btl $9, EFLAGS(%rsp) /* were interrupts off? */ jnc 1f 0: cmpl $0, PER_CPU_VAR(__preempt_count) jnz 1f