Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp38353lqb; Thu, 23 May 2024 10:06:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7VwUa0U6l55CDD1K6QRLnUKSLXUkRr0pRoH5pLNTJGLoI/mBPTkr3LCn2VOIcLW8mO5XrWGlMVDAHihpBVoqGyWEf8EfR/DhvVn5PMg== X-Google-Smtp-Source: AGHT+IH6wY0xN0u97vJVTP1VY3keg1JPZHA7avJOpz50fQj7d174ILabBoJpavDyvanWCa/h7EV+ X-Received: by 2002:a17:903:11c6:b0:1f3:2b1:27d5 with SMTP id d9443c01a7336-1f31c9f010emr62361825ad.45.1716484008141; Thu, 23 May 2024 10:06:48 -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 d9443c01a7336-1f2f497282csi8582995ad.289.2024.05.23.10.06.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 10:06:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187814-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=neutral (body hash did not verify) header.i=@oracle.com header.s=corp-2023-11-20 header.b=hnuYLmg5; dkim=neutral (body hash did not verify) header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="psWWbb/3"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-187814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 8837EB23796 for ; Thu, 23 May 2024 17:04:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 814758174F; Thu, 23 May 2024 17:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="hnuYLmg5"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="psWWbb/3" 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 1731674E2E; Thu, 23 May 2024 17:04:17 +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=1716483859; cv=fail; b=p5P4DDqZUFQp00i1OJ5pqi9Yp5pZxmaLkVGjib6gGceg4nf29O99z9PEXb70RSvHqzWqgSkMI/XOWMstnhkS96cRIh5u1tcrXL9tew0UGp+IPPpFGkGbCdOR45O95t1lx4Ngi5Zxc4qMOMyl7y/vl3QwqvI4KD274Z+kBBPh0Ng= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716483859; c=relaxed/simple; bh=IOALea098O3EZLD6pJEFy+0ogbRPl/H7ZbWVpykFd64=; h=Message-ID:Date:Cc:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=RGSE3b5XyPX6xgNstcTEoe+KqoElwNHwiMiWONCERYd1Ofo0Xll5j3e0h204l/kQ2ul3MNd0KEusqYwwowXH52C54Ej8q2xFGbt1z0Nc1WR0EjiTDvaykXtYTSRDN5z7voz4haCrBjaTSu7wFLWseZhw4pEgJhAtqHnWAR0MBuI= 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=hnuYLmg5; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=psWWbb/3; 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 (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44NGscwa011918; Thu, 23 May 2024 17:03:31 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=YWTutBQeO7eifcng0PfekgD1pjT46LCgGELg9QilaaU=; b=hnuYLmg5KdK+XfjpSDMliJ7CMDRlcvVP6Y7bBJfm0ZgLLRHjKREaGptGjZCCXf0ELTw+ UylRAftAMU/AF8UDteYfI88FuSJxqshNMvBLlKzG3C/Wl/TcPwxQ2RJLVqv4OIU8QKw0 29GYNWaGF++1cBWpBCxAiq/yLmdKOlKH8LSsfUdP9pLsiFCw+/4kaSAh0AW2qim+DmLd binpyGUOM132eFfNdgi80ZCwjm1vSJkl7ul9rAMtyTfxM+jnoR4cbMGg6L4UEp1sHNHz iQNX82U+MJH3h6C+OOFCcR7rNdg3CcqSyDR7bY4il80GWF2aEMjPjDi3cz1VkRo5sLYN Cg== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y6m7babv4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 May 2024 17:03:30 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 44NG6qYC002820; Thu, 23 May 2024 17:03:29 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2168.outbound.protection.outlook.com [104.47.57.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3y6jsau6mr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 May 2024 17:03:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FKb5OA+v85SBJNmI9xT8qKFznJaFuJNGH5VudI9H+s4sXNMQhrCd7xy3X1l3oJvEtSSoadV/giFJgeRRaE269S+fio1mqb5voxbwxFC/11vYPo3DVa/PkfX0pa9sX4mwHMsHnlmFhSkOvOJKafMDymf4DRKOCxxnjmZmgLDgRZQ0VPft6+U/jfz+Ywf1BjACd9ctvo6TUSj1pj0QZCpO2G5cL08YhOSI64diYRUJjtwXPI9TVZqcTe06QWN7bwlzOzivRJYmmPaiZSTaQvYbdHBAzZZrEYECA9rd5IQ+Rj7HuOxGIoZsE3Xqgy9YkHXVZyBht7d0l+3PmEU8ntnlHA== 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=YWTutBQeO7eifcng0PfekgD1pjT46LCgGELg9QilaaU=; b=csN8hmMGdENDaL+BBPfNNLfAHdPdnl6Gimw5MG5G0LeXdwUo890CtYNohoudDoa2e7VskmB69Un6UBjs3usPrCgU9u49b583RR4EYuZDHLRrFVqgXaLij0UGqevf21DMsa18NyRYATI2ZDJv8k7WxXnrOFeeVDnD4sPWiKfjNBow4ikdXEaSSf9VFq2q8i9i3eWSoNaK3ywfk9nLmU68/UoB8kSsjymAjKCcTkJ9bIyWZQS0JvaNP6Pm46K70w6h7No8fkhLTrIg2Ott2gwOK8exGNPFzuAbP4JvuXDLIm/6Y0wzrDd8wctZcft7W622r3WPjRHxMAZEohzC8p+qWA== 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=YWTutBQeO7eifcng0PfekgD1pjT46LCgGELg9QilaaU=; b=psWWbb/3US7YVBdj9ASsIj6/RAiYXfr6YFj7YNEZVlq2G6B+9XyEFFv8rcrKTJbj4VeD2eO6jI/O8/6hwQSX4TLmuBWXsRipObtSrZcECFBoXw+Yw9XxvFIy1DpZ80F7s/AhsoDuT5CMqqhr+03Z63roRYBXjkeKHxDrllHD8aw= Received: from SN4PR10MB5622.namprd10.prod.outlook.com (2603:10b6:806:209::18) by LV8PR10MB7798.namprd10.prod.outlook.com (2603:10b6:408:1f7::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.20; Thu, 23 May 2024 17:03:26 +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 17:03:26 +0000 Message-ID: <5ed7d3c8-63c3-48f3-aaeb-a19514f4ef5e@oracle.com> Date: Thu, 23 May 2024 19:03:21 +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, andrew.cooper3@citrix.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: 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> 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 bKlrCoyxtOfr/PFjmXhwGPGktzOq04p6GadljXLuq4KBzRqAynH0yd0kQMuPvQHie1yWVD0G /zS9z2tkARkR/UkO+HxfgA+HJap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guNXc9uBp3gkNfk1sfQpwKqUVLFt5r9mimNuj1L3Sw9DIRpEuEhXz3U3JkHvRHN5aM+J ATLmm4lbF0kt2kd5FxvXPBskO2Ged3YY/PBT6LhhNettIRQLJkq5eHfQy0I1xtdlv2X+Yq8N 9AWQ+rKrpeBaTypUnxZAgJ8memFoZd4i4pkXa0F2Q808bL7YrZa++cOg2+oEJhhHeZEctbPV rVx8JtRRUqZyoBcpZqpS+75ORI9N5OcbodxXr8AEdSXIpAdGwLamXR02HCuhqWAxk+tCv209 ivTJtkxPvmmMNb1kilwYVd2j6pIdYIx8tvH0GPNwbno97BwpxTNkkVPoPEgeCHskYvjasM1e swLliy6PdpST In-Reply-To: <93510641-9032-4612-9424-c048145e883e@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR04CA0015.eurprd04.prod.outlook.com (2603:10a6:208:122::28) 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_|LV8PR10MB7798:EE_ X-MS-Office365-Filtering-Correlation-Id: 29f91c45-f152-4b55-c64c-08dc7b4a4336 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005|7416005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dEdhVnNuUEhZZnBwYlJlSWRWL1lLeWxEL1NTVEdVMWpoam10ajlRSzZEYXVk?= =?utf-8?B?T3pidmEvSzkrU1h0U0V5MXUvQWZpUEFQS3ZxUlp2V1M4SVJ0amt0MTZ6THhC?= =?utf-8?B?ZzU0cTF4ZU5aMVI0T21LQnJWNE5TVDJRVE4yRENZZFIza28zSlJYREF5OEhY?= =?utf-8?B?UStUZ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cFlOcXNjczhJcmp6ZEVEY0tLNkpWTmVkWmdoR05icHVyYUJwT0NvclRH?= =?utf-8?B?Sk5Eem5HU1NxUXJ2YUZOdlo4ZzAzVFZUMlNrNU95RWFuQjYwNzZMVUl4V1pF?= =?utf-8?B?Q3pJckN6Nkw0ZGRRUUVWcTNlZ2JtT2lDUjdxR2IwMEVteFU1RHNRS2lWenVJ?= =?utf-8?B?bFU0VTZXTm1rZHFCVEFNVVEzK2tTODAvdlJwajBxN2tGcXVlZmVGMUdINVVD?= =?utf-8?B?OXcyVUZIaXRUSTdyVXozWFd1RVh2TGI2SFZZbW14dVZScHVFTUhGSFJ5ZDF6?= =?utf-8?B?UVUwd1dLUnhDWXZqc0lUMnlnSWpFaU5sWGxXdzU0aDI0ZkhJZXQ1MlZJRmV2?= =?utf-8?B?K09tZDU3YmFyNlNIQVNSOFNWL2ZZQ1F1OHlNcTZkc0VvaGxDSGdCTHNDSkNI?= =?utf-8?B?SzdycGpqTENtQkErMEo0WFI5Q1ZPMi8xUURaMUptUkNLWFNFSVlISVlLOXBE?= =?utf-8?B?aWZuK0xYK0VjMDlqSlIvRWY5Z2N4cHhvd2NCOTZvbXJjUHhVeW1oSnAwSktG?= =?utf-8?B?Mk9SeHFnL3g2ODZLYnNxQTBFNEJadEpPNncyY2JWUldCQzk2SFgxeHBZMzhZ?= =?utf-8?B?ckxPOG56TFo0WmJlK2laVUMwckYwdjFNTVh5RStzZjNkQ2Rwdko2VEp3PT0=?= 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)(1800799015)(366007)(376005)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RFZtOFl3OXpvbEduRWt2aGJYY1hVeHJsSTE3OHpqSUxiZTI2Z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fV8xTCrffWbFPlDlOm3fnEsHl5ivFaUbAzgRdhJ7ZGI= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29f91c45-f152-4b55-c64c-08dc7b4a4336 X-MS-Exchange-CrossTenant-AuthSource: SN4PR10MB5622.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 17:03:26.7554 (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: g1xm7ZcH+iCt3iUxSwyn6lRD3bEwlhLnR4hhYf92l+wpxqhAKNYSIzqr1nmG8eszyPC0pUKkY83NC1ju4lgRsqYWLQ34sUCZwATibTtW0Fg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR10MB7798 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_09,2024-05-23_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 adultscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405230118 X-Proofpoint-ORIG-GUID: r5DvVmC3vTp9V-qsrt4DzlP7Ne1-SdsC X-Proofpoint-GUID: r5DvVmC3vTp9V-qsrt4DzlP7Ne1-SdsC 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 On the console: [ 1546.656252] WARNING: CPU: 124 PID: 8413 at arch/x86/kernel/traps.c:1009 exc_debug_kernel+0xd2/0x160 .. [ 1546.656352] RIP: 0010:clear_bhb_loop+0x0/0xb0 alex.