Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3216559lqp; Tue, 26 Mar 2024 03:06:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGISEqFawYgJIHChQEXhNaqhwkEcRRgiP+taDQI+rfob19VSxiI12Xq/WU0AcifysqBZ2RPQtpHjXJ4ZBtiPOSA6BFgIpLJHmLYh+kCg== X-Google-Smtp-Source: AGHT+IEtEqAO+YjPqoWsIq1Izy1+6jsaN+tm1it2Na8Lr2T4j6AyuJtaDppVwKSi2relsGgT7BZ1 X-Received: by 2002:a17:906:da89:b0:a47:52d7:60d4 with SMTP id xh9-20020a170906da8900b00a4752d760d4mr5425437ejb.57.1711447614576; Tue, 26 Mar 2024 03:06:54 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o4-20020a1709064f8400b00a45a3e58134si3365532eju.604.2024.03.26.03.06.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 03:06:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=zoTbS1Em; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-118741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118741-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0EA561F62B20 for ; Tue, 26 Mar 2024 10:06:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37C1354916; Tue, 26 Mar 2024 10:06:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="zoTbS1Em" Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2109.outbound.protection.outlook.com [40.107.220.109]) (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 B97374D9FE; Tue, 26 Mar 2024 10:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.109 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711447607; cv=fail; b=FzPdRLLYuhUG+dDCk0h5he09AbG7ONipBBCMxi5Wd69cU8Vj3ElCt5NvDh2vMggvQc2/a40fgzWMVavnN9zPOUl6bRc2TWagUHtcEciQ/+lyjRUs4T0acvSe14HElfktnwe7E/CEA13k7CUuS2dtoQJcPYmnbSPAqBQOfxliuh0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711447607; c=relaxed/simple; bh=kCZcqiQX/KGmjB7Thv3ntO08cG61XMpTYWhL49fL5hY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=FHX2mAuLpvLVcpb/8+sl4028LGZPu8XZfQor1IrKkC2k59AroRZhe6vyW9I/S3c+K02GEfN9dp+WaVfgZquJVOZ7RhgX/HHfnv66MN0MT/GtQZUEexWx6NFpT6V7Me8Qd+rSFGVL4etapqWxH5TzJ3Z7Ve3Krkkf3FMTxTnz6zQ= 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=zoTbS1Em; arc=fail smtp.client-ip=40.107.220.109 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=PlHJlrfEMvuWzHDlOrmpMjiG80/dBj2Ht8Xym6E2Ld2yAMnzCpGUivo0skYFrxKIVajcPTkfd34gNlN3SjwupNXbviIn9wKvl3qgzs4+LL6z0UUZS7IuY8A3muZj7F3pHOpPl1AqTJnWE8k4emYrL9zBxhTS5R7JWAIah5vPccC5KEv6MonZdZMtlE/URwYyHsE38oLMVvwcusZUUso69sFos9VnnhfiHGF6aRajGE+HVkksGax0E26xqYwBi9YGFTZD+n9MhI8sgDCmekvcL8l4tGsMvjHVBSREh4tFuWEdwb9+pb98E/WqAAZaabMWSJe2yKrG1934qokoSRIEow== 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=kCZcqiQX/KGmjB7Thv3ntO08cG61XMpTYWhL49fL5hY=; b=iBY7dc+FUynsnHTVl+rLa6LygvqI7+ObJ0VMcp72+IV9ar2FsUUbEMHWRZeKwCkznATcOLao2Prk3/mZ8knncF/h1dAtJI1pVXwRgSF9YXF3yEYLWp1YIYE9E6AMezkvlnOhYhvFgYtW5MaOb6vJGjz3XgESZYPxYE01qNLxXvGtg84sVmS6d60Q8ryS7ZwwcceGW6De4FSZEBXYV6J5YoWd+I5lrwckAEGiVntuN9JdHLRQEWX8T8HYdnjWL4MPhYlF+uKZaSS5blk3obiOKt6oy9Rj45JiGMuXhDBr+2k91vwOwu7bGyPr2GrsmG0329bNDg9PkPUA87sEfWeByg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none 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=kCZcqiQX/KGmjB7Thv3ntO08cG61XMpTYWhL49fL5hY=; b=zoTbS1EmCZWFpacyEWlWDnoAVBokGX22BaFND4t8am+ZbA9YkmQkfW4OV1qc8XLbepe+088vA1FJbts3iDUdsgaKppYCR5d/58obqgiJ/PyiTI3TqASIdmZkqj1RTLZ+OxVl3eZEPVDzhyHN9QfjH+b0sH1a+c1DK5jvtIaGrpc= Received: from SJ1PR12MB6124.namprd12.prod.outlook.com (2603:10b6:a03:459::15) by IA1PR12MB8555.namprd12.prod.outlook.com (2603:10b6:208:44f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.32; Tue, 26 Mar 2024 10:06:41 +0000 Received: from SJ1PR12MB6124.namprd12.prod.outlook.com ([fe80::c2c5:a349:ed66:b28]) by SJ1PR12MB6124.namprd12.prod.outlook.com ([fe80::c2c5:a349:ed66:b28%7]) with mapi id 15.20.7409.031; Tue, 26 Mar 2024 10:06:41 +0000 Message-ID: <1a2b604e-6e1b-4da9-ac2f-e2f2c80054ce@amd.com> Date: Tue, 26 Mar 2024 15:36:31 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files Content-Language: en-US To: Kees Cook , "Balasubrmanian, Vignesh" Cc: "linux-kernel@vger.kernel.org" , "linux-toolchains@vger.kernel.org" , "mpe@ellerman.id.au" , "npiggin@gmail.com" , "christophe.leroy@csgroup.eu" , "aneesh.kumar@kernel.org" , "naveen.n.rao@linux.ibm.com" , "ebiederm@xmission.com" , "x86@kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-mm@kvack.org" , "Petkov, Borislav" , "George, Jini Susan" , "matz@suse.de" , "binutils@sourceware.org" , "jhb@freebsd.org" , "felix.willgerodt@intel.com" References: <20240314112359.50713-1-vigbalas@amd.com> <20240314112359.50713-2-vigbalas@amd.com> <202403140850.5659C0F4@keescook> From: "Balasubrmanian, Vignesh" In-Reply-To: <202403140850.5659C0F4@keescook> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN2PR01CA0245.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:21a::10) To SJ1PR12MB6124.namprd12.prod.outlook.com (2603:10b6:a03:459::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: SJ1PR12MB6124:EE_|IA1PR12MB8555:EE_ 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; X-Microsoft-Antispam-Message-Info: iZJumW9HgAFn9PMKdUDpo5la0RLXOjBVx6tsFP43BBsgUHkQr6KGrdvO3svbamTvTisdv0A3zH9d9di3vw2qFGGQRQWp92yaEIcK2MyuABNIanc/DZ7chVBxAjgyg4SRFcltOwPWVxbqDo3bWCa5bkoDH85jHF5cYY2LVv0P+Fzd8GZ1hG912F6Y27dGw5kXxLyN+a2ZWN99CwNIdXnsPlBGAS1QvcZslCTKw93qUna2kGAkvLGpAYQtErT0j2CaOIoEXpTUgQuFrYCq+V0dCU8fNQfLTrmU7oGqmZIkygEZaHSegsvvrLQ9LOWm/HjpGizCnhdYZgp9pZwiHr66PCdbPX3l6H9NpYtNlRslIm8RoPmfRY6B+ekEtdQp/MlWRUDnT0U8OxYdRgqrJ8/CLrpTvpGsN1QtrnnXx6s/XIr98XsLnqkfsd27hkfNjfxNi6EoV4ABjWs+prJfX1QVduxFOLABJCg2avE2tlJX1UGN/Tyx9JC2YHiY7QbBdq+5FKJRGgfK53M6mkWcblgYd0mDg6d23gGAkUlHU2U7VQ89/Gn/c5OAJNGBuNvZm0QZbYcAUm4KgCCeIihHygztUDD2H3zhvT6VljsRKWEnwRFz1V7auxQKBEbKBARFep88gJ/FjaS+1kbqUthaM+crjKO5kczHkgrdiH7kzQU50EA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ1PR12MB6124.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?amlUNjFXNzJ3b1JHbk0ya1NSNjVHRVROR2FNc0pyT1c5QVh0Ky82clhLc1lQ?= =?utf-8?B?d1Q1Z05ITHlyQVhMVFJoUWNxdHlxUDluYk8vU1htd0g0TE41WkdFWHpTV3Bl?= =?utf-8?B?bURZclB0b3MvbWl0bmQ4cldPZ2Q4RDZUc3BQa2IyaHVTUXh3L2owbVJPTXN4?= =?utf-8?B?ZVlkaHZ3cUV3T1kvTjNaRUlRVExSazNiS09wZFBnWHlETGw3OVJCRUd3ak82?= =?utf-8?B?U0NsVFRNdDVEczJVeGY1b21xeEhxVDdUZHVoMjBrcGtrMkZSbEo5TU5RaVBR?= =?utf-8?B?bTNqUThQVVpvMkxkcHBYQ21nV2RNOXZqVUNuaU5JaUFiZTBvYzhnSElkT1lN?= =?utf-8?B?dFlpRU5sZUlJTE1BSGtxbWs4ZjhldU5MSzhNVWMzNEJMaFdxZW9lc3kxZWJD?= =?utf-8?B?aG84UzZ3ZVJpMzEyNEU3Sm5wT0xwQktaSTZhdHVuTEdEZzJMcXEvSkp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SJ1PR12MB6124.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2024 10:06:41.0119 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wgiD5X4SumZXyZv/PAUOXuuBwqnrLhGgQ/B8J4NVt7TzRBQA+Rc4JVRm/4LhcnclEB+3QSPVJ2nlXmkz18DTIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8555 > Otherwise looks reasonable, though I see Dave has feedback to address > too. :) > > Thanks for working on this! > > -Kees Thank you for the review. I will address all this on next version. thanks, vigneshbalu. > -- > Kees Cook