Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933226AbeAKKIw (ORCPT + 1 other); Thu, 11 Jan 2018 05:08:52 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49170 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932982AbeAKKIu (ORCPT ); Thu, 11 Jan 2018 05:08:50 -0500 Subject: Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE To: Michal Hocko , Anshuman Khandual References: <5a4ec4bc.u5I/HzCSE6TLVn02%akpm@linux-foundation.org> <7e35e16a-d71c-2ec8-03ed-b07c2af562f8@linux.vnet.ibm.com> <20180105084631.GG2801@dhcp22.suse.cz> <20180107090229.GB24862@dhcp22.suse.cz> <87mv1phptq.fsf@concordia.ellerman.id.au> <7a44f42e-39d0-1c4b-19e0-7df1b0842c18@linux.vnet.ibm.com> <87tvvw80f2.fsf@concordia.ellerman.id.au> <96458c0a-e273-3fb9-a33b-f6f2d536f90b@linux.vnet.ibm.com> <20180109161355.GL1732@dhcp22.suse.cz> Cc: Michael Ellerman , akpm@linux-foundation.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-next@vger.kernel.org, sfr@canb.auug.org.au, broonie@kernel.org From: Anshuman Khandual Date: Thu, 11 Jan 2018 15:38:37 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20180109161355.GL1732@dhcp22.suse.cz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18011110-0016-0000-0000-000005168934 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18011110-0017-0000-0000-00002852EB14 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-11_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801110140 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/09/2018 09:43 PM, Michal Hocko wrote: > On Tue 09-01-18 17:18:38, Anshuman Khandual wrote: >> On 01/09/2018 03:42 AM, Michael Ellerman wrote: >>> Anshuman Khandual writes: >>> >>>> On 01/07/2018 04:56 PM, Michael Ellerman wrote: >>>>> Michal Hocko writes: >>>>> >>>>>> On Sun 07-01-18 12:19:32, Anshuman Khandual wrote: >>>>>>> On 01/05/2018 02:16 PM, Michal Hocko wrote: >>>>>> [...] >>>>>>>> Could you give us more information about the failure please. Debugging >>>>>>>> patch from http://lkml.kernel.org/r/20171218091302.GL16951@dhcp22.suse.cz >>>>>>>> should help to see what is the clashing VMA. >>>>>>> Seems like its re-requesting the same mapping again. >>>>>> It always seems to be the same mapping which is a bit strange as we >>>>>> have multiple binaries here. Are these binaries any special? Does this >>>>>> happen to all bianries (except for init which has obviously started >>>>>> successfully)? Could you add an additional debugging (at the do_mmap >>>>>> layer) to see who is requesting the mapping for the first time? >>>>>> >>>>>>> [ 23.423642] 9148 (sed): Uhuuh, elf segment at 0000000010030000 requested but the memory is mapped already >>>>>>> [ 23.423706] requested [10030000, 10040000] mapped [10030000, 10040000] 100073 anon >>>>>> I also find it a bit unexpected that this is an anonymous mapping >>>>>> because the elf loader should always map a file backed one. >>>>> Anshuman what machine is this on, and what distro and toolchain is it running? >>>>> >>>>> I don't see this on any of my machines, so I wonder if this is >>>>> toolchain/distro specific. >>>> >>>> POWER9, RHEL 7.4, gcc (GCC) 4.8.5 20150623, GNU Make 3.82 etc. >>> >>> So what does readelf -a of /bin/sed look like? >> >> Please find here. > > Did you manage to catch _who_ is requesting that anonymous mapping? Do > you need a help with the debugging patch? Not yet, will get back on this.