Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2195265lqo; Sun, 19 May 2024 19:08:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUr++Mjp0E4UzBGUTZaI1XrQZFWq86WVRmvUe+MylKgAMVECDTuhN8mccdhSsRiFYEof38hOptpR2Ov3qPuQCSKibxFDD/+hx572OAmcA== X-Google-Smtp-Source: AGHT+IGDeiAZv+4PG5ATrXn1jpBP1FWh6UaTAThV85AgA6OG9kHFOmhWT/EBUFcthpt4fiI0oZBp X-Received: by 2002:a50:a41b:0:b0:572:3eaa:a637 with SMTP id 4fb4d7f45d1cf-5752b411649mr4523638a12.2.1716170912166; Sun, 19 May 2024 19:08:32 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c327516si12638555a12.403.2024.05.19.19.08.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 19:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=l0kqSyXX; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-183330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183330-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 892011F21BE9 for ; Mon, 20 May 2024 02:08:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39E26BA47; Mon, 20 May 2024 02:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="l0kqSyXX" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2062.outbound.protection.outlook.com [40.107.223.62]) (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 55A329475 for ; Mon, 20 May 2024 02:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.223.62 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716170904; cv=fail; b=TZwbUw1mOqLj62+Sxjx8Ep1gYlGhxJ1dexYDS0OmcAlHzVIH2vVCT7A4Xix48PDOiv2ca8khqY9yWBIewBGDiOn7e0CYb8oATsZCxotnhsr59BnWcReFsL1usmZjKqnRj1Yw8VgaWzSXKnHmZtrqUAeL8NvDpU7LBczrhqZUOFQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716170904; c=relaxed/simple; bh=oFPGQwh9xthbvjKA5VqFH+eMWp9GjLAo2ahDCP+YU5A=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=D4YAREyvfAlHeT5NDqbPWNPsKbFYB4/jxQ8L+PIsxf17OwvdPtb6KWFjPJ3tEFBhS9cRaHsD0+NgyHzog+zHTscTiT2KNA89hyvcHWJSNdRxyEFt3stm/E2aEsSEULVbvQ65Qm1UOybaqEDoAbEnImIlM/DfKX6xdO9vD2mnomk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=l0kqSyXX; arc=fail smtp.client-ip=40.107.223.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gmh0aspuTVwvYoqFJW0mAlK7UAlIfyieAzvpSMwD9/KkJLY7snsVdbd5vT8F5NUzloJjbZ4Wi0WJz6txeOhO8Dz+floL5Ke6d8Clv2Kde6+yuyXf3Tz1W+Gi4XLa+CB1EOEQjQZZLCi3zI3GqEeUGpWEoCXFjbC3wUvxzaJv30ZE43bBPdqbRw0uEUj42OZUN4Oxb+pdC26EIbR5PngszZDyBMY+1/pPlRWzyoh4LS1+s8fj7L3tfv9ybktd+I7cPKJNG7rGWwhWiax5A1Mf/Ltg8wOeVMxcZeQ55ry/MiG08y5m3YNPlqs77iELQvfBPYwvsdUKz1wGFsm7ezBuAA== 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=q9ZtX+YMNjQbJ4I23aiHvfPqFHWDWOCcxQu3fG8vz7E=; b=JXSLCGGYdx7gXNNQb7e65TpXaSYMT3GwaNSOD7ChIBUWs+vgh8Eep3cSKKU4VYPc2Ge18+xtY12cEIF8cGThNONTkoe5lbqX6Eod0c0MJrwFpp0xsPRRl4IjYi4MK4Kazk8XewlVcOEHn98CCUIGRs2JOmUIp/FvS3MQugrcXXpLps1OCEB4VnkCct93A190UG2DEOHsVnMFY5xUaZuGQjqVLi4UN0bjmq2+HeJQ6dzUI2ACKgFOdBu/A/jyAv001cGuWV30ZSYpZbDGX0Tjd4psktvwaQkrxYJKb0690DF+MeB6P7sQBU+nMxT/n2uvoJFmD4MA26D7UwFb5aigVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q9ZtX+YMNjQbJ4I23aiHvfPqFHWDWOCcxQu3fG8vz7E=; b=l0kqSyXXenzN1Lw+UmOAhD4rsgyQkWFQAaVdgliJsjSfNZXn0T8A/Ri9GOtSZz2JIzqvjkJwqFtSqdnvg4604vexSFrvIq1yWbLGjyFXYZEJlBvaO32ZnTWQd+8XjemqOWa0mB0u8G0jjNL24Os3Brh5h0zmr7PzSrW7v5f23wmx4aP2jo8zoNpBY6bdXYY6JR+PTLEOQbkxwRLi8wAb0cqNd+0LV59PMBJCTB7GGJbrvdln2TnlshLyH7tokind6iYdUen3dxueG3ok6htoIsSt3kH3ge3T2AiKk3nqvVjFbEeshFzGMRe2LmKtjhqXKEO6FjYqZ/1xU4Lj3FeBiA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from PH7PR12MB7186.namprd12.prod.outlook.com (2603:10b6:510:202::15) by MN6PR12MB8516.namprd12.prod.outlook.com (2603:10b6:208:46f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55; Mon, 20 May 2024 02:08:18 +0000 Received: from PH7PR12MB7186.namprd12.prod.outlook.com ([fe80::515c:f534:ac0f:4775]) by PH7PR12MB7186.namprd12.prod.outlook.com ([fe80::515c:f534:ac0f:4775%4]) with mapi id 15.20.7587.025; Mon, 20 May 2024 02:08:17 +0000 Message-ID: <04079a4c-e5da-4ffb-9527-669abc18d0d9@nvidia.com> Date: Mon, 20 May 2024 12:08:08 +1000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/paravirt: Ensure calls to pv_op functions are RIP relative To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, jgross@suse.com, ajay.kaher@broadcom.com, alexey.amakhalov@broadcom.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, peterz@infradead.org References: <20240517024224.995517-1-jniethe@nvidia.com> <20240517100714.GAZkcsUqHxScXJErxP@fat_crate.local> From: Jordan Niethe Content-Language: en-US In-Reply-To: <20240517100714.GAZkcsUqHxScXJErxP@fat_crate.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR05CA0193.namprd05.prod.outlook.com (2603:10b6:a03:330::18) To PH7PR12MB7186.namprd12.prod.outlook.com (2603:10b6:510:202::15) 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: PH7PR12MB7186:EE_|MN6PR12MB8516:EE_ X-MS-Office365-Filtering-Correlation-Id: 49dfb631-eb9c-4501-ad3d-08dc7871b686 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|7416005|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?clAwaTZzd3lCa3FJalEvRVkzd0dMeU1TNG9FYzVRR1V4REVIS2g3b0tzdGJY?= =?utf-8?B?OHczMm9FdGtxdndlMHh1U0tzTXV1K3dBQ1hjNlBsRXdHWTB5aFZGczEza1N6?= =?utf-8?B?UEhWODVoTU1pQUNNa2pXZXN4dzg4Y0hmYlpPVFpiMWZXNCs1MFphVG8wSk41?= =?utf-8?B?ZmYvdGZWcTFCQ01xbTNIV0hlMHZUd0MxY2p1cGtvZFp4MUV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hraVpNdFBDWHh4aytqb2NYS3M4SU1yVnpl?= =?utf-8?B?cTF1bWdOdHNBSEs1ZWFWc2NYUDBEaUVLK29tNENoVVdyT05lc0dOYTNjeE9S?= =?utf-8?B?eE5GMDVyMmJpWGY4MU5RaWYvUXo1QTRwdjB4M1JjSittb0NIUTlxaVgzQ29F?= =?utf-8?B?ZFBJdEpiaDIrK09ndE92QjNlYm5xMm5ncjd0em1YL2lLWXVaeVE2cWtPQ1N1?= =?utf-8?B?WXJ2djJrZE9vU1l2cVd6SWtSRkFyemhGdXhmR0NQWVYrS0NPM1RuL3BtN25D?= =?utf-8?B?aVpMYUtDWTlEWjBXdUxvNk9PTXd1UWwzQzBwT1VYcDM4Uk5ua0F6N3ZlS1ZL?= =?utf-8?B?S3JIMnVBUCtCYWs4KzFRMkI1Nk5kZ1Y3N1p4Wjc5ell2b3pnMnpram8rbG9E?= =?utf-8?B?NTlydytDWXNWVUc5UE1HcWJCUkIwcWsyTG9sZHVVcEpKaEd1aENkR0hSS2k3?= =?utf-8?B?Qy9FamIzQnp6NWpsUjNBbjBVMWxKTTlDUXBvZlRqelcvREo4M0lCQlAxWmpQ?= =?utf-8?B?WFIrVXBzM2FIZUNNTEZqMFA0R3NnRDA4ckp4dlhJTkJwZUpzSjQzZXl6eHZU?= =?utf-8?B?c3dLUG5sYTRLZWJjRjJhL0FrQm8wQ0k5MkdOTllRMzhxVGI2NVhWMVdRPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB7186.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(7416005)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eWRCakRyZTRzREhnRW5aNzNNMThsdzVPUU9FbEM4OXNybW8ya0NDQW5YcXE5?= =?utf-8?B?VngrVll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FcXkxQ1Q4?= =?utf-8?B?eGhvVVpzNlV1eUF6alZvUUY5L1lrajM0a2dRYVY5ODd2b21WQmpXZXZYNitM?= =?utf-8?B?S0syV3JSZFpkWmNPczg5cEh6QTA5dXRBSXVxVWFTb1ZuQ08rUEZwcStleGdk?= =?utf-8?B?L1o0enRYc2swQVpqNXU2TTFNOVB1TVR6bTVsN0ZXdmRUWWZFcWNwNWhURkRv?= =?utf-8?B?N3VJWmFUS0Y5dnVLNm1BalJXTnRzMXNQSUhVQ2JoTTRTcmx3QnJCK0I1eHhG?= =?utf-8?Q?HLmCP6ASrDN6WtDCOjD5Escd7?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 49dfb631-eb9c-4501-ad3d-08dc7871b686 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB7186.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2024 02:08:17.0909 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: j6Yx0wIcq0VdMIQp2H3YsrfmHuAnnw9ZP5Oo8joGcQ3WIFi/OBu0OI81D1lTLbxpXj6B/uM4jeD+Mo0ej+8K3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR12MB8516 Borislav Petkov wrote: > On Fri, May 17, 2024 at 12:42:24PM +1000, Jordan Niethe wrote: >> This has been observed at lower levels of compiler optimisation but >> there is nothing preventing it from occurring generally. > > How can I reproduce this? > > Thx. > Hi, I run into this building a module that used paravirtual operations with -O1. I'll try and get a minimal reproducing example. Thanks, Jordan.