From patchwork Fri Jul 12 09:46:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Balasubramanian X-Patchwork-Id: 13731538 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 219F8C2BD09 for ; Fri, 12 Jul 2024 09:47:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 508276B0082; Fri, 12 Jul 2024 05:47:12 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4B7576B0083; Fri, 12 Jul 2024 05:47:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 358716B0088; Fri, 12 Jul 2024 05:47:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 1809F6B0082 for ; Fri, 12 Jul 2024 05:47:12 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 9481A40A28 for ; Fri, 12 Jul 2024 09:47:11 +0000 (UTC) X-FDA: 82330622262.08.1C390D4 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2061.outbound.protection.outlook.com [40.107.244.61]) by imf15.hostedemail.com (Postfix) with ESMTP id 847E1A001F for ; Fri, 12 Jul 2024 09:47:08 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=0y8Ceypp; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf15.hostedemail.com: domain of Vignesh.Balasubrmanian@amd.com designates 40.107.244.61 as permitted sender) smtp.mailfrom=Vignesh.Balasubrmanian@amd.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720777590; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=AJZXjBLWcbrbgMRMZuKwQfHl/VO81dqdzQAScG0vTlc=; b=csa0D7m3nLe9WPARXkKpT6lo1NoHTwrrKtgWeJJ/W92q2sURKNATBQCowAMfih+d+kgU26 EWAJRALQOmK8u5A33c6F1+Q+ewM2yfTZiHaYN5YEFMFe+IcjQtjWS3HkjtcSDBWuNZq/Fq 790WaqoFCZFemNZZ/HCATx3SkwadzUc= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1720777590; a=rsa-sha256; cv=pass; b=G7K8z4BSU/DuSPG/STNck0i5UhefU+UNljw937zffBALUo3AkOmve4GAP1FEkWNf8+11dH 5UMslcXvrFYzC4XhUKue26qmDi43Mmn9lED5Njx+D5S0jBuiogOCx+U66YNxwE6hBq3j8V 3Ucn28OoGle8RxmrOm4FGJ5dWkgB294= ARC-Authentication-Results: i=2; imf15.hostedemail.com; dkim=pass header.d=amd.com header.s=selector1 header.b=0y8Ceypp; dmarc=pass (policy=quarantine) header.from=amd.com; spf=pass (imf15.hostedemail.com: domain of Vignesh.Balasubrmanian@amd.com designates 40.107.244.61 as permitted sender) smtp.mailfrom=Vignesh.Balasubrmanian@amd.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gTwphXtAK95fzBgcBN9JgePqEN8PPAIqL8VrKa+77lTV0FhcsUGECzjPoONB+CA4kpS2OOqNHc93ihd280IlG2vW/zU5llPOKNP+Vyc8ZXeicwd8AOWy1GyqUVXQT95y+V/q8szk4GsrPSR7H1aGxLC6PmNTOU/E6EiwKA85BIQ+8T6FoEgw4Z4nVodp1N9D4d6R54CUYB0F7qV2J6gEijuOl0vXadpMYPgstgWBvxfZVtb9xwBWIPSJ1qaw/B4muleFTgybiZ85oQPLtcrjLNdV8RiVdmviB9UhBnkIKhcakXmt5c7zwAJETu7BWqaQL0KGAdUfIuiK4yuOQpfjLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=AJZXjBLWcbrbgMRMZuKwQfHl/VO81dqdzQAScG0vTlc=; b=YCloNrybAZQNTHZQejjO6kJXc4InhhXg8T5UVJqZzVhJ2U42QIo2Z4sP+AsKR2T0TIKkb2I+/BXMig7U/ASKNDd1kGRY6CqpEylS+ALVHw2IpiH0WW1wefavLDze9AMkrfVnEuAFdnDAY+xulbgGcqJd0q3Wn3k/BnLzpqJKJd7c/YQb9xUl/ZF8HyFNmG/dbQes7aFkstfo10YtYyaLGYa1cX84vSacPfl9S96Dzg8m9TpcGPlnEb/Gk1Uwqnlc//Jt55m7EX5AInPpV4RYTZVrEJ7vJlL8ZQF9ElVZ8rzd5tsDA+VEgCgQk9mwyg+yN1MB1J7n1WcL8bjg5Y9GuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AJZXjBLWcbrbgMRMZuKwQfHl/VO81dqdzQAScG0vTlc=; b=0y8Ceypplw68n4rPjPSXAcv/E6y7+tQaLXk8pRTZtPsc49JxekwaAC9jtUvylcagOVIkx8ylXXVZVPGLnW6YSQ4vgbXZz8s4TA02/srvvWOqCz++lHjy63t3n4N5uN7FLKIbJPx+G7+a+4lZQ6ctV2PIk5ua8syXGejiu+dLmTs= Received: from BN6PR17CA0060.namprd17.prod.outlook.com (2603:10b6:405:75::49) by IA0PR12MB7603.namprd12.prod.outlook.com (2603:10b6:208:439::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23; Fri, 12 Jul 2024 09:47:03 +0000 Received: from BN1PEPF00004681.namprd03.prod.outlook.com (2603:10b6:405:75:cafe::44) by BN6PR17CA0060.outlook.office365.com (2603:10b6:405:75::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.23 via Frontend Transport; Fri, 12 Jul 2024 09:47:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BN1PEPF00004681.mail.protection.outlook.com (10.167.243.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7762.17 via Frontend Transport; Fri, 12 Jul 2024 09:47:02 +0000 Received: from amd-System-Product-Name.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 12 Jul 2024 04:46:57 -0500 From: Vignesh Balasubramanian To: , CC: , , , , , , , , , , , , , , , , , Vignesh Balasubramanian Subject: [PATCH v3 0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts Date: Fri, 12 Jul 2024 15:16:29 +0530 Message-ID: <20240712094630.29757-1-vigbalas@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PEPF00004681:EE_|IA0PR12MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: fa5306eb-1365-4a0e-0cde-08dca2579521 X-LD-Processed: 3dd8961f-e488-4e60-8e11-a82d994e183d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|7416014|376014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: evFm+d/sCaW6gE+1njAKlg93o7P1Irlko+0dmUYsz/1pbvmiN5iLIhpnnQuUFMSVFltit2Ds/1IvdfJR8I12zCuomIR5D/ulVGQmcugARupdWmQJMvcROdXJ8NQisAkB31Gfy7HhoI3PJ16LBIploDbz5Nse1Ju/GerbWDXGHYgKPyvOThTojr8/Jh4sUSxyLYzn6x30PnVrDC/3R5OCemUDk/eYZ7baRpzAdqt2RFRd1IB7+wxs63bP4Xv39mvIQ3RzcdL19OoR+tt+q43oBkFPyos5up2/nTRcfaoK7IsehX60ss6SJtoQqEwMKG2rO+0zapGPig5+FQ2YHf5UZfUofvEOoCwTZt5t33M+JdU+3tA5cYQA0CZh7Dh38NRkiVai1nG6Y4n8iVCK2ZcbDEC2W1GFb/lFoFrSSkOjLvMlyyKC4aMqrtRitjPW03b4tVoEByLxJ42UaYoCI1t1S5TYN9jW7+cdhOsFhKia0mBy5zMIXDH1g37nmjzTWfH6ecIHjBgBKgiIQWfpoTGSzthcmx8IJ1XLfvwfwlVwUulAUZBNrJ/fABSA4/EmycFkCG+NJ0Laigs6vbSip5zgDTUadHfHOrGKZLKccxxh7bDBC9gcxI+B/7LwdDVNBOMt23EjUA1XaAYzatMoUCAH3NOBonE0zTKkTJGS7DjaJQQ/As4Z82qi0Q3TIj1Sa+qsJvVk6l4EFMgcfHCMFqlw7dNQPGaOGe1lfKMZMYNGPH/PEBChUoi66I0fIY91XuOgWDV53LKlG/5CgLGx8h8tLrmMb8+LBFzAVn8Dq9w1rzwAO5wdCcK2yRDfEFBJ3SmSYsxcVv6/D8gZTW69X8p0EBw8BsGY4wIP3dOt5TfRxiqrQDOaUJo3E21diZqptu3LkfwU/je7DLGtxTl9++S4hZrey6rfGQmg86amJIpui7I6l6T4QvVOwnKc/cq5Z6R/L31FngMpAkMJaF8aFeVRe7R57ZI0FprEtGApRBanbxTSt7qDkIoDGlwv1RfS/FtQAVD7KWyKle6BYUsPQ47b4g+AjPeQlDugA+cM8bMql4ALb6F6bRyVp33gaJ+6rPXi9KbvyfVE+ErAveaI0roxabqhKW+yUZQRntzq42+FtjIqbxlfRFQeLroQetPBPHiFJL8x+CDtY5Knu0pwTRCZQTDqvamI4bcW78jCijgG1vdgU+fDDJekOM/XOGBCC14SjHMaP/utyxorOio9dbXdYeQliTaR2pL5qq6oj//wk1S1YaJIFxq5rpzcZKiA0I8H9shlbp2FjzHXocOxtfwWShOqOd9FMUBaUuxvBn00YC0DR7a/zbgugjTUhNOO6Eq3BeVPFdx3jHDjeJtIzb/klHag38Ojfzl3ebxjdbZEbHFCnjGHr85/a/BylLPCfPrxvXan9kYtGf5PrBrPZe9qsga1KxD1NZsjaTfTWEOr8iPGN/D84vy5YSGW7nqMJFdZ X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(7416014)(376014)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 09:47:02.6812 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fa5306eb-1365-4a0e-0cde-08dca2579521 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN1PEPF00004681.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7603 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 847E1A001F X-Stat-Signature: rrnmydfcrg4jgzff6napmfndorytmajw X-Rspam-User: X-HE-Tag: 1720777628-91135 X-HE-Meta: U2FsdGVkX19X1RQalkWMHtgXJ+coYoiSvaR0ViIiSqsuu7nqbgVbZcaSafo86CidNz35K3yKJzljGcqpPOHjP+oMJnHHGOP9xDgcs+vlquNzTJ+7ZfVdpnpqy+4wRj0D44Xw8ONNhKEHKkEp/nrDPCGWhkRV6IZdzZVQv4VhvvOG6KVdjfLP6gnEzLO98fYTdHX0x6DOZmKUddid2W4MbwfKu+fyJfar8DVtyTCkKCwNWhEOKdbAG6n0bdMZMYstUY8ERZiO+u1sNZJBiVgOXbeQKd/Sa2KVXqNb5UbZopB5+qtSxjXZy3AZJPErSzN6vFHyyHkklQn9ZAVb9PC1gExMrbuealbzLkqEkhvPJ6B4Nr3xsLbEiQnS2LXob7lP3INp+MB4WaMSbmHaynvHF0FzYNIOO1ciesdJgZUmiPDD5ZzPBrrO6Wyz3ebFbHo0XMMl+dGbxuSYlijUGNzo7iIHfVOTHTdJCphXY43P2ssJrHKSl2QAYqQixra/wAxBaNM/lBFz9h+QYcaRmZ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org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This patch proposes to add an extra .note section in the corefile to dump the CPUID information of a machine. This is being done to solve the issue of tools like the debuggers having to deal with coredumps from machines with varying XSAVE layouts in spite of having the same XCR0 bits. The new proposed .note section, at this point, consists of an array of records containing the information of each extended feature that is present. This provides details about the offsets and the sizes of the various extended save state components of the machine where the application crash occurred. Requesting a review for this patch. Vignesh Balasubramanian (1): x86/elf: Add a new .note section containing xfeatures buffer layout info to x86 core files arch/x86/Kconfig | 1 + arch/x86/include/asm/elf.h | 9 ++++ arch/x86/kernel/fpu/xstate.c | 87 ++++++++++++++++++++++++++++++++++++ fs/binfmt_elf.c | 4 +- include/uapi/linux/elf.h | 1 + 5 files changed, 100 insertions(+), 2 deletions(-)