[0/2] elf: dl-load error handling refactoring
Message ID | cover.1607703178.git.szabolcs.nagy@arm.com |
---|---|
Headers |
Return-Path: <libc-alpha-bounces@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 152D3397302C; Fri, 11 Dec 2020 16:35:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 152D3397302C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1607704544; bh=GaMqWqqfabhet9DkK9aT8XQ6XwnRd3OE52hlvUTQUe8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ZLjYjc7ulU8S1O33P04iFRgbGhIZbHAUxFURxZkQxoS5TZoq8nbQ+bVLF23SQeIMc SdQrjFCl1KCc577uuLELfOkd4kLdsesEjdA+RkHy0cvylLIad3aYHTIIuX2BSRdrLD +m9pCEt2HT7Iy92lNnUj0Ox8JwCZ4uvRFki4I6g4= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60068.outbound.protection.outlook.com [40.107.6.68]) by sourceware.org (Postfix) with ESMTPS id 685A2397300D for <libc-alpha@sourceware.org>; Fri, 11 Dec 2020 16:35:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 685A2397300D Received: from AM5PR0601CA0037.eurprd06.prod.outlook.com (2603:10a6:203:68::23) by AM0PR08MB3329.eurprd08.prod.outlook.com (2603:10a6:208:57::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.18; Fri, 11 Dec 2020 16:35:38 +0000 Received: from AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:68:cafe::d) by AM5PR0601CA0037.outlook.office365.com (2603:10a6:203:68::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 11 Dec 2020 16:35:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT060.mail.protection.outlook.com (10.152.16.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 11 Dec 2020 16:35:37 +0000 Received: ("Tessian outbound fc5cc0046d61:v71"); Fri, 11 Dec 2020 16:35:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 99ec1e3dd08f9b44 X-CR-MTA-TID: 64aa7808 Received: from 155d364b071a.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 3F1AE770-2409-4D87-BA44-0ADEB28107B2.1; Fri, 11 Dec 2020 16:35:21 +0000 Received: from FRA01-MR2-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 155d364b071a.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 11 Dec 2020 16:35:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jXqR89Kq5TUAiMVQbs/hDgckDWhj9HTshL9Ug3mQUmPOU2ocehAfPZMro4CosA7CvHEUqWkz+4SaGeewGKfuzHMUvvJjWpzz/ibtfLtYoCfob9zD0oIKq8VTcD9i8oAeH71HVX8XXqjqiPLfjQn78ZiSGbVZKz5kiS92T9xOI6asiHmuF5/e8y5L2VoEVIErxKbq5JGjaaZ7Qy8eb+3KvuwQCNcstgLnFZaL+vIKBBdfmwgPMkcPAAQl7eavUWbEUIa3qrkXMHnLMW90zBCEQOJhjAClM0iZcFVZrVgI+EIyrJpc7g/ddBjO/YEvsa1HS+1P2jzWje9+iFwCKEroLQ== 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-SenderADCheck; bh=GaMqWqqfabhet9DkK9aT8XQ6XwnRd3OE52hlvUTQUe8=; b=PFWXkM9t11XKOHYgU/OMvd3kvCMGdV5BAx+hQSgY8PyFk+mwEZ4w2uNWBLCKcaZEWZH6fhdsiL9/nlbWzC0/hybMlYLOKP5qUSkz0E0jc4e030gvYX1Ak/zzqxgfwLW8/f70pigGvxxXusn5p3Fd0LmHHMTS/jnHmVltlhOd+ifOxVw57u5vAOrVTLcIM+6ptGfeh/EQ47pXGzX+i1vCuSSNqDTqPUTtTdeiXEluzh8ISVI78NdniYUd48+jKRKxUyWuZW7pbadnAz2WpalUQXR1rsVxY8bLdGrP7NkJD1W02gJalrMR5xbmSuBFB5vMhHAaPqVDyYPVyi6ntQuLsA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=arm.com; Received: from PR3PR08MB5564.eurprd08.prod.outlook.com (2603:10a6:102:87::18) by PR2PR08MB4649.eurprd08.prod.outlook.com (2603:10a6:101:1f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Fri, 11 Dec 2020 16:35:19 +0000 Received: from PR3PR08MB5564.eurprd08.prod.outlook.com ([fe80::ac13:db5:ef4:2dd2]) by PR3PR08MB5564.eurprd08.prod.outlook.com ([fe80::ac13:db5:ef4:2dd2%4]) with mapi id 15.20.3654.013; Fri, 11 Dec 2020 16:35:19 +0000 To: libc-alpha@sourceware.org Subject: [PATCH 0/2] elf: dl-load error handling refactoring Date: Fri, 11 Dec 2020 16:35:08 +0000 Message-Id: <cover.1607703178.git.szabolcs.nagy@arm.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-Originating-IP: [217.140.106.54] X-ClientProxiedBy: SN1PR12CA0079.namprd12.prod.outlook.com (2603:10b6:802:21::14) To PR3PR08MB5564.eurprd08.prod.outlook.com (2603:10a6:102:87::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (217.140.106.54) by SN1PR12CA0079.namprd12.prod.outlook.com (2603:10b6:802:21::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Fri, 11 Dec 2020 16:35:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2488ad1f-c51b-4516-2715-08d89df2ca9e X-MS-TrafficTypeDiagnostic: PR2PR08MB4649:|AM0PR08MB3329: X-Microsoft-Antispam-PRVS: <AM0PR08MB332926A2D7EA157FCBB66ACEEDCA0@AM0PR08MB3329.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: G5YrYMYc84y4GFoHECtUoXFfvbeUauKgy8xA5rxQJaEZCwChq3acPFnbMfaiU4fz8FtJI8oILRiyGdJdg3DFjdK1Rzn9mXg7y10F85C430zOetqlJVgQnvRp9HVxgoKqgtcHZ+UaMlgbJO0YxrfyCs+VttaFXlStfQUN0UqI96hMvRVYJKUOjCTwcpO/Ef4Las7NUtbwCWpaha2hVokAnoCdMIj0YFUWZquE5lojINELLAvNLvaPMiw9G9Y1vHLzO8xQ2Urmk3eugPvLvKZ75ryHt3ISutjBUG5kK053N406/E8ksssRNEkHE7GvmSecMWOnkDWOCZ/m/0xe5JDoEHjphqM7V57FZj7HGTuHATpWQn6zsK4qkeCZYMJx6sxy X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PR3PR08MB5564.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(136003)(396003)(346002)(39860400002)(66946007)(6486002)(26005)(86362001)(83380400001)(4744005)(52116002)(66476007)(6916009)(69590400008)(2616005)(186003)(6512007)(5660300002)(16526019)(66556008)(6666004)(316002)(8936002)(2906002)(8676002)(6506007)(36756003)(956004)(478600001)(44832011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ALBL15CuCM6JZrkPpQuSb1UINI5DmmfhhOEoBSW0N4xM4r9q+bcYbdkZL/dvbO4TOBUyEw9Q7LpXfmrXKZuHzPXEjKhhSsPHie0qUbI4pi07hF3cYD3onMtttwXrgLc0WOK9kt35ayuUVDJ0eMpu1xDKPkr4SCN2RsIBh+81LI5Z2C6mOZRFqv/3WFmu+H3vON3Z2q3yOybsrAFlZfK4TsnYPD6/2Tq2IL7gqK+XcH6EifWBLn77TBN5gd91RZPO54NG0tM/EACkAeiERDe7pd1jvtGalMPNL2vElw313nrRijyRYKQVYKHqqnrkrN+5CzGZSNfgpTMEWXvUEkBwoXiWtyredDf5eX/tGJlluo7Jt22Jv0IAEOgoW8Wgc1bAeW/VPJmaEDkYtA0IhMPxtnlHBORPLHg+7ZGv1iFtatWgvetzogxyg8KtTa3MLnYeqgo4eqmMKTjOkXpfkIr5tFR3UljHpisj97JnF0lHW8ZMId4RbvdibWW1nIiBPe3rh5PnEbnod5mCjhp1nHS31fsAV4+GF5AyHgpcQT8YvMbkYCYmfPpM8GI82gOid97mGSnqGZ031uh0dkEJUjwdSPYgOBHOAc9jMRW9L3f0wapzYnZ3JcgCtG4DJsEsOAFensxrU86paAkrL18gEs/s2kb7NFSrN8LCkrkgBz1qFERzOzNg8VvKuu0Ixjfrj8FxwTK7sX98QqwNwhbF2ByeHjSuC/Yx5mDu98ZlTwxUz3iSgq2rnmoiue1udINvei7yZFCdg5efb50/RRwi/dj7fQePkyXqQy0Php+BWLxfepbL74uzHRUCpv/FAmaBYcI8FPoKitajBPgOmty1q5E6M27MhTf9ejNmOHpinW6WQxPBpd0qhP7GJvIgNOhnTRph+AL8oZ4+mi/BCdb8sV9aqlEoff6AR6xMQihv0Kq1i2M6ZHdCOgM2w6ZIoLqLnQjSREMltlz0C++qOmhtuxiQAf//jR1cheH+HMVsNWW63XdDePvLcOOuYaVzl7CxyG0t X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR2PR08MB4649 Original-Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none; sourceware.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ec7a35d8-b2cd-487a-9365-08d89df2bfdb X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +QIAz8esQ2neEBV5xcU+Y11rgdYG8kb6hSHMT+pn3/TThbKnFjUFYq0vCZsz18JeRdygsTpPjzvY8CcnDvsrQKC3Z2PKaealtnfnH481RRXEVnr6Q13L47lR6QA8hVddF5BG0nvBMlpkSHEF9jXamsw8I+XgQ6Ez8ojxlm0SNLweXpETWAafBpZtLB4YDaGBPDwx2mG9+fzVoHAUxeJoEYkUteKJNL2/1iIka2DdMd/2HGLMQUglkjgoTQFnRPVoDO2GRlk+vAhNap7Em/JDpQYhT4rCYTFfFPigqc2QFS8O5R33uKos+aAqLvJBu+iLxuyIdNZK+hSL11+ladQjbHTVvYcJqyp4mbvzSIwNZbZLatI3FWJtR7ZYx5wKcjU9zF7vgeK7ich3DOxnJ4TEpDs1jqU2+fA8URwZZpBzTkgbjIcOVapOWJnP0eA4DrfL X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(396003)(376002)(136003)(346002)(39860400002)(46966005)(36756003)(82740400003)(69590400008)(4744005)(47076004)(6512007)(356005)(83380400001)(44832011)(6666004)(316002)(81166007)(8676002)(70206006)(70586007)(6916009)(5660300002)(6486002)(2906002)(8936002)(956004)(6506007)(186003)(2616005)(336012)(16526019)(26005)(82310400003)(86362001)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2020 16:35:37.9404 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2488ad1f-c51b-4516-2715-08d89df2ca9e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT060.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3329 X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> From: Szabolcs Nagy via Libc-alpha <libc-alpha@sourceware.org> Reply-To: Szabolcs Nagy <szabolcs.nagy@arm.com> Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" <libc-alpha-bounces@sourceware.org> |
Message
Szabolcs Nagy
Dec. 11, 2020, 4:35 p.m. UTC
Fix some failure handling in _dl_map_object_from_fd and slightly improve maintainability. This used to be part of the BTI _dl_process_gnu_property changes, but those no longer depend on failure handling here. However if the code is ever changed so that note processing can propagate failures this patchset would help. Szabolcs Nagy (2): elf: inline lose for error handling elf: Fix failure handling in _dl_map_object_from_fd elf/dl-load.c | 110 ++++++++++++++++++++++++-------------------------- 1 file changed, 53 insertions(+), 57 deletions(-)