Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2657273pxb; Tue, 24 Aug 2021 04:40:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6C2ciDra1DhIOB5fHoWMs0mtlJGQ/kV6zk6JI1SCMd/af92sD3luKM8qvLKtZfKC/pfef X-Received: by 2002:a17:906:b890:: with SMTP id hb16mr39341843ejb.383.1629805244310; Tue, 24 Aug 2021 04:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629805244; cv=none; d=google.com; s=arc-20160816; b=nSIeR493beEMgPKqcuepLNdR3qOiGrp6WUgh70ANVPpaB8IjrZZ7MTdRsK18M7i6Vf odfq7Y/f1PySWaW+VHnh5YHjLIHMeWjdyJ0l0TupdPDuZbVfD6AQjssM3CjuhBQcrxIS sE9E0rc2xBb2ffkRnS5wcd/FP+aj3y0KhY6EtdpDUGW2JGSCCRS1H4ZIrCWXTO/NAlcd J2qqNojj/6kTJx15m4aNACXjzwAzXm/AvIKWAgRq6m8nG3t6mMPKugNWr2wL2AubMhTq ZqO04B/+d7n1uk/HbWJfbGsYCsRY48EDA2d7D9Arnvvj+vTBz0AzieKFfMoiRxqEN7WI +dqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=UnwVsudN0D7uuWXDuduMtp7OT9FSZ1CeBJt1KrkFYA4=; b=epEjqBSimWLWBD3eVAigPB+ER6eWDFvMmnJBZUshHxhF1E12SbLiDY+kt40DHp4NF8 e36R8cFn3W/D0QhczAZuLyaCmS88iHA6UY2SnVV6ZueVgBJgnXBkiP8guhXzWZtnJwNe m2MideW8Tx+Qy2zt44uxDLLrVP/EF+3myyVY9BvWGalnq7gbTYkga4w/k4QZF/omhsmX QUYaLeyNIIeoiJR5aA2aYE9v/U36c4RgH4VBH36aoTzVxO/Y+LKUyfMd2UjWW6ebsPRD YKXgghdLrosc5zfHLFlGOqJd48PFfCE08a1J2wKSFIH2e8UpEj47IViwc64N3mopeZny OcaA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga11si3250281ejc.571.2021.08.24.04.40.20; Tue, 24 Aug 2021 04:40:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236622AbhHXLhK (ORCPT + 99 others); Tue, 24 Aug 2021 07:37:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:48404 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236205AbhHXLhI (ORCPT ); Tue, 24 Aug 2021 07:37:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7FA5E61002; Tue, 24 Aug 2021 11:36:22 +0000 (UTC) Date: Tue, 24 Aug 2021 13:36:19 +0200 From: Christian Brauner To: Aleksa Sarai Cc: Shuah Khan , Baolin Wang , shuah@kernel.org, Christian Brauner , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests: openat2: Fix testing failure for O_LARGEFILE flag Message-ID: <20210824113619.a3gyxlerst7tumzn@wittgenstein> 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> <20210824112129.2t6lzqyf2dxllw4a@senku> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210824112129.2t6lzqyf2dxllw4a@senku> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 09:21:29PM +1000, Aleksa Sarai wrote: > On 2021-08-23, Shuah Khan wrote: > > 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. > > The issue is that O_LARGEFILE is set to 0 by glibc because glibc appears > to hide the nuts and bolts of largefile support from userspace. I > couldn't find a nice way of doing a architecture-dependent includes of > include/uapi from kselftests, so I just went with this instead -- but I > agree that a proper include would be better if someone can figure out > how to do it. I'd just add arch-dependent defines for now and call it good. So seems good enough for me: Thanks! Acked-by: Christian Brauner > > > Christian, Aleksa, > > > > Can you review this patch and let me know if this approach looks right. > > Reviewed-by: Aleksa Sarai