Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1502150pxb; Sun, 22 Aug 2021 19:43:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBB53t8TZ+rpBMUcU2TquWStItON4Q00I+QBhimfclVwQrUy77j5So4oPcVLVMsjlNhSEU X-Received: by 2002:a05:6402:10cc:: with SMTP id p12mr35278427edu.328.1629686605432; Sun, 22 Aug 2021 19:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629686605; cv=none; d=google.com; s=arc-20160816; b=sMXCU2QkOlHu4d8uswtD06wD5RuO6jwREsGBYTPl6cPDMqy/ru/s5Sd6d4yFY5O/1z yta59N+s0lbmZjJKe27F61Fp3kp/OmlXxpM6FqvO/PTyAWAG9kU+QsfwR6isP14To5T4 gEMQy6NTzXUeBmtUHZhYhm4K91qWklHVLJlx8j+94gpwmgIeRLrsOus/+9SquUkihTbO muefzCN7umkgV+FemrSuvUn5uDk+15dIuF70Ysm6gAsosjxc68hPkRyR0tNz/nuU7sK8 51IYNTYjFmIA2QMdPru6MAA6EE4VtBdPlMCgWOqA7F5N+T9qcdwYj4wNjcQIBZqy5Gob mBlg== 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:references:cc:to:from :subject; bh=/mTpLG1Xt4AtgUeI/eM/rPjERdOlONNF3m2i+DjwKBk=; b=U9Y+SucyIPShRVniFZ3SEWPvKOspYP6rYnuQLM9MbfvPPTU0qMVqzpnqm6Or+byn+4 Y41DrU/OYEaufgaOLO66yuFGWG3zRBokcdekyzLrFeEglX2wBic03FPezXEBiXPsHw0E MFFXiVRRqj36arq5cFPCfXZzeVHLbSNF0RZS8Qp3TMzsnBARgCpUXKfe+LJ5aH1V8qTR WKdy7DAMPnfIHEXASszs9+//6XPCPPZVMKYRKG3yD+APo3UZcnk8RhVu2ipSmjfVy3RN t/xO3YKxpu9M8pw2GA1Z++KMChyV/1qmQ1q1Vkavcrk19YM8ei7ucg/15wHOy1Gzf2VT Ke8g== 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 y5si13716232edc.227.2021.08.22.19.42.49; Sun, 22 Aug 2021 19:43:25 -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 S231465AbhHWCky (ORCPT + 99 others); Sun, 22 Aug 2021 22:40:54 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:52362 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbhHWCkx (ORCPT ); Sun, 22 Aug 2021 22:40:53 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0Ul81QuM_1629686409; Received: from 30.21.164.129(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0Ul81QuM_1629686409) by smtp.aliyun-inc.com(127.0.0.1); Mon, 23 Aug 2021 10:40:10 +0800 Subject: Re: [PATCH] selftests: openat2: Fix testing failure for O_LARGEFILE flag From: Baolin Wang 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> <01184d9e-477d-cbe4-c936-62b92e915911@linux.alibaba.com> Message-ID: <9411d418-567b-78f0-0e4d-30f08371c55a@linux.alibaba.com> Date: Mon, 23 Aug 2021 10:40:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <01184d9e-477d-cbe4-c936-62b92e915911@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Shuah, On 2021/7/28 20:32, Baolin Wang wrote: > 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 Could you apply this patch if no objection from your side? Thanks. >> --- >>   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; >>