Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp333621rdb; Tue, 16 Jan 2024 01:25:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFv7DEdYMaomKJBX4j06+kW4yab/C4G8ONf0YvWvpSN9gBBMLQbLwBezixf+EKuuuIv4DvT X-Received: by 2002:a05:6870:b90b:b0:206:b21b:f3f4 with SMTP id gx11-20020a056870b90b00b00206b21bf3f4mr12311478oab.55.1705397147489; Tue, 16 Jan 2024 01:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705397147; cv=none; d=google.com; s=arc-20160816; b=zWolW5n47VtWJ5MoXYw2NivjDol/LjscUUlk7FVKehBjdvMxkCJMmniCEOyQnNDYr8 FOIJdnxTVo8DR76NmSvfDDmtIAqDrhGlweyctFqEy0dPHBV6g/W302RAmz0qbU2wOXvz NIrBoed0Rn4+lR0v2qTW9Z2ikvo96hxIB1q6bLfPrByO5qnzQFpGjNXiQiCI5FG6doKX rSHzIcMhVFFlWCYWDHuKmKikJsAS+6rW4qLFO1HmEFDt3bjAE0RSdOWZr1WBpAB4YFiN 1HY/o/Yy2AsskJSXxmbTm9Ea76BiBIj5HboY2sN0/3xWbzYVt/b+rQnO5mtlxvURyUcq jmrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bIpizLSnoe2R+eSFqeP9ozWQeFqAfekPvXgfOgs8XC4=; fh=iGoJJcKFU5qanozBDF4d7CgJX8+paF7vmrgHuY7MABI=; b=kd0DovTqJ9vzAPPogzjjcnNBnMnNkdAOn8UTxVs5GkoVEOiH+rHnXn9ZuX513as4ic 75z7NblVndaIyfjInOSZLd5rNyP0jvkWmSghlkW4Q0MCfPBvbSTYoHk9OqixqQxbtSub 4/A6pThIITb8C50ePvMAEouv/QQ24FwHSZf2pzuw8Kdka2D/LxmV7+e/eOS5Pjv37eqo ZC9PBh64nSg2ccciD5Fcv8a+ihbj6DX2c/AZ+M6oQvXwx9LEfsKto8PfYnR8hLDILDSn z5sfDENYW9jhf2HcGO16wkW7kb8rP5zroHuHuxYecR8srB+azgKgdrXeRdgP+6EwwW83 MqQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VNNbE1/i"; spf=pass (google.com: domain of linux-nfs+bounces-1128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i13-20020a63d44d000000b005ce0be7966fsi10695457pgj.898.2024.01.16.01.25.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 01:25:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VNNbE1/i"; spf=pass (google.com: domain of linux-nfs+bounces-1128-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1128-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 555542813E4 for ; Tue, 16 Jan 2024 09:25:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAF23134BA; Tue, 16 Jan 2024 09:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VNNbE1/i" 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 8DAE7134B3; Tue, 16 Jan 2024 09:25:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8EFCC433F1; Tue, 16 Jan 2024 09:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705397124; bh=30xm4MZoJSMEwfTJqHYMt6ZkXYEadXTojiW8Fi0Rh4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VNNbE1/i7rydiUKZgcGDTvh+3AbB73wLGn72Lz5rT12itOOjy54xzh7TylyD/++O1 xSoTvNsdxMpMSgdN8CzC9/Um4nEUTRyp8JA0oC2MtuqL+EbrJFQTgknUhIO4o58B5V M3dSACCnjbsmV9LqsqCh9fSgOnhF/HOvxbflB2tpwIRPlre50kdIlFWIJX3pzL7UKa M8jHTqCn7m1d2cvbTdfZk84pXBIq7vScYz7ig/kJPpu3Vrj1grPkWg2kOmDHW7LcjM xbZsNqiLdaJXW0Gl4M6++fmfiHAneAX4E2wudqrtlhMew4oeCkcdY7jJM9DGytJS7W +aiNHz3Whpu9A== Date: Tue, 16 Jan 2024 10:25:19 +0100 From: Christian Brauner To: dai.ngo@oracle.com Cc: Jorge Mora , "linux-nfs@vger.kernel.org" , linux-fsdevel Subject: Re: nfstest_posix failed with 6.7 kernel (resend) Message-ID: <20240116-hauch-unpraktisch-8bb7760c04ef@brauner> References: 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 Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Jan 15, 2024 at 01:05:37PM -0800, dai.ngo@oracle.com wrote: > (resend with correct Jorge Mora address) > > 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) > > The problem can be reproduced with both client and server running > 6.7 kernel. > > Bisecting points to commit 43b450632676: > 43b450632676: open: return EINVAL for O_DIRECTORY | O_CREAT > > This commit was introduced in 6.4-rc1 and back ported to LTS kernels. > I'm not sure if the fix for this should be in the fs or in nfstest_posix. > The commit 43b450632676 makes sense to me. No one should expect open(2) > to create the directory so the error returned should be EINVAL instead of > EEXIST as nfstest_posix expects. Please change the test. The EINVAL fix for open is a really important fix to the general vfs api. Christian