Message ID | 20240930200831.1669010-6-adhemerval.zanella@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Yr52dYsC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XHXL72LGmz1xsc for <incoming@patchwork.ozlabs.org>; Tue, 1 Oct 2024 06:12:31 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 25781384515E for <incoming@patchwork.ozlabs.org>; Mon, 30 Sep 2024 20:12:29 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id 287C53846461 for <libc-alpha@sourceware.org>; Mon, 30 Sep 2024 20:08:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 287C53846461 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 287C53846461 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::12f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727726952; cv=none; b=cuDscCW1hmc/WVXePQAO8X1RKt3VThRjgnoeBnjXxcrXoFqGQyTiCpwHXWbP1tSxHJrhCIQtg0Zw0/KdpvMw3OzFGTXVUA4O5UI5S7vX0rOUGfHSbtpFHEuHbfaDIMHH5Lp9Ugq3U3mMstKR1aq/vscVTQiAYsj/VteG5tYk/8g= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727726952; c=relaxed/simple; bh=srJsH0o/joYyhIKV8nbjp1/z8n7FiNByCO5SZrPrSw0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=p1P4M4IKUhiQh79y4NW1Cr1qpo78OuxNaUd+iA6QLUknSFfG1pWRjz36MQxNIF2vbv/7mVV0l4rpPwoQaXy/WI6o+tmPp6G0lhYmP6emSHUzuafTiOTro9MEFPy8DXBqReRvj6ifUvhWjlVeDcIw0VUr5sNLtlPJj+hDEnNWx1I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-3a3525ba6aaso5697715ab.2 for <libc-alpha@sourceware.org>; Mon, 30 Sep 2024 13:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727726934; x=1728331734; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8vqO0JhS9U4c3iOKBOvmros2ivIzywkbp+VAwUy++XY=; b=Yr52dYsCD4WRdbBaXr3SwN8gtoMt3Z9jqpopXlEWPl2e3PnxSFu3v1ZM/12da3weFl Jc44d6WavJELPSXqRyhPFYjiua9i8WsN0aQIuyLlSbt9l/xQwA0H6tLkmP7aShDQwPXX hC5q236pfBc4Z7qT8Xtq2BXIcW4WpM8H9pftmVKEb+pr1lvlvLNs1oCtsiBkn22NIZZN ue6w+GCjYzzkYf4V4aCmZS9erEO/4BZjywh6z+PSL3HwcRJSxmtqOZ00WInQT+Rd6AI+ 6nbhlgKRssVmiHRR/4TXOpCht8ZtlTNymsSQd+YN5iUHEJ2sYSLI8m1Xjt0XCizBw/BC ho+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727726934; x=1728331734; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8vqO0JhS9U4c3iOKBOvmros2ivIzywkbp+VAwUy++XY=; b=dhDpE92HCYVCRCUGrTtXsb5aLSCpWhI8uLFOft2dFhGhpDOXopsMjyBnh6BFuroBS4 ieb+4H1pNs78YTlTV9JI4Eg0KzXqMJPROV3f+NkSLZuFsgXe9v/oTVlOkhZ495t37sqb qK0vtnjSi4trxV6tdSqKjZ9tDm1fZ7paNs0T93wy6G2KQr0B6ldfEGysbGuuYl58jE9W znjmbRLTSKXIH5CbDLXbQ3D9TkUFZt4PIvSBu1bMvUflvzJ16W4XzsCecHPOpLsStSag ED22UOrNUSTYt1oQqdFfSbQy5ifBb+QyakJ6lSWQGzXTdLX9s0e0ilKNnvSdN986NEs5 SITA== X-Gm-Message-State: AOJu0Yw49rhpBjdO2wawasXck3VrvOxatA2P8aLLhopuf2Nyf6ltXf2e GtVTzy7F4iCeW/AHakJG2ZXlLRn0SR0yG4ueh936dkeCtnqgHNxwvElcjpqxY2BCfAHXs01zbfd TOKg= X-Google-Smtp-Source: AGHT+IEOE4u8y//0Iyshobn2ss/Jba1xUS96+T9i894jDBJZYuR/tdV/ozeDHaepLy9eCOI25Cxiiw== X-Received: by 2002:a05:6e02:2188:b0:3a3:35f0:4c19 with SMTP id e9e14a558f8ab-3a3451b454cmr98475155ab.21.1727726934102; Mon, 30 Sep 2024 13:08:54 -0700 (PDT) Received: from ubuntu-vm.. (201-92-183-102.dsl.telesp.net.br. [201.92.183.102]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7e6db2c4845sm6869565a12.43.2024.09.30.13.08.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 13:08:53 -0700 (PDT) From: Adhemerval Zanella <adhemerval.zanella@linaro.org> To: libc-alpha@sourceware.org Cc: Stephen Roettger <sroettger@google.com>, Jeff Xu <jeffxu@google.com>, Florian Weimer <fweimer@redhat.com>, Mike Hommey <mh@glandium.org>, Adhemerval Zanella <adhemerval.zanella@linaro.org> Subject: [PATCH v3 5/9] elf: Use RTLD_NODELETE for dependencies Date: Mon, 30 Sep 2024 17:08:27 -0300 Message-Id: <20240930200831.1669010-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240930200831.1669010-1-adhemerval.zanella@linaro.org> References: <20240930200831.1669010-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 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> Errors-To: libc-alpha-bounces~incoming=patchwork.ozlabs.org@sourceware.org |
Series |
Add support for memory sealing
|
expand
|
diff --git a/elf/dl-open.c b/elf/dl-open.c index 8b4704c09d..f251781dc4 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -600,7 +600,8 @@ dl_open_worker_begin (void *a) /* Load that object's dependencies. */ _dl_map_object_deps (new, NULL, 0, 0, - mode & (__RTLD_DLOPEN | RTLD_DEEPBIND | __RTLD_AUDIT)); + mode & (__RTLD_DLOPEN | RTLD_DEEPBIND | __RTLD_AUDIT + | RTLD_NODELETE)); /* So far, so good. Now check the versions. */ for (unsigned int i = 0; i < new->l_searchlist.r_nlist; ++i)