Received: by 10.223.164.202 with SMTP id h10csp793483wrb; Tue, 7 Nov 2017 14:53:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+QegpysI8aWvawkedF4X4naazLPFLptdOah1Q1vODF/JkFGj8ZjbI639MWib8llRcfjqpnA X-Received: by 10.98.31.14 with SMTP id f14mr286216pff.235.1510095217210; Tue, 07 Nov 2017 14:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510095217; cv=none; d=google.com; s=arc-20160816; b=uw8Ps5QkfCcE8fzwCNzfiL0JvA33is84i4aLfBVw+cNVZpRUCrrdyI6Z4laiAZxrhO Nt4LO/GD5OgEyuUmyZ8WspooFfo9c0H/xQF3dn0sa9JpUDneSdMn7IFU7S7Az5JMQ0fI vBNyDet+IkzdUCGuv86VcrkVLQpVJlYqmH5TwFg9eiTQL04GWdMncifMmkctKChq/zb+ xPC+Z/uPcbllW7D5vbWXdw510/dIrwBYEEc3f1epP5RSUEtM2yENaEoTNk3QEWq5TplW px2PHIywwWIS54mcATSzm+Yghlwxa8k44YodJm3q4JZNXK4fJfq/NpeHjUewNlXKXTs6 sOCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=mHJG4VrnBKyGNbyK/BJQKFrRV4G+Mq/nHFWFfw4+n7Q=; b=Mas/NgGanGEU8mCkNZPCp+Xkr6ifSrVkZc2M7XhR8cd6cwaNNrTmjPHYTrX/z0mPa/ q22PoQCFufv8Kmrbnba9nPnijcOn0WBdrDPWEFaW5umj4H+l63y+5rplLUQ5NDlZAiMQ 4K3WKUB/OptI0p7WG4kYijcNNSBDyl6Q7rNXbVQVNDITkkU88VXelBRWxk1VF/slePQv 2YRergcruv8uCpUEoM1vB0n6VsVp8RiJjKGN2qtsC+3r/2CUXGlUhWmCcwhXdT/9bvC9 jALD2/bZdsVpTkL9l41RhfOFidmHE2gN2M21ooBx8c+B3nklkgxgkb5iY4xoDw+hvp3i flrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Rydb898z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si2197972pgq.774.2017.11.07.14.53.23; Tue, 07 Nov 2017 14:53:37 -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; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=Rydb898z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752689AbdKGOCD (ORCPT + 91 others); Tue, 7 Nov 2017 09:02:03 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:45945 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbdKGOCB (ORCPT ); Tue, 7 Nov 2017 09:02:01 -0500 Received: by mail-wm0-f46.google.com with SMTP id y80so3950267wmd.0 for ; Tue, 07 Nov 2017 06:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=mHJG4VrnBKyGNbyK/BJQKFrRV4G+Mq/nHFWFfw4+n7Q=; b=Rydb898z/OgaxV3rHuKbRWse/NEeS5FOmcEhUg2jQJd8pPWtEBUBac2a/BIBehJFBs J9iq7Umx1WyImjuq+DaQsVQSCNQxjK41jtwn1oWwZ34dzDIBBDETIZqQQbhj1bsj75Ry eIxaw7IeKvyMenN4LGPaZV9BTbsSlYs7Roj9PR6sMokzCsa6teeS49yDkeo1aTg5iGhW B0znxmhyg8o+lhM8DP6gnspZooQzGFCX3mDpDKzxxthDJKnB9OlTo6vMyboRdcC35Y7a PuuV0aLQdxD0oX5lpQbTBjRtnGHPaWFdB51OB23Df6KVfPQQZKadnAqDJISdGbv6/bS7 EEKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mHJG4VrnBKyGNbyK/BJQKFrRV4G+Mq/nHFWFfw4+n7Q=; b=PyD/raz1uGk+nnnV16SdjWTY6Dcz5uFMBMP/PEpETqyDoipSWNbzp3zIKIT98xn5zE dsEiu7nB2dJE9k14G7tEf+j+kClgiymjFe9OI21/HQ785mlmkUuqTuWPgDMZh/5COKVG CTRKTPidKj+g8B1N56Tio/Y3t8HN4npXKTLEHDDHkJeXiJbdQ7MgxVu4Lt8oCw7Y2MNB b0oDOQteFzKAwC9moKmH9SVhgAKyp0bX9WbwcWLF6Z5dHOzEQXkaVbC+CpYtfhVeENft XcNX9Jr3BHEZbgiIymSS8800ZGwJ6ogGUbUUOz5q2EoHEaxsIm2S47tZCG7RgbNJYzPy 4ZvA== X-Gm-Message-State: AMCzsaXNOM+gEnKD6Mf+U14A+Ytobo3tUCBFDSkbIBAXTsFJzOAypmQQ 9bi3Ytj27nzwkuYphIdpvVlMqg== X-Received: by 10.80.192.73 with SMTP id u9mr24682305edd.37.1510063320217; Tue, 07 Nov 2017 06:02:00 -0800 (PST) Received: from node.shutemov.name (mm-29-3-84-93.mgts.dynamic.pppoe.byfly.by. [93.84.3.29]) by smtp.gmail.com with ESMTPSA id w7sm1480382edw.65.2017.11.07.06.01.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 06:01:59 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id 964B5648D520; Tue, 7 Nov 2017 17:01:58 +0300 (+03) Date: Tue, 7 Nov 2017 17:01:58 +0300 From: "Kirill A. Shutemov" To: "Aneesh Kumar K.V" Cc: Nicholas Piggin , 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 Subject: Re: POWER: Unexpected fault when writing to brk-allocated memory Message-ID: <20171107140158.iz4b2lchhrt6eobe@node.shutemov.name> References: <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> <2ce0a91c-985c-aad8-abfa-e91bc088bb3e@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ce0a91c-985c-aad8-abfa-e91bc088bb3e@linux.vnet.ibm.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 07, 2017 at 07:15:58PM +0530, Aneesh Kumar K.V wrote: > > > > > 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? That's correct. -- Kirill A. Shutemov From 1583448045764887435@xxx Tue Nov 07 22:28:52 +0000 2017 X-GM-THRID: 1583404961130869946 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread