From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6038238582A7; Mon, 27 Nov 2023 17:19:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6038238582A7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701105566; bh=wOmelkYSfs/mrJMnzXXUv5/j0AZUqpmnFCud1ZsMpfs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eVvYC/y+F3HFhiyMjrXIX1Fq/L3AfbEfaidb78ym4+gFIr2s8wTvliw7HPdtD/m/u mtC/rGXJOiFuHizbKlW3EBdnotwS4jcJk5jxAzJ6GfXSEGoA4wC2dP/oDR8EqiiWSA SoH9xcBg6DlzbcZPN9CFD3jdJogrlBPfr/3jRZh0= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31076] Extra struct vm_area_struct with ---p created when PAGE_SIZE < max-page-size Date: Mon, 27 Nov 2023 17:19:25 +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: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW 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=3D31076 --- Comment #8 from Florian Weimer --- (In reply to Adhemerval Zanella from comment #7) > So the mprotect is essentially a hardening feature, assuming that the > dynamic object padding/holes might contain gadgets. It still does not > happen for loader and main program itself, since normally they would be > mapped by the kernel and its does do anything with holes, There's no expectation that these are contiguous in memory, yes. Such an expectation exists for shared objects loaded by glibc. > and IMHO it should > up to the static linker to fill the padding with NOP/trap instruction to > avoid such issues.=20 That requires padding to the maximum page size on disk, though. --=20 You are receiving this mail because: You are on the CC list for the bug.=