Received: by 10.223.185.116 with SMTP id b49csp817140wrg; Sat, 10 Feb 2018 21:03:00 -0800 (PST) X-Google-Smtp-Source: AH8x224dtPtp7LbCwqstAd11oADkM2IdHEmNJAgNV4cK42266wWM5SF7KyCQ60mKW58U+bOettDb X-Received: by 10.98.117.133 with SMTP id q127mr6692624pfc.225.1518325380610; Sat, 10 Feb 2018 21:03:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518325380; cv=none; d=google.com; s=arc-20160816; b=L+w0eG9p+G4yWNeIL1wxlW42hFRLMUlLmx0DDxZdpa36m/P5uY1jVJCAdyKh3bjAF+ zWZXxt6xEaihztvyxitMM0+fNr2RoIm2azvL1k1Q4/GtU4QX0OSEV9mKplgecCAe9CxP ePW3Tsk+QrK0YzsFsc6LkBWquiaVR8717rEDgaMtv5Y4Zt2LRaRFUD3Lg46J0YxSSIbX jdzd9sCAwZG8t+Z8nOm7aOskpZzpxhcmFPQQe+LnfgrKBYKBnixi0F6XCd6u73amUmKX +QmQtaJOqub67W13KcJ3q8KYZfei/9YbW/pn7owQiPBZtRZwhmCPE3egqwyPQUzZ98la xIrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=UmCursKY8JWrpBiVGa/F3Dr9dj2SPWPo8r3P5hl/PqY=; b=Fnwl52T012Kc9S+J0/PtvvneouH8S8xjjfvcFj9243IcAv3V4sYvGgBMFXTZFmVwW3 +48lXaxIWmOtci+TJ6WgdxqYSKqIh3oDvcNXYzzgPrJpF741plnSI7weOy/r3T/KU3ZX RfDK650PZ7JlF6/vmFUxl5eR6KhWj96Kz+1xvQKqoudwMr50ezV8wUQ4M01JXp/sKD8O uWD79vO/lmxkDDZIPVtIVT4JQRXPFW5OB+2o13x/cX19ruD7pU10i3VxM5UaL9KLT6PE DH5c1Jh2DpAJWmFkpo9xzeoqBjpyvkMKuVPR2XM8ruSs8le6HBK+mEiPCJH4c2xwckJ7 0hDg== 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 e14si603079pfj.86.2018.02.10.21.02.47; Sat, 10 Feb 2018 21:03:00 -0800 (PST) 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 S1753697AbeBKFCP (ORCPT + 99 others); Sun, 11 Feb 2018 00:02:15 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41612 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbeBKEdq (ORCPT ); Sat, 10 Feb 2018 23:33:46 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekjKd-0002hO-QS; Sun, 11 Feb 2018 04:33:39 +0000 Received: from ben by deadeye with local (Exim 4.90) (envelope-from ) id 1ekjKY-0004WG-JZ; Sun, 11 Feb 2018 04:33:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Linus Torvalds" , "Thomas Gleixner" , "Peter Zijlstra" , "Ingo Molnar" , "kbuild test robot" , "Masami Hiramatsu" , "H. Peter Anvin" , "Greg Kroah-Hartman" Date: Sun, 11 Feb 2018 04:20:06 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.2 60/79] x86/decoder: Add new TEST instruction pattern In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.99-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Masami Hiramatsu commit 12a78d43de767eaf8fb272facb7a7b6f2dc6a9df upstream. The kbuild test robot reported this build warning: Warning: arch/x86/tools/test_get_len found difference at :ffffffff8103dd2c Warning: ffffffff8103dd82: f6 09 d8 testb $0xd8,(%rcx) Warning: objdump says 3 bytes, but insn_get_length() says 2 Warning: decoded and checked 1569014 instructions with 1 warnings This sequence seems to be a new instruction not in the opcode map in the Intel SDM. The instruction sequence is "F6 09 d8", means Group3(F6), MOD(00)REG(001)RM(001), and 0xd8. Intel SDM vol2 A.4 Table A-6 said the table index in the group is "Encoding of Bits 5,4,3 of the ModR/M Byte (bits 2,1,0 in parenthesis)" In that table, opcodes listed by the index REG bits as: 000 001 010 011 100 101 110 111 TEST Ib/Iz,(undefined),NOT,NEG,MUL AL/rAX,IMUL AL/rAX,DIV AL/rAX,IDIV AL/rAX So, it seems TEST Ib is assigned to 001. Add the new pattern. Reported-by: kbuild test robot Signed-off-by: Masami Hiramatsu Cc: Greg Kroah-Hartman Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Ben Hutchings --- arch/x86/lib/x86-opcode-map.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/lib/x86-opcode-map.txt +++ b/arch/x86/lib/x86-opcode-map.txt @@ -759,7 +759,7 @@ EndTable GrpTable: Grp3_1 0: TEST Eb,Ib -1: +1: TEST Eb,Ib 2: NOT Eb 3: NEG Eb 4: MUL AL,Eb