From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F6AF385800D; Tue, 31 Aug 2021 12:49:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F6AF385800D From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug malloc/20646] sysmalloc incorrectly fails with custom morecore function Date: Tue, 31 Aug 2021 12:49:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.19 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: siddhesh at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 12:49:03 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D20646 Adhemerval Zanella changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adhemerval.zanella at lina= ro dot o | |rg --- Comment #10 from Adhemerval Zanella --- To give libhugetlsfs users a way forward, I think we should move the huge p= ages morecore functionatily to a tunable [1]. The __morecore returning non-contiguous memory is not really well tests and have corner cases specifically with memory trimming (specially because we set MORECORE_CONTIG= UOUS as default). The approach I did [1] was that same as used for aarch64 memory tagging, wh= ich forces __glibc_morecore to always fails and makes sysmalloc fallbacks to mmap(). I still need to check if all corner cases are handled correclty (specially trimming). [1] https://patchwork.sourceware.org/project/glibc/list/?series=3D2732 [2] https://patchwork.sourceware.org/project/glibc/patch/20210830185215.449572-= 8-adhemerval.zanella@linaro.org/ --=20 You are receiving this mail because: You are on the CC list for the bug.=