Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4240284imu; Mon, 12 Nov 2018 07:58:01 -0800 (PST) X-Google-Smtp-Source: AJdET5dDqAKuWS/QdkjbXgQur5ViK+CUw6rRVSXDUL2SxWgpKE9tDr6BVDqUkX/Fbzeq6uF5xUZS X-Received: by 2002:a62:647:: with SMTP id 68-v6mr1482361pfg.42.1542038281864; Mon, 12 Nov 2018 07:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542038281; cv=none; d=google.com; s=arc-20160816; b=UNb50fdM8qiLe1TXCQXvN+gSAAxQpRLrAnQOtIvCfbDVvK6xEExtVayqmYXGX7JeyJ NCeDOCWuuvW91nSKvtTjIl4qdpPAGn2a4toCwe7DCxM+e4i8NnyqeMzj18Az7rE1aQdB OZso9Ap+1NYcMGUln5/dwlWOOvWye707PZrehuoHBUxozseGprdEZ5+Oe0MZrYc6M++0 I/R5ex001zLt1oSychjesr0rjfddYJFeJqmQ8cpnKQbtejJG8gBqq15LfNaTKM9fnyu5 cRaDi7Iq73F22/MwF0VBfmkIGx5a6HUZ8aTFl3QgPmbjxpC//MGSMRDeIkUCF6AQgfH0 9nWw== 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=MSCObcsgmp/ZbtAsIo3KtPAhYG6nDRGqdyXaag2BAZw=; b=ntnRbw4r547bTKzD/0JjvzuMXSP4POT+s8S3wcc5FHqyYj/98vo2ZKWUyZK4UNXINS gHickl2I3+wB+t1QOQrk+Mfa+Rh/1OUAb1ciOmi5X4aMShunVc5k8HF4+OmzD6jndS2x 4mcFN8Zb2D62rOMrBLJHoCqkoeaV9injQ92PxaZ/mLTdh3Mgdr3nO/JUEtlHPhtsgRon 4uc1nulVcHhZ+9/qPv7bKVxsN7ZK6A3yuISfntySmnYSC3kIjFuZG2zpAzZwMOnGDGGa wwOjQHnK6DQfaeyeuJ9c2UK2n7+hP6EK5KBr8KVc7dtLhgHf4GlE+XKpuaZ7vKwEWR5d orIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dvf6xcmY; 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 v184-v6si19943175pfv.249.2018.11.12.07.57.46; Mon, 12 Nov 2018 07:58:01 -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=@gmail.com header.s=20161025 header.b=Dvf6xcmY; 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 S1729490AbeKMBt5 (ORCPT + 99 others); Mon, 12 Nov 2018 20:49:57 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:43622 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbeKMBtw (ORCPT ); Mon, 12 Nov 2018 20:49:52 -0500 Received: by mail-lf1-f66.google.com with SMTP id u18so6517442lff.10; Mon, 12 Nov 2018 07:56:02 -0800 (PST) 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=MSCObcsgmp/ZbtAsIo3KtPAhYG6nDRGqdyXaag2BAZw=; b=Dvf6xcmY+uqjHtS4ldrCunQr1xE5Dn88rVmdGT7JWFSFb6SHNTeLYNlS8bEqwiyqpC 2Ae0LKgoyazdhAQp+8vnWE1KRfP6nvb4sBUYapQbvYi4NeuCD+rsHNslgLA8rFJxUvXm Iqg4Or4LhT2Bjvaz/9L6LyMl1iAX1DAgIH/bnXYoF5/6EDdOtbwDD4Sd7muePGIdZOAX wsDzLt25erpSaeQSUslMgvi4ybndS6l/ai/fWBu9CPvyhjEDXdMH6PZ7n4UpCD0kcEME ly/Uj1vIYsPTnV3QG3yMx/A3h+krn6TuLwmcW1BCtLAUT31tRvEOn4NLfuSn/TxBu9/S CHvA== 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=MSCObcsgmp/ZbtAsIo3KtPAhYG6nDRGqdyXaag2BAZw=; b=NROjOvTKyiXoU4s/npxdhNpQImMQA41LEE6ZQMB21oHyCfpY2D7k8ah23NgP3ZFC1E aP80VONH01SoJKYXLU2L21s/Zn80y5C596GcitO4r+igv6j5Di4I0C6BtK6j5s6MDYyW +nFNwJD8uVn/hMQg+Lt/eDksy93eSKQC1/YtExI0rE5jfPpZHhitPd5ZbdWnvtnL8Ttg HdoUBWEKPM4H8XkurxGp4xejnp3YcP+BT05WWesM1FuXp5xlfy6hswyp8ycibLSWrYnk 5LpcOScW+MdzmPGKl2llsg0L1TQpSC6nJ3M81Yluje8jGOjEvFQO+cuGzR3AsjWKqx4Z 4WsQ== X-Gm-Message-State: AGRZ1gLxWJDlnEtBeLjtFdoVmowNzji7buXC2lcIOJz6JYcLna5E0aRy HtzuHdZ+RfoFuxRiY/NWTOMB4Zbz X-Received: by 2002:a19:4849:: with SMTP id v70mr946364lfa.62.1542038161148; Mon, 12 Nov 2018 07:56:01 -0800 (PST) Received: from uranus.localdomain ([5.18.102.224]) by smtp.gmail.com with ESMTPSA id 1-v6sm1765242lju.61.2018.11.12.07.56.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Nov 2018 07:56:00 -0800 (PST) Received: by uranus.localdomain (Postfix, from userid 1000) id 8B2E54608E4; Mon, 12 Nov 2018 18:55:59 +0300 (MSK) Date: Mon, 12 Nov 2018 18:55:59 +0300 From: Cyrill Gorcunov To: Alexey Dobriyan , Rafael David Tinoco Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org Subject: Re: [PATCH] proc: fixup map_files test on arm Message-ID: <20181112155559.GV13195@uranus.lan> References: <20181110184920.GA18252@avx2> <1541904527.857883.1572718104.2AE8D0DA@webmail.messagingengine.com> <20181112141456.GA15690@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181112141456.GA15690@avx2> 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 Mon, Nov 12, 2018 at 05:14:57PM +0300, Alexey Dobriyan wrote: ... > > > int main(void) > > > { > > > const unsigned int PAGE_SIZE = sysconf(_SC_PAGESIZE); > > > +#ifdef __arm__ > > > + unsigned long va = 2 * PAGE_SIZE; > > > +#else > > > + unsigned long va = 0; > > > +#endif ... > > > > I have sent a patch removing proc-self-map-files-002 AND making 001 to use as a > > HINT for mmap (MAP_FIXED) *at least* *(2 * PAGE_SIZE), which would, likely, > > attend all architectures, avoiding trying to make the test specific to one, > > and, still, test the symlinks for issues (like bad chars, spaces, so on). > > If the goal is to test the lowest address then going for 2*PAGE_SIZE is > a mistake. > > Which BTW hints to add a test for the highest address. > > > Both tests (001 and 002) have pretty much the same code, while they could have 2 > > tests in a single code, using kselftest framework. Is NULL hint + MAP_FIXED > > something imperative for this test ? Why not to have all in a single test ? > > I dislike tests which lump everything together into one process. > > > Are you keeping the NULL hint just to test mmap, apart" from the core of > > this test ? Guys, lets simply stick with Alexey's patch. I personnally think that testing mappings should be a separate test in vm/, but seriously this took too long already :) If Alexey's patch fixes the problem with arm I think we're fine.