Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2654055imm; Thu, 11 Oct 2018 13:57:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV60R5JAKKvZNCCSWetR8vwa+Z9JzWLfx3GZmhfdEefMM0N/E+mJoLKzRM27zhcmGbZ4zCUu1 X-Received: by 2002:a63:ea07:: with SMTP id c7-v6mr2653278pgi.361.1539291428500; Thu, 11 Oct 2018 13:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539291428; cv=none; d=google.com; s=arc-20160816; b=iiYaG753AIig4MKqclqqrA6Tj0hZyuqLPViz6paTEs2DtgBywF+1YPJrVmy7C49DCR RdESHqz+Uf61YtM8y3lnjgdKHyAxTqafGN5qJNnb41Wr/qZ5gJO5+HxNXzDR/Dv8ikRD FllQGtpgY8wkhHmqN+uounTwKppJEJ4aOVmX+/8gVBFjCeWQXYozjXCYW6Ip4K+Rqgq8 yHzRyU+/LBNWwI/07sv8ordswYPYwb1SIVwY5Mx6TdJQe2OJ3GIpxKBxcQkap1OKfiPD awlJhfwP8mrNd9kw7cUIubp9jObsJWmDJXU7+RXknyOxSeOS5h46o7WJswhX93QU5LcX gj9A== 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; bh=Fg+CN/dzACMuXytyg7G7bLZ//PjBQZAAjHDxsioR8WQ=; b=T+9OA8WEhPysFBiUKPl2JFwXqEwiI1XUajT2R90rw1Te+nWh2oUcRl4XvmeQUPb6N9 zs52Ja/BpctQrizyFVibbQVaWvqIZphkZaSehpol8hqh/9UfAOqaJm2TaB86zVVswn5g i1WDxggsG8NMeD49rDBwJAlaL7sPRJI8KXgo5hWARVybx6YgKooukXrm6OaizW5Ypl2g CBYtGMotS2OnXSWdCOJgndNeDvML2gZ7BcP/fMhSukBH8EXTOkfwwV8fn4OegTITQfQ0 YCBGbN2WkQQRjVjFUoD+TA7VNker0iQJt+OHGVpJyoP5q/3cuE/54C+7NaEsjKvEsAKL /Ekg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WQJWVtDp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y25-v6si30794536pff.249.2018.10.11.13.56.54; Thu, 11 Oct 2018 13:57:08 -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=@gmail.com header.s=20161025 header.b=WQJWVtDp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbeJLEZG (ORCPT + 99 others); Fri, 12 Oct 2018 00:25:06 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34931 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbeJLEZF (ORCPT ); Fri, 12 Oct 2018 00:25:05 -0400 Received: by mail-wr1-f65.google.com with SMTP id w5-v6so11176733wrt.2; Thu, 11 Oct 2018 13:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Fg+CN/dzACMuXytyg7G7bLZ//PjBQZAAjHDxsioR8WQ=; b=WQJWVtDpABXBB3k3hADTdvEXfLgoCYl+HOiu3x9SLovnRJfs3WT8cKjlc3gnQb+Yqy xxe47oYhhwpVxPfsVWrXHG4nEFWC97NYKmRo6qX//Xn+0vR5gMj0KgHVSacxbG0kGtIO RpjVntJ71D/Qu88cQTdoxpu9EEDk5N+gz3+2zwK+xE2KM9dcqoapbolWnKFWfe21YfXD UY9aQ8XUCtcociusAj+Wbcq2jx+2O/6EA4MiwABuq68E5uRYxktFa4oO7X6Z7WMJfig2 LJGCSDwzGqnavZ9vs9wVX/L9JXbsA+JVQfd6+1vjLY+m/7fooFpBtt0Lqty9hR+SNcsi 01IQ== 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=Fg+CN/dzACMuXytyg7G7bLZ//PjBQZAAjHDxsioR8WQ=; b=qr/OmScWAXpD3lqoyiQC2F+RzedAFPQNgfTyP7HOoAeMhpHnFxtU6BF3b9SWDLzPJx z/WkcQ2oBDOniPJ5libTofxhNGSufa7CEeDgXMBNxEKdLYJ4ELZJPiR7VATpPfpxmz38 lKk6cM7S7dFZDMLLoZkw8slIotvy7v9hyFCX3LppqTJVRej+34wTVeaJtl5rzqHlyW6l I6jTOAQrCPWr2EfupWniOwPxZOMpS29UR3JfB7oIun2bKq4RbwyFa6Q9oRfiBFVYEGnh 0ZvxXfBa0vcRc13+n7NthB2x013v1dhUYZ9GEVMV+vd02+Ssk5KWPr3hAp98WlRYypSM c1nA== X-Gm-Message-State: ABuFfogu1IV6pCF08weO07GfRHNNFiZqlZS5v6iCYUCVZgY99lJ9hzzz AJDaG3aC9QvbROJhXoSw4Q== X-Received: by 2002:a05:6000:12c5:: with SMTP id l5mr2844206wrx.215.1539291365150; Thu, 11 Oct 2018 13:56:05 -0700 (PDT) Received: from avx2 (nat4-minsk-pool-46-53-177-92.telecom.by. [46.53.177.92]) by smtp.gmail.com with ESMTPSA id 201-v6sm21946138wmf.30.2018.10.11.13.56.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 13:56:04 -0700 (PDT) Date: Thu, 11 Oct 2018 23:56:01 +0300 From: Alexey Dobriyan To: Rafael David Tinoco Cc: linux-kselftest@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, gorcunov@gmail.com, akpm@linux-foundation.org, shuah@kernel.org Subject: Re: [PATCH] proc: fix proc-self-map-files selftest for arm Message-ID: <20181011205601.GA32757@avx2> References: <20181011184359.15627-1-rafael.tinoco@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181011184359.15627-1-rafael.tinoco@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 11, 2018 at 03:43:59PM -0300, Rafael David Tinoco wrote: > MAP_FIXED is important for this test but, unfortunately, lowest virtual > address for user space mapping on arm is (PAGE_SIZE * 2) and NULL hint > does not seem to guarantee that when MAP_FIXED is given. This patch sets > the virtual address that will hold the mapping for the test, fixing the > issue. > > Link: https://bugs.linaro.org/show_bug.cgi?id=3782 > Signed-off-by: Rafael David Tinoco > --- > tools/testing/selftests/proc/proc-self-map-files-002.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/proc/proc-self-map-files-002.c b/tools/testing/selftests/proc/proc-self-map-files-002.c > index 6f1f4a6e1ecb..0a47eaca732a 100644 > --- a/tools/testing/selftests/proc/proc-self-map-files-002.c > +++ b/tools/testing/selftests/proc/proc-self-map-files-002.c > @@ -55,7 +55,9 @@ int main(void) > if (fd == -1) > return 1; > > - p = mmap(NULL, PAGE_SIZE, PROT_NONE, MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); > + p = mmap((void *) (2 * PAGE_SIZE), PAGE_SIZE, PROT_NONE, > + MAP_PRIVATE|MAP_FILE|MAP_FIXED, fd, 0); As the comment in the beginning says this test is specifically for addresss 0. Maybe it should be ifdeffed with __arm__ then.