Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1942663rwd; Mon, 15 May 2023 05:23:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jnrAi7s+S9CpsNjRpspeSlH5fye6JIfLvnV16nViaD4SkL8WEfhAVngyEDb5TgxexZgaO X-Received: by 2002:a05:6a21:920d:b0:f5:b7c9:57b8 with SMTP id tl13-20020a056a21920d00b000f5b7c957b8mr40369361pzb.42.1684153393989; Mon, 15 May 2023 05:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684153393; cv=none; d=google.com; s=arc-20160816; b=G/NTtEVFZxikkSe7b/43byfE6PZbEuouDeCMYqKJiySHd1C7/J5ksevdDplWqpBpLy kY/NGQW4SW29bOfQZFaX6GH5BTZ7l4uA8ahNBjMvFC4FbnLq1PXlpUeQfheRVPwvPqev x8erijqt4jQByYhSHF4xsTxrpmuBlUlapJ4DcMZMK1HbTKN34rXRjUEPaQ9bLiOr4hDs le8wUttD+ubm3wRt44LYBaeUB9+6yPpsqXumvmgFwOF8NCABKrKkYzclKdLinQb5ll60 mF5loFknz8DL8i0vXpcCzqbfR87Tvo4Jc+tIL96zxvVtTdVTo+XRf0UlGn+v5N2Npyxw 30Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=V3w21LLB6kjaFa2uDlyQzaBQt+wBaW+MSdWQWfRjAd0=; b=FKmqkeGklzf+6ZegX82CJPKUeEr8USj3IK2yMKw3BfjxPOMRouQzZl6oAPak591HuL n6b5c4TY8U3vwJO3FIkhUW8bI1/opKwYjj9jR/3Ywx0tMh7qiy3eupvp6chLk7rb6YrT GVgAjE9yJjGLdt5xKCAsMSzQ7vIPBKJRh3JzQmMmrWrZJb16re2OnP5IRRML6n85rXyS eUTkjclMNiahhuKyPOtR+p/EgjzjytfwoTSKfe/bS4wLj8kV6N/dyRtxsESz2lBYLsgB J2LkhoYvAal952kArgOCav3ODRr8yTYko3daHZ4nq4d8rLcPWAtfWrjUjY3WgtifD5/n UYnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=AyVHcuGr; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VzbFarfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i17-20020aa796f1000000b0063b1739532esi17179770pfq.139.2023.05.15.05.23.01; Mon, 15 May 2023 05:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=AyVHcuGr; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=VzbFarfI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241346AbjEOMOi (ORCPT + 99 others); Mon, 15 May 2023 08:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236891AbjEOMOV (ORCPT ); Mon, 15 May 2023 08:14:21 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5106E55; Mon, 15 May 2023 05:14:09 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 11DD55C0109; Mon, 15 May 2023 08:14:09 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 15 May 2023 08:14:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1684152849; x=1684239249; bh=V3 w21LLB6kjaFa2uDlyQzaBQt+wBaW+MSdWQWfRjAd0=; b=AyVHcuGraGGGQsduag pUh+ancekxxs1USnn7U5Rla1/1/LpAkIkPU84Q3PLFbfOI6wxgRf/pGiub5gCN1q GQAJPySpYJI6Vj//gI25dU+TFxxztGNbb2Soa74Oonq209z590WOi0QD1JUFVM9U E3ITJTmvzb3OezoAXpFhQFrA0vaxXjEM3Irg2u6PS9B1/9mrE0wd4C+pwdZDpUTa bYcRbk20gCoNV58NdYaeIekXegmyEdwyytELbQcUDORUnyEMHeAyFpvrFNOXaMx4 cT9QGiyfgrVUSSIV5CwUgPx9oewBimYgmAIhxbu8cuUNuU8FCOncIqd9use/7P0E kWiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1684152849; x=1684239249; bh=V3w21LLB6kjaF a2uDlyQzaBQt+wBaW+MSdWQWfRjAd0=; b=VzbFarfI3Sgyr+si1Y8l2eV3GePk5 wcgKuJSmgMU4WCwx1H5jJE3nPWKjS0Wo6nsSSO6uUIbs1ujKbOibD9+B65Yyiuhi JJdFZt33WH4VGMDciyPNbcpivd99NHqyzUaqz1InPzAcp98EJUW+1QqkrsH75TGK jwGvVotSpgZBQC6/Lua0cuma6ZzLFKuVb/1jR7guq3FMjCU/l7DRhhzKLpkmBjnu 73nNXhMqgyZkJ0eOsQLPnldBJKyDYxvFaYLDZakzQsN07LZP5bFJCyPAOBSIXf0k 3xmBkCd2velMmOuGP7eHEKZDvAfmZ0tu7Hk1hJdZwYsIj0FcHltsgf+OA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehjedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BF91FB60089; Mon, 15 May 2023 08:14:08 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-415-gf2b17fe6c3-fm-20230503.001-gf2b17fe6 Mime-Version: 1.0 Message-Id: <3696666f-9b48-405c-a715-8adf927fd86e@app.fastmail.com> In-Reply-To: References: Date: Mon, 15 May 2023 14:13:28 +0200 From: "Arnd Bergmann" To: "Dan Carpenter" , "Naresh Kamboju" , =?UTF-8?Q?Ricardo_Ca=C3=B1uelo?= Cc: "open list" , "open list:KERNEL SELFTEST FRAMEWORK" , lkft-triage@lists.linaro.org, "Andrew Morton" , "Linus Torvalds" , "Ard Biesheuvel" , shuah , "Anders Roxell" Subject: Re: selftests: mincore: mincore_selftest fails only on qemu-armv7 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 15, 2023, at 13:51, Dan Carpenter wrote: > On Mon, May 15, 2023 at 03:29:02PM +0530, Naresh Kamboju wrote: >> The selftests: mincore: mincore_selftest fails only on qemu-armv7 running > > tools/testing/selftests/mincore/mincore_selftest.c > 139 TEST(check_huge_pages) > 140 { > 141 unsigned char vec[1]; > 142 char *addr; > 143 int retval; > 144 int page_size; > 145 > 146 page_size = sysconf(_SC_PAGESIZE); > 147 > 148 errno = 0; > 149 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, > 150 MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB, > 151 -1, 0); > 152 if (addr == MAP_FAILED) { > 153 if (errno == ENOMEM) > > On Armv7 is a 32bit machine so HUGETLB isn't enabled and the errno can > be -EINVAL. It's has returned this for 10 years. I expected it to be enabled on 32-bit as well, but I see that on normal ARMv7 without CONFIG_ARM_LPAE, it is indeed always turned off, and the asm/pgtable-2level.h does not define a way to use sections or supersections in user space: arch/arm/Kconfig: select ARCH_SUPPORTS_HUGETLBFS if ARM_LPAE Arnd