Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp973135rdb; Sat, 7 Oct 2023 06:42:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGILvMy4dAuSFM6LU0kvp/zDgWuTB9xdC59j9UzeSMOg5cOvAHZsCQJsHc2lzJEDqUqLtUV X-Received: by 2002:a17:902:ecc4:b0:1c5:c546:fece with SMTP id a4-20020a170902ecc400b001c5c546fecemr11447450plh.34.1696686140130; Sat, 07 Oct 2023 06:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696686140; cv=none; d=google.com; s=arc-20160816; b=msBjLDdOem15xcrlVMRAbULX+xKbqcLTkNTC6YD7GEkvswVMyi+i8eZy/SAtK2zKj0 pClI7Et5JfK4ixRRwNQ0fsOGrMMc69XJ83o0vFVjpKMtoUFeujCs2feDjl7LirZq+URS L8EDg5T1iMEhqxoZrF2cITWJioJO9LbUggb//6VT/iOBRhy7ekawnJpYD6Hv8LllUno3 SWpogfh7lIpa1OLZ5g6x0g5UKSmC+s2Xw62LZglcVq1ZLqybmYgrXvgcEiq24Qn1o1w+ k72aPQj6l090Co9cU4g36DvtlrkFEb+LzsD4weNi6xUmllNAAbJQQ5es5Yf1qUV/oBzA hzDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=iFSv7lUuM3sDCgS/i+O4dwwgGd3Yl3VEI2tjf/f66PU=; fh=1cRL7UVL/npo9j1OFkmRd1456mAdbGZHvDaexPho6m8=; b=hig2AXus2BB/lJSyBEjcCfsuxc+J8TCBFn5EZ7LBlmtUMb6uNuRzBAMGuWgt5QOQPE eEijEy/5nZmj41Hhpmzr/n44vTcdWwE50sOKATIJ4grW8is3pRxEIEFocK26QLdLwuGt TQomYgKhU8ktHU3axuSUxx/9KGGe26qLxklCTE78mVgnT8QKfBLiEs3VD0VtAr1SFE5w API6a1x3i1hdp1K7P0SkUcVS/JMP28u89M+lH6VKHWzaQSAvmcc41jJYYGd29wYqJ7C6 3XCxQkWSYJUq6+irZqmkMvne0sZqbc6i/lIbMYDy/J3mw3v0RUry6xk4nyRhnlt6pnd9 SkMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ix20-20020a170902f81400b001c589ba4a04si5629057plb.24.2023.10.07.06.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 06:42:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 394DA80C5922; Sat, 7 Oct 2023 06:42:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343912AbjJGNmO (ORCPT + 99 others); Sat, 7 Oct 2023 09:42:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343627AbjJGNmN (ORCPT ); Sat, 7 Oct 2023 09:42:13 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B700FB6; Sat, 7 Oct 2023 06:42:10 -0700 (PDT) X-QQ-mid: bizesmtp80t1696686124tki9cnn8 Received: from linux-lab-host.localdomain ( [116.30.131.235]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 07 Oct 2023 21:42:03 +0800 (CST) X-QQ-SSF: 01200000000000E0Y000000A0000000 X-QQ-FEAT: +ynUkgUhZJk7Fs1t8lUqtLH+EA8mn1TwpN/pWP05T+XG/tIY7HHE3pWYLRvU7 pe9msVxgs1t4pSKYQRrNZ7pHFhsaR+ZDN8xdpZY1yHm8KuhdtpodfhHL6QgVvoWngzz8vKY yP5MBJQLQSxa0+n1Wyp7b1BRA7iyIBRiML7sTqvLHdFRK/ClBu6nMzJqeQhPsAIrS1U6HMg HILUJdVdI9p3rjZFPVlB+6t3iH1uzHgqj6mcsO8Wzrrb0fEhnu5U2djZYWDTF3bTHWsF24I VmY7yENLJBWnsmW4ZOYPMUfqmnAj4u39XkTtgd8oCfTkiHVDZevNyudZ8p1BZApheHajrKI pM3JhFxHU2LkLfGVcC7ivIzRDmPUXk6JelUtFDAj8TzTX6uU2Nu6XOgg9zzPQuRHbyavWBz X-QQ-GoodBg: 0 X-BIZMAIL-ID: 9388055664300987120 From: Zhangjin Wu To: linux@weissschuh.net Cc: falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, shuah@kernel.org, stable@vger.kernel.org, w@1wt.eu Subject: [PATCH] Re: tools/nolibc: drop test for getauxval(AT_PAGESZ) Date: Sat, 7 Oct 2023 21:42:02 +0800 Message-Id: <20231007134202.6766-1-falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231007-nolibc-auxval-pagesz-v1-1-af00804edead@weissschuh.net> References: <20231007-nolibc-auxval-pagesz-v1-1-af00804edead@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=4.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_PBL,RCVD_IN_SBL_CSS,RCVD_IN_XBL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 07 Oct 2023 06:42:19 -0700 (PDT) Hi, Thomas > The test will not work for systems with pagesize != 4096 like aarch64 > and some others. > We have used EXPECT_GE() instead of EXPECT_EQ(), so this should not fail, do I miss something ?;-) Thanks, Zhangjin Wu > Other testcases are already testing the same functionality: > * auxv_AT_UID tests getauxval() in general. > * test_getpagesize() tests pagesize() which directly calls > getauxval(AT_PAGESZ). > > Fixes: 48967b73f8fe ("selftests/nolibc: add testcases for startup code") > Cc: stable@vger.kernel.org > Signed-off-by: Thomas Weißschuh > --- > Note: > > This should probably also make it into 6.6. > --- > tools/testing/selftests/nolibc/nolibc-test.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c > index a3ee4496bf0a..7e3936c182dc 100644 > --- a/tools/testing/selftests/nolibc/nolibc-test.c > +++ b/tools/testing/selftests/nolibc/nolibc-test.c > @@ -630,7 +630,6 @@ int run_startup(int min, int max) > CASE_TEST(environ_HOME); EXPECT_PTRNZ(1, getenv("HOME")); break; > CASE_TEST(auxv_addr); EXPECT_PTRGT(test_auxv != (void *)-1, test_auxv, brk); break; > CASE_TEST(auxv_AT_UID); EXPECT_EQ(1, getauxval(AT_UID), getuid()); break; > - CASE_TEST(auxv_AT_PAGESZ); EXPECT_GE(1, getauxval(AT_PAGESZ), 4096); break; > case __LINE__: > return ret; /* must be last */ > /* note: do not set any defaults so as to permit holes above */ > > --- > base-commit: ab663cc32912914258bc8a2fbd0e753f552ee9d8 > change-id: 20231007-nolibc-auxval-pagesz-05f5ff79c4c4 > > Best regards, > -- > Thomas Weißschuh