Received: by 10.192.165.148 with SMTP id m20csp3968677imm; Mon, 30 Apr 2018 09:23:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZroOlRppFpO0WVrkHpGgWYCHX+uwYxCfk+6KIm4CH2ovA5n/QvkcB5ap/MreZ/ypt3OqM0D X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr12764232plb.224.1525105418882; Mon, 30 Apr 2018 09:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525105418; cv=none; d=google.com; s=arc-20160816; b=dZUyKtwaTcV+rMgqrKx32Vx0mw7/bDIKcwgdBN4lDF/IH88n2kUow3Hl61BW89nX+j kbWU8ITN+aCcIjZME9YMUW9wMphfJqT2AWjHV+3TlHvOVmlnFmpWRal+8ZJffYckrIwZ Dl82i1tufSTuY8zMKiFJ4Iy1LAdfegJI5o646CNHPbC2CGfv01aNdvNfsYJK/jdDv7DU 7BoW/lQecsI8YRHgZIiKr7dDbZvlKhcsdKrct0j2GcoAdRHhAuFJ9lfV9r6+X0vf8Er9 dJMnZsZpij3LVDJyPcbBHkiSCMYRIUvQmy7+gXpBC5pbhbkH0HqZluGF/0JGEse3JNG3 RHaQ== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=wSfBe5aHhuUedNOcOFQxQfl6PqxUJqdQxQ1thPm3dzA=; b=lxkzxxMkXh5GW2NcX5ljGTo6S/33bpdrNN1vYymk3HUL6bcjmzj5YGaLIOBX703fuy wEHBoa+CaC1q4O+RSVLWxDbnmzYO4U7ZZlyHCIYrPnHeBshlWVWKichx0AdA+pE7pX0P 8HAAOgTpkQrdxIZTwUmwdKzaFgKCvqX+SaumDQ91pMiWDp78XAYv8J9R2smTN/bRStz9 cPU6a/mYVpmQ0eZhh1MxmSmXLC68pG1iehZAPJdvPentwOp+XIXJ12IYUZodfqsPPH+o NlrrE7xfXarm/5my6eZ3ph6WCgrf0IhyuJAwVvJEgNBI1EtwiDKo2lpD2D8XQVAygtmF P51g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=aIHpeAmN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9-v6si1638663pgv.313.2018.04.30.09.23.24; Mon, 30 Apr 2018 09:23:38 -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=@oracle.com header.s=corp-2017-10-26 header.b=aIHpeAmN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755063AbeD3QWf (ORCPT + 99 others); Mon, 30 Apr 2018 12:22:35 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:60058 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754870AbeD3QVl (ORCPT ); Mon, 30 Apr 2018 12:21:41 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3UGKmUo163850; Mon, 30 Apr 2018 16:21:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=wSfBe5aHhuUedNOcOFQxQfl6PqxUJqdQxQ1thPm3dzA=; b=aIHpeAmN8NIOKNTNq1Nj4dN0QK0MgBsbwIR7bt+q7WZQuqm8dAbpYU0hHa742irxt9bz LwgSKfL20TVb3649gKhNdPo79a3v0IVJkyBDUTYcuKQHcuaH2+GnEG1cjisE9X67nWBY 6mIqH8JT4Kj6CL28wk9B6QF1FsB4brqrbj/sH1nd6UnUosqiJgCqNhuU1vxk24SygzFH lRakQw24onH7Sh1KNkN+nYD7j0l5rpg+PBAgrZjbeVZqzxOJNrsm5VJUi/mW/JvO/QgZ ZauQn10w08V6mQaa2X6FLaOoz/8akPzALKkR3Gzfr+dl+HfPCDmMqztoudVziMHNTonM AQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2hmhmfct97-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Apr 2018 16:21:35 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w3UGLYTs016577 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Apr 2018 16:21:35 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w3UGLYJv010091; Mon, 30 Apr 2018 16:21:34 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 30 Apr 2018 09:21:34 -0700 From: Boris Ostrovsky To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: jgross@suse.com, Boris Ostrovsky , stable@vger.kernel.org Subject: [PATCH 1/4] xen/PVH: Replace GDT_ENTRY with explicit constant Date: Mon, 30 Apr 2018 12:23:36 -0400 Message-Id: <20180430162339.17143-2-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180430162339.17143-1-boris.ostrovsky@oracle.com> References: <20180430162339.17143-1-boris.ostrovsky@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8879 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=434 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804300156 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Latest binutils release (2.29.1) will no longer allow proper computation of GDT entries on 32-bits, with warning: arch/x86/xen/xen-pvh.S: Assembler messages: arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (32 is not between 0 and 31) arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (40 is not between 0 and 31) arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (32 is not between 0 and 31) arch/x86/xen/xen-pvh.S:152: Warning: shift count out of range (32 is not between 0 and 31) arch/x86/xen/xen-pvh.S:152: Warning: shift count out of range (40 is not between 0 and 31) arch/x86/xen/xen-pvh.S:152: Warning: shift count out of range (32 is not between 0 and 31) Use explicit value of the entry instead of using GDT_ENTRY() macro. Signed-off-by: Boris Ostrovsky Cc: stable@vger.kernel.org --- arch/x86/xen/xen-pvh.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/xen/xen-pvh.S index e1a5fbe..934f7d4 100644 --- a/arch/x86/xen/xen-pvh.S +++ b/arch/x86/xen/xen-pvh.S @@ -145,11 +145,11 @@ gdt_start: .quad 0x0000000000000000 /* NULL descriptor */ .quad 0x0000000000000000 /* reserved */ #ifdef CONFIG_X86_64 - .quad GDT_ENTRY(0xa09a, 0, 0xfffff) /* __KERNEL_CS */ + .quad 0x00af9a000000ffff /* __BOOT_CS */ #else - .quad GDT_ENTRY(0xc09a, 0, 0xfffff) /* __KERNEL_CS */ + .quad 0x00cf9a000000ffff /* __BOOT_CS */ #endif - .quad GDT_ENTRY(0xc092, 0, 0xfffff) /* __KERNEL_DS */ + .quad 0x00cf92000000ffff /* __BOOT_DS */ gdt_end: .balign 4 -- 2.9.3