From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward100o.mail.yandex.net (forward100o.mail.yandex.net [37.140.190.180]) by sourceware.org (Postfix) with ESMTPS id 46BCA3858020 for ; Wed, 15 Feb 2023 13:34:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 46BCA3858020 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 forward103q.mail.yandex.net (forward103q.mail.yandex.net [IPv6:2a02:6b8:c0e:50:0:640:b21c:d009]) by forward100o.mail.yandex.net (Yandex) with ESMTP id 532C052ABFC5 for ; Wed, 15 Feb 2023 16:32:47 +0300 (MSK) Received: from vla3-178a3f795968.qloud-c.yandex.net (vla3-178a3f795968.qloud-c.yandex.net [IPv6:2a02:6b8:c15:2584:0:640:178a:3f79]) by forward103q.mail.yandex.net (Yandex) with ESMTP id 4F53556A0002 for ; Wed, 15 Feb 2023 16:32:47 +0300 (MSK) Received: by vla3-178a3f795968.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id jWkZJ01YwCg1-K7UV1wE3; Wed, 15 Feb 2023 16:32:46 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1676467967; bh=FLWwE/C3GREAcLgrW3OeSXB6OizwDERNhI+UCyj42LI=; h=Message-Id:Date:Cc:Subject:To:From; b=Uq5XvNB8+XaLB4iPHAMICRYuaUiWx/eCKIq6pztSbB/bIs0I3yqy9ayCe+ZeUzG7n gT1hUmUFHHTvZUGao+2oTb33PwQC0eveSf81Mcl37RNEL4pT2r2/ScY+IlYjfRtVYR xTuMUgqJFxX+U0+c5eYXSO5bm1RqPgE/HVgd5lSw= Authentication-Results: vla3-178a3f795968.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru From: Stas Sergeev To: libc-alpha@sourceware.org Cc: Stas Sergeev Subject: [PATCH v6 0/2] implement dlmem() with audit extension Date: Wed, 15 Feb 2023 18:32:38 +0500 Message-Id: <20230215133240.4180776-1-stsp2@yandex.ru> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,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: Changes in v6: - use __strdup("") for l_name as suggested by Andreas Schwab Changes in v5: - added _dl_audit_premap_dlmem audit extension for dlmem - added tst-auditmod-dlmem.c test-case that feeds shm fd to dlmem() Changes in v4: - re-target to GLIBC_2.38 - add tst-auditdlmem.c test-case to test auditing - drop length page-aligning in tst-dlmem: mmap() aligns length on its own - bugfix: in do_mmapcpy() allow mmaps past end of buffer Changes in v3: - Changed prototype of dlmem() (and all the internal machinery) to use "const unsigned char *buffer" instead of "const char *buffer". Changes in v2: - use instead of "../test-skeleton.c" - re-target to GLIBC_2.37 - update all libc.abilist files Patch 1: fix memory management bug in _dl_new_object() Patch 2: implement dlmem() and its audit extension -- 2.37.2