From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward501a.mail.yandex.net (forward501a.mail.yandex.net [178.154.239.81]) by sourceware.org (Postfix) with ESMTPS id 414723858D33 for ; Wed, 15 Feb 2023 11:30:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 414723858D33 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 vla5-f17bbf3532fc.qloud-c.yandex.net (vla5-f17bbf3532fc.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3588:0:640:f17b:bf35]) by forward501a.mail.yandex.net (Yandex) with ESMTP id 766735EF5D; Wed, 15 Feb 2023 14:30:16 +0300 (MSK) Received: by vla5-f17bbf3532fc.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id FUirj60fSuQ1-Z4dYkGFI; Wed, 15 Feb 2023 14:30:16 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1676460616; bh=42HymCJ3n29XG62HXxgw1RtVcteZEjcsKBi8HVs8jDs=; h=In-Reply-To:From:Date:References:To:Subject:Message-ID; b=jI1iTmoOqGK2oyu0UPFUKMMBVFfBGU2WsjKywqpIzgAWGCb3F/5ulCfAhro/k1AC8 A0A4qPtOVJX1Ha+LQ+nYh3yUn5A6SRk/yALBxbhg5kr9NMDLlnctottjL7O/mK2HUQ yWR27RrvcLrP6reF7lOO81lC3y/RMq6awQnIXhU8= Authentication-Results: vla5-f17bbf3532fc.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <3e0da544-a2a5-26a0-e137-65abc6ed7a56@yandex.ru> Date: Wed, 15 Feb 2023 16:30:14 +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 2/2] dlfcn,elf: implement dlmem() function [BZ #11767] Content-Language: en-US To: Florian Weimer , Stas Sergeev via Libc-alpha References: <20230214084123.2056067-1-stsp2@yandex.ru> <20230214084123.2056067-3-stsp2@yandex.ru> <87mt5ga82l.fsf@oldenburg.str.redhat.com> From: stsp In-Reply-To: <87mt5ga82l.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 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,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, 14.02.2023 14:51, Florian Weimer пишет: > * Stas Sergeev via Libc-alpha: > > With the mandatory copy, I'm not sure if this is a substantial > improvement over the pedestrian implementation using memfd_create, > included below. I posted v5 where I added _dl_audit_premap_dlmem audit extension for dlmem. It allows (with the demo test-case) to feed an fd to dlmem(). Obviously you can't do anything like this with the APIs that already have or use an fd. Note: this isn't the only extension that I need. I just wanted to add them later. But to demonstrate you the advantage of dlmem(), I had to add one of them directly to v5.