Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp689699pxb; Thu, 14 Jan 2021 16:37:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2AwtXbJKzcF6Zby3qZIy9nJnOlY6A/rx3zisDwZEIlB/PdWDiwaIkwcukHwbCEdwLX205 X-Received: by 2002:a17:906:26d7:: with SMTP id u23mr6936483ejc.210.1610671051840; Thu, 14 Jan 2021 16:37:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610671051; cv=none; d=google.com; s=arc-20160816; b=qhsR6shVwzu076sS4HSkrw7/c7DyFZRrYB3aH+/uUbdCAIcd92ykJdLwo7fCpai2un HsheivSvJZ8YtVUccX/OLKEk6iHA2j+fY7aanM8pOTco+hUburJyHDisfQ8+y8Qw3Joq 7R9aFQC7c5It8q+6t2DICVwZf6G8YXC+A1xUq7lW3vcAw4UC9XSfh2cMhd08EhMomryg oEJeErVFfFDlr77OzjuEghZZSYI5bWGzMWrCL4MZhdpA4J0gCxv9sD4kv1rgjt1fJeg2 NfXTOp5qLpGag6ysYPbvpFbJGLwXa+a9+BwjgQtwixz+WIpyaCpdQn36+GAEjak65gOd Y5ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature; bh=EoYf07ye+2pvEM8W2e9X5zV3+hXXa21IpM2ZAyZNnz4=; b=NNxAfg1MbonyaIIdYPCuTd+rTirDKMuZrLhoDUao6r6l/ESt7QG5hhgmf88WR6EwA7 un0sGLkDbPmKlvYSHuXLaxTpFcGbOIcGHpyIpP24iHsytHU2J8Ty0p5QlFfHomQWRUFw ghrWbPue1ZgH5jKmY8Tko7NH+9zLEU3Xz5ROJVbfZiovX/1FSyTqX+wyH3M6m9YOwZ+q s2nsdaFam431byv6bUumJ05VJceh09CbxAnIUOfomK0YuzDr4Bpl3MB20lPibt0+eSMA 4OpeUcvPJe9x9nSXAJ+VPwKIaYGLUr0pJ4TSPdHqTPK4OI77PwLGBFCKB7J5ug8dV7VS ymkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=XE7kWDv7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id x9si3496226eje.109.2021.01.14.16.37.08; Thu, 14 Jan 2021 16:37:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=XE7kWDv7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731393AbhAOAeM (ORCPT + 99 others); Thu, 14 Jan 2021 19:34:12 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:55444 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729048AbhAOAeL (ORCPT ); Thu, 14 Jan 2021 19:34:11 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10F0F1Sm192568; Fri, 15 Jan 2021 00:33:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=EoYf07ye+2pvEM8W2e9X5zV3+hXXa21IpM2ZAyZNnz4=; b=XE7kWDv7toO88nfu3YaqyDyntOiUkYXKCmJ+K04xbeuMnf28mzsk2SfsbUs58ZtV7rHt St3M57Q6yUYe18yF6RZ/7aNMfBVNIvd8T9WgpIE9jj42WeMhZLV+mreISV9iV310A9fB vq5DpFEg8r2DZcqjAkQG368+bB7xUZXxbzIOo4/XXonXNv8H/GDgtFVHiyNewLY+hzm0 mEcb8+f3ahXUv4WbykEx66HcZbsJ51+ZnOkJtyNbKzsASUru5K1l4snAoewjcITMXEgO u3YHq+Wu7isV65gVdsrwUr6akusatrm77HH4/1h8I5LWgDub99aC9UJvYVdcjjor17GL WA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 360kg22vm8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Jan 2021 00:33:14 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10F0GErJ137495; Fri, 15 Jan 2021 00:33:14 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 360kf2tnf5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Jan 2021 00:33:14 +0000 Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 10F0XCHX006621; Fri, 15 Jan 2021 00:33:12 GMT Received: from [10.39.240.226] (/10.39.240.226) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Jan 2021 16:33:12 -0800 Subject: Re: [PATCH 15/21] x86/xen/pvh: Convert indirect jump to retpoline To: Josh Poimboeuf , x86@kernel.org Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Sami Tolvanen , Sedat Dilek , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, Miroslav Benes , Juergen Gross References: From: boris.ostrovsky@oracle.com Organization: Oracle Corporation Message-ID: Date: Thu, 14 Jan 2021 19:33:10 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9864 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 suspectscore=0 adultscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101150000 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9864 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 suspectscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 mlxscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101150000 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/21 2:40 PM, Josh Poimboeuf wrote: > It's kernel policy to not have (unannotated) indirect jumps because of > Spectre v2. This one's probably harmless, but better safe than sorry. > Convert it to a retpoline. > > Cc: Boris Ostrovsky > Cc: Juergen Gross > Signed-off-by: Josh Poimboeuf Reviewed-by: Boris Ostrovsky