From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out30-43.freemail.mail.aliyun.com (out30-43.freemail.mail.aliyun.com [115.124.30.43]) by sourceware.org (Postfix) with ESMTPS id D4FAE3858C27 for ; Thu, 9 Dec 2021 06:36:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D4FAE3858C27 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R101e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04423; MF=rongwei.wang@linux.alibaba.com; NM=1; PH=DS; RN=6; SR=0; TI=SMTPD_---0V-0uZQU_1639031766; Received: from 30.240.97.60(mailfrom:rongwei.wang@linux.alibaba.com fp:SMTPD_---0V-0uZQU_1639031766) by smtp.aliyun-inc.com(127.0.0.1); Thu, 09 Dec 2021 14:36:07 +0800 Message-ID: <930ff78b-5802-ae5a-2cc7-04a7dd2e52b2@linux.alibaba.com> Date: Thu, 9 Dec 2021 14:36:02 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:95.0) Gecko/20100101 Thunderbird/95.0 Subject: Re: [PATCH v2 0/1] fix p_align on PT_LOAD segment in DSO isn't honored Content-Language: en-US To: 20211204045848.71105-1-rongwei.wang@linux.alibaba.com, libc-alpha@sourceware.org, hjl.tools@gmail.com, fweimer@redhat.com Cc: xuyu@linux.alibaba.com, gavin.dg@linux.alibaba.com References: <20211209055719.56245-1-rongwei.wang@linux.alibaba.com> From: Rongwei Wang In-Reply-To: <20211209055719.56245-1-rongwei.wang@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-15.1 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2021 06:36:15 -0000 Sorry, I took a mistake, sent this patch twice. The patch twice sent were completely same. Just read one patch is OK. Sorry for this mistake again. On 12/9/21 1:57 PM, Rongwei Wang via Libc-alpha wrote: > Hi > > This patch mainly to fix a reported bug: > > "p_align on PT_LOAD segment in DSO isn't honored" > https://sourceware.org/bugzilla/show_bug.cgi?id=28676 > > A testcase had been builded by H.J.Lu: > https://sourceware.org/bugzilla/attachment.cgi?id=13838 > > And in Patch 1/1, I also show a simple testcase which > modified from H.J.Lu. > > And a similar bug in ELF binary was also reported: > https://bugzilla.kernel.org/show_bug.cgi?id=215275 > > A related fix patch could been found: > https://lore.kernel.org/linux-mm/20211009092658.59665-4-rongwei.wang@linux.alibaba.com/ > Originally, we send this patch for introducing .text > hugepages, was not aware of it's bug. And now, I am > not sure whether kernel maintainer will regards it as > a bug. But it deserved try again. > > Thanks. > > Changelog: > > RFC/v1 -> v2 > > - Patch "elf: align the mapping address of LOAD segments with p_align" > fix coding format and add testcase in commit. > > RFC link: > https://patchwork.sourceware.org/project/glibc/patch/20211204045848.71105-2-rongwei.wang@linux.alibaba.com/ > > Rongwei Wang (1): > elf: align the mapping address of LOAD segments with p_align > > elf/dl-load.c | 1 + > elf/dl-map-segments.h | 63 +++++++++++++++++++++++++++++++++++++++---- > include/link.h | 3 +++ > 3 files changed, 62 insertions(+), 5 deletions(-) >