Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2120070pxb; Mon, 23 Aug 2021 12:25:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6ZOr49EAQw/IobID/2SSDU5AANvOI7CHSI3LJXFoaXTWlWJaE8UcmtHNY0WHF8ck0RhO4 X-Received: by 2002:aa7:d842:: with SMTP id f2mr6870528eds.57.1629746745529; Mon, 23 Aug 2021 12:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629746745; cv=none; d=google.com; s=arc-20160816; b=x84GhaZ3D50hNCpTu7lCznC7SAEzqy1E11otbgrW+PJQyWNEIN/C3PYJWm7WouUNc5 DvKOlVATiP/crfXHCJ+Nln6gpR/HfBzYAi4ECKg3/QMM97KG42Uu96dd5vYy7MjYba/a iWqj1pjC8psf52VSyFwJ2VCZCi6ORJDWGAlEbfBI7sb1EuO/MCtgo7ozIZe9PRLuHJGq rpkyNix+KHqnjZQdbNyO9KtqxiWKkgYLW1B2PbkxMzW6dRtrqvZ0ost1O0dSjdWf/2FW uL5yYf4nsp6W14CuHjq7w6ejmk434CYbEKrTM360AeGZCozRNNAo+gKU47iefuglNLJV 8Hsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=R61EvE5T8P1BLdeG5FoKvlIWFZXYQh2fedYwtenFS5w=; b=YyqA/5wim9zipK0GN3xgi8h+NJwePxGG7y6HhWT4Q0+9tpYO7rOwNbpjarDCLAmbkZ lts7DGnmlmVJ4R6PVuBB4aTNcsHoLUCL+P3p2n+WJJQlTY+E4SobjHeMieeLhr0HJe54 3+eF1kyqA9G/ygY714AKlGUKN26tXImw2bMz1XeoN7KTw5EHRGkzWesiC53zVoDvxDSA XY5sXSP0l76a/1Y5OLEugfPjPfEvWOZwF8dq45738V8v86oVTddAqbFAvVGJHRtbOnOf dU5+T3BWApZ/OlbC1rmOU3OY5EqB8zvmRLHPmGXZoBiEKNjlXaSHZbdW6JiZv4SJ5T8i lXzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Vg2yIG52; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b21si11668382eds.516.2021.08.23.12.25.22; Mon, 23 Aug 2021 12:25:45 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Vg2yIG52; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232126AbhHWTYM (ORCPT + 99 others); Mon, 23 Aug 2021 15:24:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbhHWTYL (ORCPT ); Mon, 23 Aug 2021 15:24:11 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD2E0C061575 for ; Mon, 23 Aug 2021 12:23:28 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id x10-20020a056830408a00b004f26cead745so39253438ott.10 for ; Mon, 23 Aug 2021 12:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=R61EvE5T8P1BLdeG5FoKvlIWFZXYQh2fedYwtenFS5w=; b=Vg2yIG520LIhKpPXUI4mZ2ssujQNL8K4zT9coTZV5k2WN1GdU7pzXW90U6O9Us12z8 BYrO98kdP4HiatoAZ+FmTSdB75kZDyY3QhSTUGrRGbHbhAWiiouMFxvdGkc8J0XFaYoU zroTYBKBZyw/rBnU7PmFqFyMVYt5+m5v3f8Ks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=R61EvE5T8P1BLdeG5FoKvlIWFZXYQh2fedYwtenFS5w=; b=jkSANI1qP++r9Io/CK6WTusYdh9MqkdioEP+ZOGldXQm51fmJrlKofVrAx7rM3s84M qDP2tDLyuCurHtUUPQwj4C/VtbU6QglXi94Wrzj/cicSGPfCFN5QI7WKNaSMwQpChixC Qq02K8biEN5AsVIKGU0rAaXyYjtzZ1vgxDa3Zy7JigIfVR2nxw+dRGvik7uSfM8p9Xld A7MW38fyA08tdNE8YVD58POgDtFHTVndWDQVUfrIssvY41LSCwE4BVsS6sdl0BgA7GFz kzSHD/BrTdyMTT9yZp1NzQo1V2s1pR+Wp+4OweJh9LtZzDAG6PniVkXbyWZ4gcmZk9oH GMug== X-Gm-Message-State: AOAM532wjejKUHTxqaWmWkUSH3Kuerq5o8hHY9rK9EW4eU8kc/FGafQW BHNqYFCirps3qVTU7BP7fIYL4A== X-Received: by 2002:a05:6808:20e:: with SMTP id l14mr84473oie.87.1629746608138; Mon, 23 Aug 2021 12:23:28 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id i27sm4117419ots.12.2021.08.23.12.23.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Aug 2021 12:23:27 -0700 (PDT) Subject: Re: [PATCH] selftests: openat2: Fix testing failure for O_LARGEFILE flag To: Baolin Wang , shuah@kernel.org, Christian Brauner , Aleksa Sarai Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <1627475340-128057-1-git-send-email-baolin.wang@linux.alibaba.com> <01184d9e-477d-cbe4-c936-62b92e915911@linux.alibaba.com> <9411d418-567b-78f0-0e4d-30f08371c55a@linux.alibaba.com> From: Shuah Khan Message-ID: Date: Mon, 23 Aug 2021 13:23:26 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <9411d418-567b-78f0-0e4d-30f08371c55a@linux.alibaba.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Baolin, On 8/22/21 8:40 PM, Baolin Wang wrote: > 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: >> Please cc everybody get_maintainers.pl suggests. You are missing key reviewers for this change. Adding Christian Brauner and Aleksa Sarai to the thread. >> # openat2 unexpectedly returned # 3['/lkp/benchmarks/kernel_selftests/tools/testing/selftests/openat2'] with 208000 (!= 208000) Not sure I understand this. 208000 (!= 208000) look sthe same to me. >> 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. > Ideally this define should come from an include file. Christian, Aleksa, Can you review this patch and let me know if this approach looks right. >>> --- >>>   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; >>> > thanks, -- Shuah