Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp389209rdb; Thu, 18 Jan 2024 06:41:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMCFaqiYua51ngUqlMAQqsMPozd0RD2YPKDL58g3SRP7/0eL77hI19VWlkRpmbi1drX/Ue X-Received: by 2002:a05:6830:3a90:b0:6e0:d0bf:543b with SMTP id dj16-20020a0568303a9000b006e0d0bf543bmr882469otb.67.1705588897012; Thu, 18 Jan 2024 06:41:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705588896; cv=pass; d=google.com; s=arc-20160816; b=dwT1pyDCKJ1XRbyAc/EJohvNmPmk92+ynGElWCBUoLuhxhTaT99CF3D1oAojXaJ237 KJMmYgJnNBZyn4H/XEnhSMfS0r7ygKlMJsWlke4gfHnoMTAhRRVgGckj5iW4XEM0Ip/d Ep/C4DZnib3khTkOmWT1iFZQ0XQNNAW4PBwlroUPU2xkkzWJkfBt7auF3vHZN7rvv2bF wyRIyJd/8kUk32VtaE09ljTRQY2IybIIYxuZdKFX1DEvSrxkzZHc/t3+n9DCuV4531kO jdL0P98/g++1yPIddJUtMvtlfQNARHs7sjNy07maCS8+Yb55FuJ6pqQjCLhEmX5zh7yf EkeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sPaJ4vAZPQ3ruz2S4YDoAc1wuZfYNQO8+FYm7t8JzlU=; fh=aZkBuFOQNOmQM6qb5GRzuMB8qOSGrBFt1qU91iPPY+8=; b=Op/W/0LW5M/5xcDBMRj4pJPImX376j+p5sGVFnGiiYzW1tkAGNF99e+U3Val+ynLDt X1TP1X0Du4fRsqnUUMdw2nW3hksXU9x9mY+sk9owVsmmjNvnNVU9Y0ZKFXxdUSkCcS/z IBxnVfR9pmqeBa6vxqwzvemU802nMDOuVdbs0PlKbreeB8rZKJ8RSjubqTYh08y7zq/K Mrx3yYMXOaj6m3ptF2ekillUiGAhtLVW1XXttBcz1YbZg76SYsxnKxraSOs+TyhhGkHi PU560HlF3QAQAG8mFVQpVZHN7uDor4YQhBbswNuZBKUi2+sVxmgDSCaTb6oiV3n3aDP+ 6plA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrjJo217; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bw26-20020a05622a099a00b004297b53b3a3si14082659qtb.806.2024.01.18.06.41.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 06:41:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MrjJo217; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1200-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8F6091C2583B for ; Thu, 18 Jan 2024 14:41:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EC7C28DB3; Thu, 18 Jan 2024 14:39:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MrjJo217" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18BF228DA9 for ; Thu, 18 Jan 2024 14:39:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588751; cv=none; b=dpPtq1Rn07AYjXncKq4NgJGw2d3xXohEnS/YoEz48+XIpEXdHGwSTOsrc7k4+Bwk8LPxGoWySX1MUvO99W4W6RvesUaOtq3kOC0KaCJjUO6fIS9vCOYVcCcjYJvT9YJk9W/fcUlLuXTllB9io1RI9DZWdxj7vGQ2hNWe9fHphWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705588751; c=relaxed/simple; bh=3fFSVJI7CfF0c/07e1AA93Tp4Hd+Mez9yppOmPdTuGQ=; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=mW4WclDNuKjT/gTLOb/kljOc9b97q7AF+odh3KxFtiW2ZSLk6GJu18GYiCTHu6/9JtwuASoxtqhEpLwTqyH7YEsAJcbTazViAyNtroeZ9hzgygtqVyXYVIHKktYgCgXlIxkspx58tAFM3yfKn+eddZlJwplmy1NOicVWgwwWY5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MrjJo217; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99122C433C7; Thu, 18 Jan 2024 14:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705588750; bh=3fFSVJI7CfF0c/07e1AA93Tp4Hd+Mez9yppOmPdTuGQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MrjJo217bVbdg/T/2y0Dh7dBaJYXc4CISFEC9c/FCef8owtQygfEmzNDBtXtB6ooy OdIwWX4ja3TnZUfI3TCqdMYTnR6D3s9BB+mvHINDXo9usYvknrIged7BIMOHqQ5iwf 1arUBt+1RdG+eDSR+s2gqY3dEholHvBbpf64R2wyLqbEOwZCUDC2GiCmSchiXUVoR7 xM87xmEuTIZBEvVXzhJwiXiBQIhP8HqGZPJK6pCb1wvKfMGThxCGZ/aHctuRKPEH9Q cc7RZb4Cv+8DJc3QNBUxultkWNFUKsBL84SpDuBfxkxtQKpob6vEEfWAGrn++LGo2W QP3+iX3NDDdaA== Date: Thu, 18 Jan 2024 15:39:06 +0100 From: Christian Brauner To: Dai Ngo Cc: Jorge.Mora@netapp.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/1] nfstest_posix: add check for EINVAL when open(2) called with O_DIRECTORY|O_CREAT Message-ID: <20240118-karierte-dortig-ee53d1a49abc@brauner> References: <1705514501-2098-1-git-send-email-dai.ngo@oracle.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1705514501-2098-1-git-send-email-dai.ngo@oracle.com> On Wed, Jan 17, 2024 at 10:01:41AM -0800, Dai Ngo wrote: > The 'open' tests of nfstest_posix failed with 6.7 kernel with these errors: > > FAIL: open - opening existent file should return an error when O_EXCL|O_CREAT is used (256 passed, 256 failed) > FAIL: open - opening symbolic link should return an error when O_EXCL|O_CREAT is used (256 passed, 256 failed) > > These tests failed due to the commit 43b450632676 that fixes problems > with VFS API: > > 43b450632676: open: return EINVAL for O_DIRECTORY | O_CREAT > > This patch fixes the problem by adding a check for EINVAL when the > open(2) was called with O_DIRECTORY | O_CREAT. > > Signed-off-by: Dai Ngo > --- Thank you!