Received: by 10.223.185.116 with SMTP id b49csp6039121wrg; Wed, 28 Feb 2018 03:00:04 -0800 (PST) X-Google-Smtp-Source: AH8x2243Gst6yu5HQSGep8n/BTYwjnZIZjriLS/5HQlwwFpzlsPZJmrmGMXfcA4eByX8CJC0yJVM X-Received: by 10.98.102.82 with SMTP id a79mr17350322pfc.138.1519815604036; Wed, 28 Feb 2018 03:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519815604; cv=none; d=google.com; s=arc-20160816; b=ccFeHS6wLFtN2jDf2C6riLo08V8q/r2Pf2zRXkH1APIgOVNj5PhnTPYfE5j60xoyVS MxCRVyN80B1K8XWi4sl1VzXHCozjaDoW9u4jiLIQJbNEDasOAvj59WBsegaX/ya6W6/C SPmVZk5mHaMgXq40s2RfBR4o9Z6alC0wijyo7kYEChVDu0oTLV54Oe364LJBvp5WTx57 5FQEAH5ZAKSO9EegScNH43ym2i0esnZBqXFZYvcaP23c0/TM5i4SRtSh1xmSjLeGET/s cRUGqR8IrfbMskw09WLGc46z3qwIa6svxNkYZLbHtkGiEAT97+0giffJK0eO2+LrrRjq lUfg== 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=/9x2OQbYiNMKXgaLTa8dlJESYV6MkF9NG3nbGV41RKM=; b=XofjBK0pn1xSj/DwEhGhSz8HGhE+FYiAkLGOCdepWk8ogVKj8E83mB8xaW3bhcrBXH 7jyj9r8O4UppY4Q/71vJ3iWPCz03pSvgaDQ1+00WvQSsk10Q2PTiSdebsBGAXAvNRbI6 bCE2wthRGCj3pEMh2Hq3I8xQFDMDCtTz1kYAl+ouCppdC5zZmfoi0IMfxqFUAeOC10ii FDNknwRcz36XVhMQWjz78x878HISU9JBon0FxaUjSjYGvUeuDbUvMslmtYLs8QdpnQPW 2o5ArsASC0LtX9InR/ANhsTrC9Z06YrNOF686rCatBCROgGJ3k1KJsvbR2Qt5YdrZMg5 BrJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=WD40NBPp; 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 m62si1072318pfm.41.2018.02.28.02.59.49; Wed, 28 Feb 2018 03:00:04 -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=WD40NBPp; 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 S1752213AbeB1K6T (ORCPT + 99 others); Wed, 28 Feb 2018 05:58:19 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:36663 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751800AbeB1K6Q (ORCPT ); Wed, 28 Feb 2018 05:58:16 -0500 Received: by mail-wm0-f49.google.com with SMTP id 188so4197176wme.1 for ; Wed, 28 Feb 2018 02:58:15 -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=/9x2OQbYiNMKXgaLTa8dlJESYV6MkF9NG3nbGV41RKM=; b=WD40NBPp6ktMVxb4RlZ4LI9u2zjPfY6TxG22N0b8o7AeUV+lVl8eormZMN7cJbI5k1 GUtrHbR/+HRggg9dMSkbRT0fG5FIZRruFY/aggFvCC9paNVPWJTXP55bs+6ZzTHsMfvW W7rK6Juce5IlHiCchOGf7qKP+nDx8mCPNKCPshXFRP2GNg9Cs3za1qEJ4cHRQXtfXX19 EFxTMjqhF62PmiMqrEFVFhbPLaQQFK9X1uA8JAIp30Gb6mtQbqNH/brz2MEAHXBI0iOC JZm2RqTya0wYYYuOK6YC5dZuIjBqpJ9JDAXnSOW2YZveLwjeUcT5eveTHsXKYMD9vpfQ G7SQ== 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=/9x2OQbYiNMKXgaLTa8dlJESYV6MkF9NG3nbGV41RKM=; b=lYLxnQQPq9oQGVmznrYxESRB2sexESLnRKzj6gjvj+q6Kra6L65gwtrQuSnbVWxwXn kIj0cnh+vesfhaKgw1v8ZcGxkv9BEqOhhOp03s0luA/aXqP+t2/gyeFa53OIy9BLKiGj hfMvOI5thBfnFopC0n6kG157z6rBczMKCgQhKlNY9KOaX0R2pkptmRXDUGmll8j69zMG G/kmdrHsuHzA8I2BAhJ0qyEjN0BTfXws2ZeDiBlmZpj8OK4DGST4C1R2XEBDJ1EzlFvQ IuxkC8tR0hpmjDY9LUe68yRe30TWTmZR7nmnlUCG52/fYb+JCyg0LnKCrbxdRJLfIWNA 1QoQ== X-Gm-Message-State: APf1xPDGm/XNRmfHJG6PdZPxOQiAcRbFzCp9haxE3d+oj6OApY07ht63 msCp14cNlg+wKYK5D0G+/NDHqsfm X-Received: by 10.80.174.6 with SMTP id c6mr22922998edd.217.1519815494997; Wed, 28 Feb 2018 02:58:14 -0800 (PST) Received: from node.shutemov.name ([178.121.199.127]) by smtp.gmail.com with ESMTPSA id 60sm1556084edy.36.2018.02.28.02.58.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 02:58:14 -0800 (PST) Received: by node.shutemov.name (Postfix, from userid 1000) id 74EA2648D520; Wed, 28 Feb 2018 13:58:04 +0300 (+03) Date: Wed, 28 Feb 2018 13:58:04 +0300 From: "Kirill A. Shutemov" To: "Aneesh Kumar K.V" Cc: akpm@linux-foundation.org, "Kirill A . Shutemov" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] selftests/vm: Update max va test to check for high address return. Message-ID: <20180228105804.2uhjcfxu6zebkixh@node.shutemov.name> References: <20180228035830.10089-1-aneesh.kumar@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180228035830.10089-1-aneesh.kumar@linux.vnet.ibm.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 09:28:30AM +0530, Aneesh Kumar K.V wrote: > mmap(-1,..) is expected to search from max supported VA top down. It should find > an address above ADDR_SWITCH_HINT. Explicitly check for this. Hm. I don't think this correct. -1 means the application supports any address, not restricted to 47-bit address space. It doesn't mean the application *require* the address to be above 47-bit. At least on x86, -1 just shift upper boundary of address range where we can look for unmapped area. -- Kirill A. Shutemov