From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C62F83858C53; Sun, 19 Mar 2023 02:37:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C62F83858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679193473; bh=JPNAN+dycTBapY/K/Vt1g8nLSxps/XEWNxF47BEvlEo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Rff551yf32mL9MIjy3JqaOIQPPCcDXT82ueVPU877RPt0wwFuvN8y/PwBHRsH0J5S cV1/NDkgePao2qEq86S8wnqsbbuyyrttQtcRd9pvTFld5eBjq3gvm6Q7Vbeg6HQRYe 7UApFin3UauV+5TSiJ/xpXBqud/1FjnEyZrPWQBQ= From: "stsp at users dot sourceforge.net" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30007] rfe: dlopen to specified address Date: Sun, 19 Mar 2023 02:37:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: stsp at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30007 --- Comment #17 from Stas Sergeev --- Note that even the parts that were initially file-backed, are later re-evaluates as anonymous space. Such pages are re-protected to R/W and zeroed out with memset(). That includes .bss. I believe its a quite bad solution, as in /proc/self/maps it would remain file-backed. After my patch there are no such discrepancies, as the first mmap is always anonymous after my patch. So you don't even need to clear .bss. :) Hope this clarifies why intercepting the first mmap doesn't give you anything. --=20 You are receiving this mail because: You are on the CC list for the bug.=