Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp88254lqb; Thu, 23 May 2024 11:32:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtS7jb4zVpCJGeA1ofs3nI81N1Pv+ioWOwq1Rci9IbpI91mqKFENR5klup6Pr6k6owyAKsZlF2I2nUsIfYQyEX0j8SwtQIV3J2NdwPCQ== X-Google-Smtp-Source: AGHT+IHyfLD8eRdKX3hXtxFXeUOE87/G+srRcy38kp5mNFHhxMHugN6Hd/HkeCLKi1m0UvZGgm2n X-Received: by 2002:a05:6358:9f8f:b0:197:3d6f:ccf6 with SMTP id e5c5f4694b2df-197e4e6b060mr27225055d.1.1716489177306; Thu, 23 May 2024 11:32:57 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-65a742ad5c8si5079087a12.742.2024.05.23.11.32.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=LeOzc9oE; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=L9BJ2mO4; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-187881-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187881-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A21E9B20B3B for ; Thu, 23 May 2024 18:31:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5530282863; Thu, 23 May 2024 18:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="LeOzc9oE"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="L9BJ2mO4" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1939B20DF7; Thu, 23 May 2024 18:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716489076; cv=fail; b=mc6QwGjdH67eMQKecm/txvSqGNgb4Clu0O3FmsRS+00zTQomH32heNgRr9of2EIxtwZJ49jTlHe15ZBdC1EI8OhSRz6koRLMIgnwjEvAoa4ShX6ke+MvVWNOrv6YABjwxCk+RHTVHLh/ziJ8G3gu76wzyk7QIKtQ+tslQOGHtfo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716489076; c=relaxed/simple; bh=YRMEoF+BK6Bs3/zg3tXRrEs4L7HV22D5EqFBo5q3eBE=; h=Message-ID:Date:Cc:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=pTZs3eKPawtOXX7s49i8OGQsHeqDsDqhab2IsOuwd4/rS0V28yw9/W2sWfmcKERGw3Nl6zlzJU6CQt7mo6KhBCDUyU5auS3DgJTsrEptnbvi/E7PSpWoMcNlVIhtG+LXx6hRTmO51BIzGqMzORm6Ec5/bC25mZee41SXE58Pc5A= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=LeOzc9oE; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=L9BJ2mO4; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44NI7jwq006721; Thu, 23 May 2024 18:30:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : cc : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=r3WQ3jSHp1Xxj4q6mgTpKiRyLyq6xJ6r5YbhVL6tJ4Q=; b=LeOzc9oEIXZuHcWt0uos1cKUY5Q83KGwRzXw1mNmnlNTfSuTfeSiu16yLYALoZKacKzO LD3At8zxmzyzt87NrtNHke9qABh71BnXDzNwrt6riCscP1/GMa0tSPxYDHSFLUMUoXXb uxR8uBQwzrX/g3qmmeNJF66DjiN+lgyCwC7qZ5oQnugOuiAaebJSUt8buWcQM80vjxXa E4kNdXnrmbaH/l2MwO7jA9jOzyS7hihia54DWFnRe6rlzwjzOv0TnBBel1lESRtFaUvv PeSWc7yK2l+tNu6A06rNXoDuPwuTJ1W4iai5cEW6Ozl29qfj4ubK3dcztiVU+5ZZm7U3 zA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y6mvvav4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 May 2024 18:30:56 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 44NGxSXE013792; Thu, 23 May 2024 18:30:56 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3y6jsacy4w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 May 2024 18:30:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xarsnjy3iPtkTL0jDaPPmPGWUs4wOeJFG58DtEBOuv5cYCqwNFVGo1T0grHmweI7hYpzlA6m4pHoY7mgE/WCXiFmF7RQS2HXd0n0YRc6cAVt9ckgO3TXUB3nG7iQiMettoX73x3HJH9AYlsKY+wlq6oGg3sfxSiAR9bkJAg6s0uDLavkrg3Xiqa7H9/GDND+fmBxmkpeCh2ezooGWUuyGfpHZdrYJ6Udv9lw6yy8aBp92uFhoZgfvOQUmB0/BXhNIYjJ54g9tSKwGSfmc3al4VfcB91GkZ6jKm516vhiai7G9Sxs0H0ng/plqfqjFqgPlYDOcfU9UNWQV4z7yCVGHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r3WQ3jSHp1Xxj4q6mgTpKiRyLyq6xJ6r5YbhVL6tJ4Q=; b=WitCmFaxNY8AX48ekxHGiNApZ+OPv3BGiQpiV6p02MhIFQq7P/lZOV11z9KlCRmKrVbMPLuGWjGoVJ0YOkFcyxJi5HXgKwsntO53YAGPggVv0DvG1yw96KOy2fvJAcHYblOARaNls3CWg7xS7vWH6V7RfSY24PQoV2ZuWnvqRBTh0ADzfjxxMBq8yi7dkxjkZCg4mRW2APlRgmvozOxf5ndZEqmqAYrkx20Mu0fsUujtvh44ML+nNC9T84yOgxy9ecVoiC3IZHVJfDUEvk+5qxqiG+KxalGSiXXl6v/vfUFhumjdK0uGM9BnIy06vpkwxCUexIsIoh9L1a7ZqpcfKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r3WQ3jSHp1Xxj4q6mgTpKiRyLyq6xJ6r5YbhVL6tJ4Q=; b=L9BJ2mO44PSO/lmfvnYc+oi3s9VhWXHFRRkHQL2H5Aa9qTE+RZ6QAttaydcLsntZVUkJyXUqEgzvfyvKkD96RyAiBLVIOvbMrpvUIWZI1rZTi9Qo8cu02ipxJv0vUT/SFBHMF9nAnf0STvZrVVbqJtatqXgZBJSHhax2aU+fKdY= Received: from SN4PR10MB5622.namprd10.prod.outlook.com (2603:10b6:806:209::18) by BN0PR10MB5063.namprd10.prod.outlook.com (2603:10b6:408:126::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 18:30:50 +0000 Received: from SN4PR10MB5622.namprd10.prod.outlook.com ([fe80::6bce:37ef:d1de:d084]) by SN4PR10MB5622.namprd10.prod.outlook.com ([fe80::6bce:37ef:d1de:d084%6]) with mapi id 15.20.7611.016; Thu, 23 May 2024 18:30:50 +0000 Message-ID: <3cadb384-3493-4f36-a0b9-a3dffbf9fa9f@oracle.com> Date: Thu, 23 May 2024 20:30:44 +0200 User-Agent: Mozilla Thunderbird Cc: alexandre.chartre@oracle.com, linux-kernel@vger.kernel.org, daniel.sneddon@linux.intel.com, pawan.kumar.gupta@linux.intel.com, tglx@linutronix.de, konrad.wilk@oracle.com, peterz@infradead.org, gregkh@linuxfoundation.org, seanjc@google.com, dave.hansen@linux.intel.com, nik.borisov@suse.com, kpsingh@kernel.org, longman@redhat.com, bp@alien8.de, pbonzini@redhat.com Subject: Re: [PATCH] x86/bhi: BHI mitigation can trigger warning in #DB handler Content-Language: en-US To: Andrew Cooper , Dave Hansen , x86@kernel.org, kvm@vger.kernel.org References: <20240523123322.3326690-1-alexandre.chartre@oracle.com> <1c69f62e-0dee-4caa-9cbe-f43d8efd597b@oracle.com> <93510641-9032-4612-9424-c048145e883e@intel.com> <5ed7d3c8-63c3-48f3-aaeb-a19514f4ef5e@oracle.com> <0fcbfcba-9fe2-414c-8424-347364fcbf35@citrix.com> From: Alexandre Chartre Autocrypt: addr=alexandre.chartre@oracle.com; keydata= xsFNBGJDNGkBEACg7Xx1laJ1nI9Bp1l9KXjFNDAMy5gydTMpdiqPpPojJrit6FMbr6MziEMm T8U11oOmHlEqI24jtGLSzd74j+Y2qqREZb3GiaTlC1SiV9UfaO+Utrj6ik/DimGCPpPDjZUl X1cpveO2dtzoskTLS9Fg/40qlL2DMt1jNjDRLG3l6YK+6PA+T+1UttJoiuqUsWg3b3ckTGII y6yhhj2HvVaMPkjuadUTWPzS9q/YdVVtLnBdOk3ulnzSaUVQ2yo+OHaEOUFehuKb0VsP2z9c lnxSw1Gi1TOwATtoZLgyJs3cIk26WGegKcVdiMr0xUa615+OlEEKYacRk8RdVth8qK4ZOOTm PWAAFsNshPk9nDHJ3Ls0krdWllrGFZkV6ww6PVcUXW/APDsC4FiaT16LU8kz4Z1/pSgSsyxw bKlrCoyxtOf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itkKTpVlaK jnJ7uOvoYwVDYjKbrmNDYSckduJCBYBZzMvRW346i4b1sDMIAoZ0prKs2Sol7DyXGUoztGeO +64JguNXc9uBp3gkNfk1sfQpwKqUVLFt5r9mimNuj1L3Sw9DIRpEuEhXz3U3JkHvRHN5aM+J ATLmm4lbF0kt2kd5FxvXPBskO2Ged3YY/PBT6LhhNettIRQLJkq5eHfQy0I1xtdlv2X+Yq8N 9AWQ+rKrpeBaTypUnxZAgJ8memFoZd4i4pkXa0F2Q808bL7YrZa++cOg2+oEJhhHeZEctbPV rVx8JtRRUqZyoBcpZqpS+75ORI9N5OcbodxXr8AEdSXIpAdGwLamXR02HCuhqWAxk+tCv209 ivTJtkxPvmmMNb1kilwYVd2j6pIdYIx8tvH0GPNwbno97BwpxTNkkVPoPEgeCHskYvjasM1e swLliy6PdpST In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO3P123CA0032.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:388::8) To SN4PR10MB5622.namprd10.prod.outlook.com (2603:10b6:806:209::18) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN4PR10MB5622:EE_|BN0PR10MB5063:EE_ X-MS-Office365-Filtering-Correlation-Id: e450b140-34e7-4642-643f-08dc7b567892 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|7416005|1800799015|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?WDVEN0ZlZlFYMllqYjMzQnNCT2pGeHg0UysrNDRzYVJkUncwSDZEVTB6TktH?= =?utf-8?B?QWhqTUhVaDMvc2MrUDRWbmo0R0l0dXRuekI5L29MSUdYQjNmc29aaUhpVzdW?= =?utf-8?B?M2E1bEhaTkp2QTYwQU9DNn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sm5MYi84NTQ5blBQZ0JWUE1wdkIyZFNMa1FpVll1YlZpOWcrcUJTWkVhSkp1?= =?utf-8?B?WXdSNXhLL0Vhakh3VENscjVPQTdDR0J0c3VwRlFxSmRLWVlYenNVWEIzMm1h?= =?utf-8?B?cTlhdnpidTZoVGE5R0xGSVBkTitBS3pEWjFlUDR5VnNkdWVnOEJJL1p3TUtt?= =?utf-8?B?ZTY2Nk5iMUN4dWJibFpacklGdEU4RjhodHcrbTU0UjNWVXMvb1U3SjBoTVNM?= =?utf-8?B?bkF0bkYrem43ZWhadWdNaDcxaVhiSk81T3NzcHk0aXhvRVR4Ym1BbkJ1Y1h5?= =?utf-8?B?ZEM1OXBFYnRtS1I1dVQ4My94THE2ZXplbUQ1bzRScmwrRk5iY0pLbE4xZjdu?= =?utf-8?B?d3pYZGhSVjBJTGwzTlJDTEh6WkljVjRvTHZyMllGWUdhcHBKNEpPdHRySUx2?= =?utf-8?B?ckhsd1RldVYvNHVkbE1CVXdrM2syT3JBVGtUL2p3em9RV1krR0VGZTFsaStV?= =?utf-8?B?Mng0V1VuVFVRNk1BbXRwRzBjUDd2ZktsdGk1bklpR0F3aytKVEhPdFYyVTRv?= =?utf-8?B?ak5TeXJNUUhvbk1aaVdCbWpEUXE5UkwzcWUzb01vK0llMEowRmQ5bVYrT1pK?= =?utf-8?B?MDAyK3pvTVkrdE5wdW9CU3EzZThhSzRvaldUUzRwRjU2cEQ0TnNPRnAwMi9S?= =?utf-8?B?MkZrV2U5alNMVFBLTU5qT2pJcE9wREFIUVN3cDNDN3dJMXFKT05uTkF3PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR10MB5622.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: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JTeTpgKmZd5UIjP54RQl1WsWlSMAwc6NhmvfaTg94nBqFYdrtjRGWyTOpJseT2aCMiIAEXiZR7scSkNYW4yrqLPpujBuEY= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e450b140-34e7-4642-643f-08dc7b567892 X-MS-Exchange-CrossTenant-AuthSource: SN4PR10MB5622.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 18:30:50.1941 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: n5goMUVm8z/5sM7INTUiA+G2ERjyw0VM0ZyBLK6bA1tHDuY76h37MAOfyqMdc3aZjlKNsg/o0wdBiI0LBIUaGBuyEnYQ2w/+GYNICZnYHdc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB5063 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-23_11,2024-05-23_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405230129 X-Proofpoint-ORIG-GUID: LzEmcPLsYm8XILRAThA6G4VE4E9HLm-y X-Proofpoint-GUID: LzEmcPLsYm8XILRAThA6G4VE4E9HLm-y On 5/23/24 20:27, Alexandre Chartre wrote: > > > On 5/23/24 19:53, Andrew Cooper wrote: >> On 23/05/2024 6:03 pm, Alexandre Chartre wrote: >>> >>> On 5/23/24 17:36, Dave Hansen wrote: >>>> On 5/23/24 07:52, Alexandre Chartre wrote: >>>>>> Should we wrap up this gem and put it with the other entry selftests? >>>>> >>>>> It looks like tools/testing/selftests/x86/single_step_syscall.c tests >>>>> sysenter with TF set but it doesn't check if the kernel issues any >>>>> warning. >>>> >>>> Does it actually trip the warning though? I'm a bit surprised that >>>> nobody reported it if so. >>> >>> single_step_syscall does trigger the warning: >>> >>> $ ./single_step_syscall >>> [RUN]    Set TF and check nop >>> [OK]    Survived with TF set and 26 traps >>> [RUN]    Set TF and check syscall-less opportunistic sysret >>> [OK]    Survived with TF set and 30 traps >>> [RUN]    Set TF and check a fast syscall >>> [OK]    Survived with TF set and 40 traps >>> [RUN]    Fast syscall with TF cleared >>> [OK]    Nothing unexpected happened >>> [RUN]    Set TF and check SYSENTER >>>      Got SIGSEGV with RIP=ed7fe579, TF=256 >>> [RUN]    Fast syscall with TF cleared >>> [OK]    Nothing unexpected happened >> >> :-/ >> >> What about the exit code? >> >> I find the absence of a [FAIL] concerning... >> > > $ ./single_step_syscall > [RUN]    Set TF and check nop > [OK]    Survived with TF set and 26 traps > [RUN]    Set TF and check syscall-less opportunistic sysret > [OK]    Survived with TF set and 30 traps > [RUN]    Set TF and check a fast syscall > [OK]    Survived with TF set and 40 traps > [RUN]    Fast syscall with TF cleared > [OK]    Nothing unexpected happened > [RUN]    Set TF and check SYSENTER >     Got SIGSEGV with RIP=bb44b579, TF=256 > [RUN]    Fast syscall with TF cleared > [OK]    Nothing unexpected happened > > $ echo $? > 0 > > The program runs as expected (but it doesn't expect much than a SIGSEGV). > It triggers a warning from the kernel but it doesn't check if a warning > was produced. > Actually it checks that TF isn't cleared after the sysenter, but that's all. alex.