From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501b.mail.yandex.net (forward501b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d501]) by sourceware.org (Postfix) with ESMTPS id 7447D3858D28 for ; Fri, 31 Mar 2023 14:04:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7447D3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:4a05:0:640:40c8:0]) by forward501b.mail.yandex.net (Yandex) with ESMTP id CF1285E732; Fri, 31 Mar 2023 17:04:40 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id d4LSZMEWoGk0-Xf7SHZTO; Fri, 31 Mar 2023 17:04:40 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1680271480; bh=Z83DWoypLcrYYLX2YljJ4ix2Lzaj83BS1dOXXmykEGk=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=s3uEbEozWVBtb/gD7hsW9HVH+tTRGX/WVEu7HvOWwtonnVqdzHCuw29aGvQQ1F6tk 7t1AJc74ZMrkTQE3ossJHEC/6rgTn0Axef0Cq/1RiUGaE392oiNUqQn5ktxa2AJFXI qXxVMBXZVvugvqSqG36A8Wg4A9k3/nx1xUHO9mek= Authentication-Results: mail-nwsmtp-smtp-production-main-91.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <523aa6ae-859f-5d8e-d941-9d7271f8508b@yandex.ru> Date: Fri, 31 Mar 2023 19:04:38 +0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 03/13] elf: dont pass fd to _dl_process_pt_xx Content-Language: en-US To: Adhemerval Zanella Netto , Szabolcs Nagy , libc-alpha@sourceware.org References: <20230318165110.3672749-1-stsp2@yandex.ru> <20230318165110.3672749-4-stsp2@yandex.ru> <77329e53-bb96-dc39-1f3d-6a5dfa0e7263@linaro.org> <7aeca4bd-ccc7-bc23-82b2-a215b423587e@linaro.org> From: stsp In-Reply-To: <7aeca4bd-ccc7-bc23-82b2-a215b423587e@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: Hi Adhemerval, 31.03.2023 17:54, Adhemerval Zanella Netto пишет: >> however the fd must be passed down in elf/dl-load.c otherwise >> bti protection is silently dropped (when systemd filters out >> mprotect with PROT_EXEC, this is being fixed, but there are old >> systems configured like that). >> > This patch I figured out much. So if I understand correctly, these fds should stay, right? If so - may I bypass the _dl_process_pt_XX calls completely in case of dlmem, or are they needed for dlmem? Sorry I have no idea what they do...