Received: by 10.223.164.202 with SMTP id h10csp879764wrb; Tue, 7 Nov 2017 16:46:29 -0800 (PST) X-Google-Smtp-Source: ABhQp+T+C+DyUa9DydENUhSkAMiWMFk9LTWGMt8lv8mWpinmCAD0IpM7S+9uNlcRzsglxhPZ3Wk6 X-Received: by 10.101.74.81 with SMTP id a17mr499930pgu.392.1510101989734; Tue, 07 Nov 2017 16:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510101989; cv=none; d=google.com; s=arc-20160816; b=tnXWaNuotyChIFAdWoUiVzDCUK6DFWMixD7zQ/1GAf4Tf43MhYZ/0L6s7K612Mhb9z Qob/sTR7OUVbocOU3CgUR5A+fNWg9Yd+IZN9lBzAL/MPcIhYjNFl3vKzqvlzwQEJsP5T moPe741XmLF8/iIw4RctLPMEVXdgwZ+SpNpJH8JNz7rrZyPgyvyIr30SQHD38MzaTeXU yH8yK+joE5cyJxweZISQqjv7c5Qr6sytke5v1dNN2syzp6OwYrJhNaKiqJhcbiJt+Z1H fcORrh0B6iEQ8FiRbl2N+hMUDoULlEDsqs8XFMcMBYc+2wPzk2DeUytM+8PzlMmt4d4F t11g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=d/lmf7xfODMr3XdipslPaocj6pZ1nV+4OeyU5DHpr74=; b=Cny2xLAS/rkoxZkD5oV/0qwzHE+C6k975Dn75fkApIOBtmLyb8W1Q+m6EUBhXF04FG xnJTO9SAA94VaZz1ThJU0wD86VZSvkgrCljQeWqhYOQiAjQdSghx1SuVY4q71LXBfCg+ gTJC4ChaR7OQJT+t84KrbG8F+o5sOpjariv+groxv8VlsUKK5xi7yePW3OkiFg31PXGl b4hessoA8Ghw5ylepsUMQ47McAG2vMdLbMuuqeVtbPtR8GxDlPOL22Y2eDwnb8TTEIPc 21oLK8XdPgin0H+V9m/F6vSQmRMgnlmU3DK/DT6sIId/zWnTQ/oTauS4WDqMgWarK0gO b9EQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y9si2201463pgp.405.2017.11.07.16.46.07; Tue, 07 Nov 2017 16:46:29 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964870AbdKGNqO (ORCPT + 91 others); Tue, 7 Nov 2017 08:46:14 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52486 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753714AbdKGNqN (ORCPT ); Tue, 7 Nov 2017 08:46:13 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vA7DjlIU141147 for ; Tue, 7 Nov 2017 08:46:12 -0500 Received: from e19.ny.us.ibm.com (e19.ny.us.ibm.com [129.33.205.209]) by mx0a-001b2d01.pphosted.com with ESMTP id 2e3b2b2vph-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 07 Nov 2017 08:46:11 -0500 Received: from localhost by e19.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 7 Nov 2017 08:46:10 -0500 Received: from b01cxnp22034.gho.pok.ibm.com (9.57.198.24) by e19.ny.us.ibm.com (146.89.104.206) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 7 Nov 2017 08:46:05 -0500 Received: from b01ledav004.gho.pok.ibm.com (b01ledav004.gho.pok.ibm.com [9.57.199.109]) by b01cxnp22034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vA7Dk5XP53870608; Tue, 7 Nov 2017 13:46:05 GMT Received: from b01ledav004.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 28844112056; Tue, 7 Nov 2017 08:45:32 -0500 (EST) Received: from [9.85.150.162] (unknown [9.85.150.162]) by b01ledav004.gho.pok.ibm.com (Postfix) with ESMTP id 4C507112047; Tue, 7 Nov 2017 08:45:26 -0500 (EST) Subject: Re: POWER: Unexpected fault when writing to brk-allocated memory To: Nicholas Piggin , "Kirill A. Shutemov" Cc: Florian Weimer , "Kirill A. Shutemov" , linuxppc-dev@lists.ozlabs.org, linux-mm , Andrew Morton , Andy Lutomirski , Dave Hansen , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , linux-arch@vger.kernel.org, Ingo Molnar , Linux Kernel Mailing List References: <20171105231850.5e313e46@roar.ozlabs.ibm.com> <871slcszfl.fsf@linux.vnet.ibm.com> <20171106174707.19f6c495@roar.ozlabs.ibm.com> <24b93038-76f7-33df-d02e-facb0ce61cd2@redhat.com> <20171106192524.12ea3187@roar.ozlabs.ibm.com> <546d4155-5b7c-6dba-b642-29c103e336bc@redhat.com> <20171107160705.059e0c2b@roar.ozlabs.ibm.com> <20171107111543.ep57evfxxbwwlhdh@node.shutemov.name> <20171107222228.0c8a50ff@roar.ozlabs.ibm.com> <20171107122825.posamr2dmzlzvs2p@node.shutemov.name> <20171108002448.6799462e@roar.ozlabs.ibm.com> From: "Aneesh Kumar K.V" Date: Tue, 7 Nov 2017 19:15:58 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171108002448.6799462e@roar.ozlabs.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17110713-0056-0000-0000-000003E59458 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008026; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000239; SDB=6.00942439; UDB=6.00475402; IPR=6.00722727; BA=6.00005676; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017895; XFM=3.00000015; UTC=2017-11-07 13:46:09 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17110713-0057-0000-0000-0000081CAC60 Message-Id: <2ce0a91c-985c-aad8-abfa-e91bc088bb3e@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-07_05:,, 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-1707230000 definitions=main-1711070189 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > If it is decided to keep these kind of heuristics, can we get just a > small but reasonably precise description of each change to the > interface and ways for using the new functionality, such that would be > suitable for the man page? I couldn't fix powerpc because nothing > matches and even Aneesh and you differ on some details (MAP_FIXED > behaviour). I would consider MAP_FIXED as my mistake. We never discussed this explicitly and I kind of assumed it to behave the same way. ie, we search in lower address space (128TB) if the hint addr is below 128TB. IIUC we agree on the below. 1) MAP_FIXED allow the addr to be used, even if hint addr is below 128TB but hint_addr + len is > 128TB. 2) For everything else we search in < 128TB space if hint addr is below 128TB 3) We don't switch to large address space if hint_addr + len > 128TB. The decision to switch to large address space is primarily based on hint addr Is there any other rule we need to outline? Or is any of the above not correct? -aneesh From 1583455700748512269@xxx Wed Nov 08 00:30:32 +0000 2017 X-GM-THRID: 1583404961130869946 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread