Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5195683pxv; Wed, 28 Jul 2021 05:35:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkjrvtsy0+AuZz31sCEAvTG+gHgVSOq3o3UJq1hOXJUWz0JJeTr7KPuFG6PHqRxCOMbOnc X-Received: by 2002:a05:6402:54f:: with SMTP id i15mr17896314edx.24.1627475751626; Wed, 28 Jul 2021 05:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627475751; cv=none; d=google.com; s=arc-20160816; b=Rr6oSkf6sCs0PeUl9AE9A7ASquyNBgN0KbP9/rv1gtb1s6CAnjRO7GTW/nkLDLCjZf 4ayiC0ZkZT45RLoJ3Zp8jXZNv75AHzS2+N6fmvjKTRqTrdlKG3IYhnhIbYUl9dr62itl J+1E65giVV/8l1ORaIufX3asW675cmy+/960tOk6pp0G4JKp4cTZ3vHdagTM+H81FLMO nyA/GOCTe9fVTBXvyLNloTNgpCuvkc4wmqVJfPnLqMLkbJCCbv99alX4RTtIuCrfMcbw SpCoZIZKndT8EUGcBGuscEIqn9ahQbjrp4t6JXRcrtjtsupWGBp8t2ppf5ATEmcVI7Zd KZwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=EEicWTt8O6a3E71GktmJuxWw92GDDxQtrtInWnp0x/g=; b=Eb87UuuCsH3pOQWgAJwT9yLf7DFCmmGSFYvQHtAd3xKv5AjxZAmdf9HIU3CyuXMbO8 eEQoRhVPio3K365ttgdmICCJjMgnd6At4sAfdH83Y6fYFOzGpJfVuCICl+pkqtWO6xti zPU8VbRnCgoDCC3hZ3ZwGxSwwjoZ5n6ocDDZQy+b2vOg3iAfXIl4R8KCvwTNFYnMY56F K7IoC/Z+8Zb6GmfB3tfbeVDW54OFq0DHwVJRHstUUfBOLhtcIWdWLDYPfjiTzAm6SA49 IW1boD5vPZZHihak/wIb5p0Wf0UtRd0P+Gu5E0QPhuo0tEDL0QAl0ULXrfLaiIsQQSG0 xKJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si5732983edp.534.2021.07.28.05.35.27; Wed, 28 Jul 2021 05:35:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234676AbhG1Mbx (ORCPT + 99 others); Wed, 28 Jul 2021 08:31:53 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:34530 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234683AbhG1Mbw (ORCPT ); Wed, 28 Jul 2021 08:31:52 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0UhFo.B1_1627475508; Received: from 30.21.164.90(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0UhFo.B1_1627475508) by smtp.aliyun-inc.com(127.0.0.1); Wed, 28 Jul 2021 20:31:48 +0800 Subject: Re: [PATCH] selftests: openat2: Fix testing failure for O_LARGEFILE flag To: shuah@kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <1627475340-128057-1-git-send-email-baolin.wang@linux.alibaba.com> From: Baolin Wang Message-ID: <01184d9e-477d-cbe4-c936-62b92e915911@linux.alibaba.com> Date: Wed, 28 Jul 2021 20:32:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <1627475340-128057-1-git-send-email-baolin.wang@linux.alibaba.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > When running the openat2 test suite on ARM64 platform, we got below failure, > since the definition of the O_LARGEFILE is different on ARM64. So we can > set the correct O_LARGEFILE definition on ARM64 to fix this issue. Sorry, I forgot to copy the failure log: # openat2 unexpectedly returned # 3['/lkp/benchmarks/kernel_selftests/tools/testing/selftests/openat2'] with 208000 (!= 208000) not ok 102 openat2 with incompatible flags (O_PATH | O_LARGEFILE) fails with -22 (Invalid argument) > > Signed-off-by: Baolin Wang > --- > tools/testing/selftests/openat2/openat2_test.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/openat2/openat2_test.c > index d7ec1e7..1bddbe9 100644 > --- a/tools/testing/selftests/openat2/openat2_test.c > +++ b/tools/testing/selftests/openat2/openat2_test.c > @@ -22,7 +22,11 @@ > * XXX: This is wrong on {mips, parisc, powerpc, sparc}. > */ > #undef O_LARGEFILE > +#ifdef __aarch64__ > +#define O_LARGEFILE 0x20000 > +#else > #define O_LARGEFILE 0x8000 > +#endif > > struct open_how_ext { > struct open_how inner; >