Message ID | 20240730153707.168357-2-nick.alcock@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8EB0385DDC8 for <patchwork@sourceware.org>; Tue, 30 Jul 2024 15:38:15 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id B42173858294 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B42173858294 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B42173858294 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722353844; cv=pass; b=D9x0KRRaXyRH6Cs0Tp9cIwltpGayO/fF/Oa9Yw6RVLcHTuCfP5JIjUlEA/Kd55ERthZIdDYM1hxly/PcGceGC/aLbVe2OiqervBvb7frxorlHKmLE76pQRBDlQN5SKdm5gjbo0xymikVtuvFryZ31/i4iv6sV97XNPSUaoh6Ef4= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1722353844; c=relaxed/simple; bh=D507dkG2kjz+K4a0QAJrPvGxjedN4LZQRqx1TIU6Dd0=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=R0r/uYd9XW2W4qdkFzRpUdmKEBD0j/0qCc0aEHNgpWdqxnrgxNlD3Na7G9F+jY25Gm+eHk2P0MKZLWtroFazWTkQjoCKGA8cE0Z9ReoqD7ykaZmBq3d/8rFH92yW8Y8EfPOCa72HBR5LZgpV+0Mj79Bhi9CLSW1uJ2rK/BUqzII= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46UFMl8F025630 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= corp-2023-11-20; bh=gIYeZdYfWiAcOJpNwemEbe50Wfj8MdIK4+iKpj5pMGo=; b= Jn0kg6QwbavN6m8HEY965uh8wEAqamQA6Se1iFv0PXmd3cG5r6uz/GOTIrwwfzAl JeS7osFK8D+MLGqEmXsvM44YkpHm0+R3RXDGytIpmlWICViLfkexlTau2BffJtSA AA3+7KwLPQb+n3sAPIognlpIt2167wkMXz85+ytUvgtmpY7LcywAq7gMOAYamJli TTTz1NX5KFNVQF4cifnbXsmdZATWK8HqK70f/B8xRd9gVBSbKUlhDz9cnWUA1vfk EG74R+Y9Uk3iKzKGez+Xei1NRpBmUsaYQ+Wt9vykM1izPHpLdxro35/EI++mubsz c4yAUeJ2JjqchGeQD+vwLw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 40mrxbwee4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:22 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 46UF74uN003780 for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:20 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2048.outbound.protection.outlook.com [104.47.70.48]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 40p4c09662-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <binutils@sourceware.org>; Tue, 30 Jul 2024 15:37:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dkPdTmc41gLsL5p3XlWAdOfHxtLA9KT2e0yUnml+Zaevsxr4DoNU1I9dqCQCAIcVOr8j9Yd8hAdiOsj7ciEoawT8pa8fkc+VvguSBGBR6+ZrusR6ZuGeorUyHlak1hKOkQXPEJ+cN9Ktm91/3MVW7K50YBIt+RMdeqI9zBVVk5j8z2W0XVKpj6EvXhsfFG9ulrOiEt4tQFIo3NJmmNXo1DgV67PJPOZSZGQQ3MaW1RYyty98J4uSGwnQVg7ngILY4wnn/XQ7CcEPML+IsDf6E7ku7q26Y3IUUSwkzcdyHKzixOlLdF+sEULylDCxgYqnLzSEtBMsoiQwMP8NKpo63A== 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=gIYeZdYfWiAcOJpNwemEbe50Wfj8MdIK4+iKpj5pMGo=; b=JqZPeNGyvp/6snBXrkGrKeyWlyqwZp4gtq3ioh8ilmNxm7k9JDTZ9AwQ3mL86ADyeOQgXyXKet9jLYwXpo20tj0mM7v708FSOvLmfQ+8Aq0wQVdxNOvqkgh0E3vkVgzWUUpAPvas9hnyhuHvkbdfIPfXOsAnRa6VK/3q14DbC2GXY0+mCZ74BsOLCyzQcGcGsp5YulmCTUrFT2J+V5jTjbJV083iOzyv3fYG1otzQC9jC4Np5as1skenphb/IRqVPyv7b25/G6CaoYTypZrlTbMEEBl/xE/rJ0n2hrkufDoPy84Gs5Cb7LhXMSQjW47j+xo/O9ml3rapskC974jQ8A== 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=gIYeZdYfWiAcOJpNwemEbe50Wfj8MdIK4+iKpj5pMGo=; b=n5L2J/7LaQxVBJbSD6ScH2U8jcLzoIiBK8qCJHovJZ3y6iG3Ng96F8GQ157xpz1ZFdXQqGGWlqhlmOiFMGDe7qN/gukiOWG9Uu6q6NxXnRrqKUhPmirxpyqkl6UZbifuzEs7Y8wbf4bsIyvjmv7zTVn9ge/w8gxJ6focQKbDBM8= Received: from MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) by DM4PR10MB7476.namprd10.prod.outlook.com (2603:10b6:8:17d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Tue, 30 Jul 2024 15:37:18 +0000 Received: from MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df]) by MW4PR10MB6608.namprd10.prod.outlook.com ([fe80::b53a:ccc1:c190:c5df%6]) with mapi id 15.20.7807.026; Tue, 30 Jul 2024 15:37:18 +0000 From: Nick Alcock <nick.alcock@oracle.com> To: binutils@sourceware.org Subject: [PATCH 01/19] libctf: we do in fact support foreign-endian old versions Date: Tue, 30 Jul 2024 16:36:49 +0100 Message-ID: <20240730153707.168357-2-nick.alcock@oracle.com> X-Mailer: git-send-email 2.45.2.276.g4ac82df17e In-Reply-To: <20240730153707.168357-1-nick.alcock@oracle.com> References: <20240730153707.168357-1-nick.alcock@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO2P265CA0475.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a2::31) To MW4PR10MB6608.namprd10.prod.outlook.com (2603:10b6:303:22e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6608:EE_|DM4PR10MB7476:EE_ X-MS-Office365-Filtering-Correlation-Id: 2f305334-66e6-4eb5-cbb9-08dcb0ad7e7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: jBQksm+/QmDCxrA1SKwAFaHFAdK6JXIB7XjdzcR+9jz/VJZpgMhg6/6kTrqSiDBd9uUBiqT4rax2I95iEfXywGLpEBAt4WbqSKrz2KVV5uI+rO98i1DQnTgCeulyuplPlvbiCMkQEtI3E0kdSmK169FToWO/mpBE/g5Cx/e62IF7mBmaZg39ulVODB9s2M8bUO2TMHRTNEDdfx0nor1GA1esN9ftgxoMh5FoNgHyNIWBxAZc0CNTxKGOXKdlGfjbVz/QvPkBoxAcbV5fcJ+RZsl8LvMW3oWOB02b+7kN/fII5Z4s6hLoL43hf0897b+RhFJEaY199lyZPCXSnQOOyF1pKsEAj8iFgM7fp16hNNvxrm6XFBnrCKjRtzfNPl6dY050jWKIYpYdnlP0U0LV+REYDJH6KadnBwAafO6byxA1LkQcvbfslCZe8NGnk3JkZkI1yU7GKallDfCifhxaNJjFXMl7Cb3Jcm+uwVXEOFKbHAvvHURPhsLPdi2ZEXGDxQVxTzADdKL28piYojkkGUwLWkw+ea1WsPpaIo+9TTk+343ijRRRPXE10xKQk8Qcp6W2E+tl6teENrx68keyJyK9GGwpF7VIYkjkG5OZGmHIryknwZmvMvNTr9AOcDuhLxYSG4pLKupZIDZks5xM9B6PYRHbJuJp4O1WtQOQyJU+MGxpMJWzyUvDLUj2+4OejDVSFPuL/EdKR1vUVpKoXgpfutDo19928/b9u4spzKQCRz8pmOxvnb9O2U09EF20KqVSzoG3sw1G/WII2R9xr2cAXn5uds3PT/TksM+Yw7mZmlTgEO0e67RmUnTJUbO6eBzzmvMYbzQr0xZqCIJBjXMCnLdTAyZq0DwchyRUQd1L23HDGDSD7spampx2N2ZYAcIEjUG/lUR3f6PCU8E5BwPbrZ+9lSlucw2COn4vqVUbYoyLxlAYh9DnrdoGXIASrS0IbqJ8xS2fkmjPqZwPK2vi26mXdETOFPC/a5mk3kEpGzmcuTkKGmkb1K3/ErN+qwjS7WbHpsWWu4bFM3m6hhv1zaN9dqi4of8GixEjvtIStelLJ7Nbm9JHXRMe4RYMrMK1BF6jpsqoe4gzl2KtoHUTiDgiJBLEBvPUuWKjVNdba1JED1xf65IHCysmvcElvu/Cj+lwRHJAxD3u+e4l40WerdvpQpp1xZo0w0/CZQkE0XZCga3/Wf77nh1ywx4CIjUOUdOXR0ZCycDrfBv5sPNoHCJdTxk32Tj6SbwQvYWlURW205iBO1YBRuo7Fiiuk0azKMJgENetHy9R/YRCetRZvoawO2UafR6wsdvSJ7vDNEJZG8niGUvftZQ8DN+JA87NUaRXsfm5OWLw8C3MQg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW4PR10MB6608.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: my7mC9oe22cllHXu0K+p9ZhlZMSU2B6gsxkSLCWGk1t4Hln2z2DeC4FANJxLW+vOCpwm8lxPY9LDAr4pU78ZUFQT9NSDDgmqAmo70dvVwK610Axo+Bo4w7Ny43CvNciFRMSrBiu8PQnIJtTfe6Cwz4f9Ju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FrNT0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f305334-66e6-4eb5-cbb9-08dcb0ad7e7f X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6608.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 15:37:18.0114 (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: y2u+JOB18eEHcL8wZ+Mt/fuPcR+1Q+P9XqxIeCUXnDUI+ekpZYR1Uj8elcHgh089Ph5yqqdyS9KA+HHrEt8MVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7476 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-30_13,2024-07-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxscore=0 suspectscore=0 malwarescore=0 adultscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2407300106 X-Proofpoint-GUID: _zso3o0RNBDBFVNQWJQV6885fN1kiV7f X-Proofpoint-ORIG-GUID: _zso3o0RNBDBFVNQWJQV6885fN1kiV7f X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
Series |
libctf: various bugfixes (including a write into freed memory), and loosen constraints on enums
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_binutils_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_binutils_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Nick Alcock
July 30, 2024, 3:36 p.m. UTC
The worry that caused this to not be supported was because we don't bother endian-flipping version-related fields before checking them. But they're all unsigned chars anyway, and don't need any flipping at all. This should be supported and should already work. Enable it. libctf/ * ctf-open.c (ctf_bufopen): Don't prohibit foreign-endian upgrades. --- libctf/ctf-open.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c index 2ae0a696c3a..fd6d36edc46 100644 --- a/libctf/ctf-open.c +++ b/libctf/ctf-open.c @@ -1474,18 +1474,12 @@ ctf_bufopen (const ctf_sect_t *ctfsect, const ctf_sect_t *symsect, First, we validate the preamble (common to all versions). At that point, we know the endianness and specific header version, and can validate the - version-specific parts including section offsets and alignments. - - We specifically do not support foreign-endian old versions. */ + version-specific parts including section offsets and alignments. */ if (_libctf_unlikely_ (pp->ctp_magic != CTF_MAGIC)) { if (pp->ctp_magic == bswap_16 (CTF_MAGIC)) - { - if (pp->ctp_version != CTF_VERSION_3) - return (ctf_set_open_errno (errp, ECTF_CTFVERS)); - foreign_endian = 1; - } + foreign_endian = 1; else return (ctf_set_open_errno (errp, ECTF_NOCTFBUF)); }