From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-5.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8C0371F8C6 for ; Wed, 15 Sep 2021 12:11:15 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 90F4F385841F for ; Wed, 15 Sep 2021 12:11:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90F4F385841F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1631707873; bh=q5zh5CmkC4pYM8GQab0eSgLWA7vPyXevg9LDMLfprRE=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=yccuBfsTMAzYplg0dhHzbEbTqd59zwjdYlY03Bm789zMZBRbWrTrduKMiF+buhsKT pQqZRqeDxkpdE6DuDnMM5XFDEjPTb/P9cwDKARHi2tOOQjSZQr01hSXA7s19V0b7BY vARBpw2rWnu4B1uW5VD20gk9PiBMNJaiRLyY1Z8k= Received: from burlywood.elm.relay.mailchannels.net (burlywood.elm.relay.mailchannels.net [23.83.212.26]) by sourceware.org (Postfix) with ESMTPS id 0F3453858407 for ; Wed, 15 Sep 2021 12:10:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0F3453858407 X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0A8C0560E95; Wed, 15 Sep 2021 12:10:52 +0000 (UTC) Received: from pdx1-sub0-mail-a55.g.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id DA885561B40; Wed, 15 Sep 2021 12:10:49 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a55.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.100.96.79 (trex/6.4.3); Wed, 15 Sep 2021 12:10:51 +0000 X-MC-Relay: Junk X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Cooing-Bottle: 4ec89c346b4b1964_1631707850288_2052994256 X-MC-Loop-Signature: 1631707850288:602455158 X-MC-Ingress-Time: 1631707850288 Received: from pdx1-sub0-mail-a55.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a55.g.dreamhost.com (Postfix) with ESMTP id 45FCE86427; Wed, 15 Sep 2021 05:10:49 -0700 (PDT) Received: from [192.168.1.174] (unknown [1.186.224.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a55.g.dreamhost.com (Postfix) with ESMTPSA id 50BF187A95; Wed, 15 Sep 2021 05:10:46 -0700 (PDT) Subject: Re: [PATCH v2] ld.so: Handle read-only dynamic section gracefully [BZ #28340] To: Florian Weimer References: <20210915013653.1802776-1-siddhesh@sourceware.org> <87ee9qt93e.fsf@oldenburg.str.redhat.com> X-DH-BACKEND: pdx1-sub0-mail-a55 Message-ID: Date: Wed, 15 Sep 2021 17:40:41 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <87ee9qt93e.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Siddhesh Poyarekar via Libc-alpha Reply-To: Siddhesh Poyarekar Cc: libc-alpha@sourceware.org Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" On 9/15/21 4:10 PM, Florian Weimer wrote: > As far as I can tell, this does not check whether the DYNAMIC segment is > actually covered by a read-write LOAD segment. I wonder how much value > this imperfect check has. I reckon there's less value in trying to make this corner case work; I can't think of a reason for someone (outside of the VDSO use case) to do this on purpose. Read-only DYNAMIC segments in ET_DYN objects shouldn't be a supported use case. > Would it make more sense to fix the kernel linker script that generates > those bogus vDSO reference files? The vdso is not meant to be relocated, which is why all segments in it are read-only. setup_vdso only pretends to relocate it in the interest of internal consistency in ld.so. Siddhesh