Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4572234imm; Wed, 30 May 2018 08:03:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK01IjHh2AnZZVcJ4AzwLmKxsvxpZnPtWa/6T0UZdzjWQoVkrWbtm+w1KeWLaHh82/Pjsxk X-Received: by 2002:a63:7405:: with SMTP id p5-v6mr2469161pgc.289.1527692581978; Wed, 30 May 2018 08:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527692581; cv=none; d=google.com; s=arc-20160816; b=VNgEwRGOs+pXjlGZrX2X6azwtKbuJp5jSzqEnTjAaiGM+P+DZciQs1EikzFJm3SGLa yqEIpRaBV7K1H0JXNobm1sY2yVin1mhqXqzRLr9DoRDQ5tGDRfGhCH5rAzpfA0X0diCH Cl64UYl7LgnVeDaNyClza+u2mvdEtUQtm4RZj0BadLXBUaAUUVwZTjd1j+te0U/ydANv jC5yiwGqrfNcVc3/RZvmI+MsfONO5Ece1A1vfRBKONwGq2UEtfAgZaAbqqRWoEKzKmOF cFHhq/+nntMi09J5u/hh48roL6Xcj1YH5fozaUPwNA0b8W/zl/NJFyYya48UvQjWC0HC gNTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=3xkap9gp4+rwaaFgeQPQsmB558kfS6C7ewhZ4k0nPew=; b=VkKGZnmRO8s+Ah8pBiAPdyF0iluOplduA0rGRmQmflo6YKvE2YVH1SWHJG1lE0rXPT Y3wSIw2yAoYRF1OU4aE/hUMtg90z4lRTzxeKxFnPUTs1OmaiNREN3E3GlcVdYqPbE06Y ftL/C/cfF8RDtUtlYfThoewzjpohH2GPfmXmvrkrva4s26btzLp+3+uEf+J3WUGHTkPW 8lcyCdGt3F3tcLd0YCmweu+HE27nyu4GKO8uP54CKESxh/zW0LotOD/Chk6MIYGFzD0l qFTg5Zdsq7SG5OzApvuo2bhcNcr6hz7zG4XpRV2+faABJSLT4UtTG8xSdoFyJEkDHP3K O/ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=mCKunSUs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6-v6si34880887plm.99.2018.05.30.08.02.28; Wed, 30 May 2018 08:03:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=mCKunSUs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbeE3PAo (ORCPT + 99 others); Wed, 30 May 2018 11:00:44 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:55154 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693AbeE3PAl (ORCPT ); Wed, 30 May 2018 11:00:41 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4UF0V4E183664; Wed, 30 May 2018 15:00:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=3xkap9gp4+rwaaFgeQPQsmB558kfS6C7ewhZ4k0nPew=; b=mCKunSUs8cHGeX9sJYSD+fEnZQ67rEfxi1RdGvjJo0lUnCFL5hNLvxRKAZuB0/EbdWVB XgBWta2+8xz2A+4q43gKFYKRjvZOEYeNFNkQ/o+sIHXlbpSzsIv7/Yiy+55dWBz3CHBr zUoqlKTBUddsODkrAmdHtqQgyD+7zMSP4XmjPIBiv6VyKPaak42/jKVxX1S3cbtuXRdj OCq4IMGoxhG4+7WN7d210m3d8WCZ+VFd8L/mylgbhzFnG0+kRyNUxB9nbEpgoyDPmVgZ us+z412IljrHl05HeBjAsbEExzmNborkKECCtN+EPOU3ALinq0yxVUvrpzD8F1bSaxzo NA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2130.oracle.com with ESMTP id 2j9x4h810g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 May 2018 15:00:33 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4UF0WcZ012298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 May 2018 15:00:32 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4UF0U7f024312; Wed, 30 May 2018 15:00:30 GMT Received: from [192.168.1.164] (/50.38.38.67) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 30 May 2018 08:00:30 -0700 Subject: Re: [PATCH 2/2] fs, elf: drop MAP_FIXED usage from elf_map To: Michal Hocko Cc: Andrew Morton , linux-mm@kvack.org, LKML , libhugetlbfs@googlegroups.com References: <20171129144219.22867-1-mhocko@kernel.org> <20171129144219.22867-3-mhocko@kernel.org> <93ce964b-e352-1905-c2b6-deedf2ea06f8@oracle.com> <20180530080212.GA27180@dhcp22.suse.cz> From: Mike Kravetz Message-ID: Date: Wed, 30 May 2018 08:00:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180530080212.GA27180@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8909 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1805300167 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/30/2018 01:02 AM, Michal Hocko wrote: > On Tue 29-05-18 15:21:14, Mike Kravetz wrote: >> Just a quick heads up. I noticed a change in libhugetlbfs testing starting >> with v4.17-rc1. >> >> V4.16 libhugetlbfs test results >> ********** TEST SUMMARY >> * 2M >> * 32-bit 64-bit >> * Total testcases: 110 113 >> * Skipped: 0 0 >> * PASS: 105 111 >> * FAIL: 0 0 >> * Killed by signal: 4 1 >> * Bad configuration: 1 1 >> * Expected FAIL: 0 0 >> * Unexpected PASS: 0 0 >> * Test not present: 0 0 >> * Strange test result: 0 0 >> ********** >> >> v4.17-rc1 (and later) libhugetlbfs test results >> ********** TEST SUMMARY >> * 2M >> * 32-bit 64-bit >> * Total testcases: 110 113 >> * Skipped: 0 0 >> * PASS: 98 111 >> * FAIL: 0 0 >> * Killed by signal: 11 1 >> * Bad configuration: 1 1 >> * Expected FAIL: 0 0 >> * Unexpected PASS: 0 0 >> * Test not present: 0 0 >> * Strange test result: 0 0 >> ********** >> >> I traced the 7 additional (32-bit) killed by signal results to this >> commit 4ed28639519c fs, elf: drop MAP_FIXED usage from elf_map. >> >> libhugetlbfs does unusual things and even provides custom linker scripts. >> So, in hindsight this change in behavior does not seem too unexpected. I >> JUST discovered this while running libhugetlbfs tests for an unrelated >> issue/change and, will do some analysis to see exactly what is happening. > > I am definitely interested about further details. Are there any messages > in the kernel log? > Yes, new messages associated with the failures. [ 47.570451] 1368 (xB.linkhuge_nof): Uhuuh, elf segment at 00000000a731413b requested but the memory is mapped already [ 47.606991] 1372 (xB.linkhuge_nof): Uhuuh, elf segment at 00000000a731413b requested but the memory is mapped already [ 47.641351] 1376 (xB.linkhuge_nof): Uhuuh, elf segment at 00000000a731413b requested but the memory is mapped already [ 47.726138] 1384 (xB.linkhuge): Uhuuh, elf segment at 0000000090b9eaf6 requested but the memory is mapped already [ 47.773169] 1393 (xB.linkhuge): Uhuuh, elf segment at 0000000090b9eaf6 requested but the memory is mapped already [ 47.817788] 1402 (xB.linkhuge): Uhuuh, elf segment at 0000000090b9eaf6 requested but the memory is mapped already [ 47.857338] 1406 (xB.linkshare): Uhuuh, elf segment at 0000000018430471 requested but the memory is mapped already [ 47.956355] 1427 (xB.linkshare): Uhuuh, elf segment at 0000000018430471 requested but the memory is mapped already [ 48.054894] 1448 (xB.linkhuge): Uhuuh, elf segment at 0000000090b9eaf6 requested but the memory is mapped already [ 48.071221] 1451 (xB.linkhuge): Uhuuh, elf segment at 0000000090b9eaf6 requested but the memory is mapped already Just curious, the addresses printed in those messages does not seem correct. They should be page aligned. Correct? I think that %p conversion in the pr_info() may doing something wrong. Also, the new failures in question are indeed being built with custom linker scripts designed for use with binutils older than 2.16 (really old). So, no new users should encounter this issue (I think). It appears that this may only impact old applications built long ago with pre-2.16 binutils. -- Mike Kravetz