Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp407738lqh; Tue, 7 May 2024 02:56:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5aUtxFuk5RykrB0J/dfW/P5Yp3y/vouZcXakpN2vkvYAQMbg3LoYL0u9WlotWlt7GKoAi6wu1aeJH1SfHfjLpGMGPpLnJMdl56n5ysw== X-Google-Smtp-Source: AGHT+IFm4arno2CriIF+p6nZ+wzsbSgTsclzPwHxpDdbKzh0WQY+/xlmNuC8NzfRv8LUIlrrLRE8 X-Received: by 2002:a92:c543:0:b0:36a:a6c4:fa7d with SMTP id a3-20020a92c543000000b0036aa6c4fa7dmr17085678ilj.0.1715075774416; Tue, 07 May 2024 02:56:14 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g15-20020a63520f000000b0060bef6c5008si10132278pgb.56.2024.05.07.02.56.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:56:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=a6KN1hRy; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-171037-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171037-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1702C285462 for ; Tue, 7 May 2024 09:54:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9261D14E2E0; Tue, 7 May 2024 09:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="a6KN1hRy" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2071.outbound.protection.outlook.com [40.107.220.71]) (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 CF4078821; Tue, 7 May 2024 09:53:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.71 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075637; cv=fail; b=d5YUI1tgMAADUoQnCpnkmpFIfL20qZmhgNoz6PUSeq0Mk0ad3JLNGALoBSYgoiRecZLLwZ/AE0++Zf8GnEGQwn/nmQpnIv5vnoRJ5e9As8MWXwGAHQU6MOGoP0KiJHeP/fEDd32/FiNhRUEpVVl4/RvjgfnocvjKEMGAqm7qP+8= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075637; c=relaxed/simple; bh=xJ9ojFIkPR9U06zVgE/xEEf3Ba9nNp6r5Ls9mxXGCcM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=bdlHtqFhvahsHmvI+Nk5VXeTjbztwVZTEFpsqONvSXhi4ZRt7sVS++CCIujEu4Efamb4dBFJ2S8TrXocSY3O20mU6ScfQs51G74eDdRMeoJXhUOpa1GPQCOHGzqeksAW3Vtk8JZq7f/9rr6kNCn9iKpEKth0VmITHSRQJTT1hs8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=a6KN1hRy; arc=fail smtp.client-ip=40.107.220.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gqbaEsenmywj7Z7FIJZo1Q3+OYOiXrvvXa21r0bs93Ayu2PuWUIDwQj6QhGKwVsj8I/KzmRqV8z/687fyXlilmCK4HESX5bYAA8l9WVzuarTHL/J/Epb3t45FdjP5iS5eaWTXgwKRVmhvEZX0n3QG3/0MGsLg7vQ+e42HgRhp++oADZxESJPVtlNaSwG3MVpCT/Hasyz4v11dowGTJsjAyqIoIIYugd7tTubIZd21BuK/BizulewEZhLg2uFF9WEuc6Bn2FF9Uxa044b6NCvvaHgXmYH6eGPUpDG/5P8817fG0Z4KmeloRtP3ni8ENT7Z3O8ZKGtsQqFL+M0cBdE4Q== 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=KH6BGYy7mf1fyXku731S6zxgWMACbhu2tlkuVTdptpU=; b=SY0gFW7G35cmsOq5n8GJEfG79u5wJij+asMuyqYvKwJg0ediNma1wkYRsXFO04r/ozJ851seGkkJpa3kBOu90anUm5Il36hxY6myREgMDmkgTcGPG7DEIbJCyG31+ux8xBYlKfo6pfnpfsPSxSrAX2Jy+1rMN0VGiIRWZjUudiVIY/WJPHw3rARLbpfPs6iyC3GeRL1ZSp6CvOByOJyTJumnepMQgQJLwknZ+niGYJQkv1O7PrxyFekWOBeCz/AVmK34w/MGDt5jLBuCRK65p1g0k7ivDyXr9cAMKyb8XGfkylT1XI6Ki6sd4lcLFDT1jgdXuTPHDz0yRMNgSr6SSQ== 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=KH6BGYy7mf1fyXku731S6zxgWMACbhu2tlkuVTdptpU=; b=a6KN1hRy0g9scoTMgNoBfEK+ZvknG++l/h6338HZmRRXlRpahemwYALpWIMVOpNpYCd6MZP/sPZvhwyeNbwKc5GOKGalPbmy0PaT4aBGWP9lAtkE9KCJLhB9wwNJRbwzyrdPpc0gBdbD80/WZ/Yit9J+UGpYyJC6OSlJq8EGgUk= Received: from MW3PR05CA0013.namprd05.prod.outlook.com (2603:10b6:303:2b::18) by BY5PR12MB4147.namprd12.prod.outlook.com (2603:10b6:a03:205::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Tue, 7 May 2024 09:53:53 +0000 Received: from CO1PEPF000044F4.namprd05.prod.outlook.com (2603:10b6:303:2b:cafe::3f) by MW3PR05CA0013.outlook.office365.com (2603:10b6:303:2b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Tue, 7 May 2024 09:53:53 +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 CO1PEPF000044F4.mail.protection.outlook.com (10.167.241.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 09:53:53 +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.35; Tue, 7 May 2024 04:53:47 -0500 From: Vignesh Balasubramanian To: , CC: , , , , , , , , , , , , , , , , Vignesh Balasubramanian Subject: [PATCH v2 0/1] Add XSAVE layout description to Core files for debuggers to support varying XSAVE layouts Date: Tue, 7 May 2024 15:23:29 +0530 Message-ID: <20240507095330.2674-1-vigbalas@amd.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044F4:EE_|BY5PR12MB4147:EE_ X-MS-Office365-Filtering-Correlation-Id: c95f30bd-0af6-4c6f-483f-08dc6e7b9abe 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:13230031|36860700004|376005|82310400017|7416005|1800799015; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?a5h32qQDJ5N4mMwpegucBR5OfffU1jYv0PNCM0Y+OddR2ULUJnQEUMZbIbWj?= =?us-ascii?Q?raTeP936Sgo7TsFYc8XScTPEJA4Mof/P3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ii?Q?1oImJJHSHd2VBwS0LbjQ9t6qSUmgWA6yGV45qfRWOPK1+7DTTykSQ8TDFJZl?= =?us-ascii?Q?ObHje8cEqWc+rvNFRCD4//uT8DfL7uMw3cvn4mgXYsWZ01sPoyd/Oi4ICvUg?= =?us-ascii?Q?C8B9VTPOQGLbRub0Mpg5Bc/Zc4sTecLakGU5OgOE/1sNiZRf7lbdabbcbp6G?= =?us-ascii?Q?q2Ar3DOeagGsO1IHtXsdlmHU6f3ludBcrZnfLMh+a4zrTC6g2kMpxum5+zsj?= =?us-ascii?Q?xuRV76JmbOzeKdtqbPyhF9+Q98UGFHmpZ6oHL5ReBpa2/qUR9lUSbjitd3m+?= =?us-ascii?Q?u9o3A0zKNc6FgUkfoApchdiBWwLC6v/ej+YljfTD25SvObq3KBqHFVNxBVJB?= =?us-ascii?Q?G95/RO1cyRWqzOVlIl63aIDL?= 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:(13230031)(36860700004)(376005)(82310400017)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 09:53:53.4399 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c95f30bd-0af6-4c6f-483f-08dc6e7b9abe 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: CO1PEPF000044F4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4147 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. Please NOTE that this patch has to be applied on top of the patch (https://lore.kernel.org/lkml/874jbt7qz3.fsf@oldenburg3.str.redhat.com/T/). Vignesh Balasubramanian (1): x86/elf: Add a new .note section containing Xfeatures information to x86 core files arch/x86/Kconfig | 1 + arch/x86/include/asm/elf.h | 34 +++++++++ arch/x86/kernel/fpu/xstate.c | 141 +++++++++++++++++++++++++++++++++++ fs/binfmt_elf.c | 4 +- include/uapi/linux/elf.h | 1 + 5 files changed, 179 insertions(+), 2 deletions(-) -- 2.34.1