From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=143.255.12.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796255545; b=PbsyYjZ91fX1zG4Ox1UdrdaisY6oO+Tn9BJQ5COLS2PkfRFJT3cq+zuXa+39o7TljTFk LpFxKJU3IN8NM58TqiAwhHn4kmzyL6eLYQS5KOUETb7YikhUZ1Iv/Ku6HGv/CcpNnIaix BFBsI9a31ZrEktOAH9V3n6zZGJNwDSUpOSC8TG+upWA11krzhkV6rrs9Vb1PcbkFkmYJR JWkLv6zHcMdcq+hWqj+HUygheBORxgqzlr5sZmnteyul0UYTYhXxaCmtykkiu52VJGUNV 7Kg4v7XfzlXQfSigDljFP+F89SywX7TLsz9GPEC4S5eFzy8qJpry0CWHrpWzPx+NJgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796255545; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:From:To:Cc:Subject: In-Reply-To:References:Date:MIME-Version:Content-Type; bh=MDaQDDTKNcKbrKJtB4EXzqLjha5oTOMduLQN3a00BfY=; b=pWtUMaJOo9nOn9wzSA+hD6JoDraK3yICHtVjKwck/71MgBhXnB13omJVIEBnlvtqsuYk axtAzaHXByn1MO6wLHqnsMDk69LURPJ44loeE2X7mZFBSGCgTdaGWsUZeih+0P+gFj10m JzuCjcoPWa19tgXrZ2YWlPRbukoYPzmD7wa+1d7+D526EoInr9rWyA7a5mIq+yXc0cQ0B tubt/ypCTYANSPwbzbVROom/AvcrGep4tgZ2nBzsBzj9qVGF8Iq3un3Q5Fc9tiZOjADAF 9uZRfN7t3URvx0K8Via+EA3TA98Zm70KkP6rYJdDa+7lWFk6z1k/4k6wclQKUqhWE3Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=manguebit.org; spf=pass smtp.mailfrom=manguebit.org; dkim=pass header.d=manguebit.org header.i=@manguebit.org header.a=rsa-sha256 header.s=dkim header.b=Uo9eq+9o; arc=none smtp.remote-ip=143.255.12.172 Received: from mx1.manguebit.org (mx1.manguebit.org [143.255.12.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71321606A322 for ; Wed, 2 Dec 2026 23:52:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 71321606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manguebit.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manguebit.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manguebit.org header.i=@manguebit.org header.a=rsa-sha256 header.s=dkim header.b=Uo9eq+9o DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=manguebit.org; s=dkim; h=Content-Type:MIME-Version:Date:References: In-Reply-To:Subject:Cc:To:From:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MDaQDDTKNcKbrKJtB4EXzqLjha5oTOMduLQN3a00BfY=; b=Uo9eq+9oNPTVPuAnGcJwOvVEkR MTz3WgdfM1aZ/O/Fx5Y2V2pRclFuFuEPyeyt9+mbOkuJYX+1rxZogZcLJY1V0nTgbFfx3fduRcgjw 74y8O/1eCEjs3LoduhG+nzwjJhFjoIrRPg2TpwFJxw5V7LXd5pVN7ZuuT2+MrsTk6vVWpqiAU16d2 owKIVjIl1Nq9RC+9284MGZSjjy7lUVQupMtYs6NbpVd0/QwMj00XDklJuOjTq+c6KhHDe29Vw0Okq cGUZ6Ky7Z3GVCZMWwNPmxsBzVFoFxvv7kLniabbQo/AwaN7Q6dc3Cd6wPCU3vJ9uHLt0dB4m2jHRT nuHpUwiA==; Received: from pc by mx1.manguebit.org with local (Exim 4.100.1) id 1xYu7a-00000001X0t-1BW5; Wed, 02 Dec 2026 20:52:22 -0300 Message-ID: <8a76cbf3734bfe98b0765f4fe99dc950@manguebit.org> From: Paulo Alcantara To: bob via B4 Relay , Namjae Jeon , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Bharath SM , David Howells Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, bob Subject: Re: [PATCH] smb: client: don't let the mfsymlinks probe overwrite an earlier error In-Reply-To: <20261203-fix-c1-cifs-mfsymlinks-rc-v1-1-96b7d8892123@tuta.io> References: <20261203-fix-c1-cifs-mfsymlinks-rc-v1-1-96b7d8892123@tuta.io> Date: Wed, 02 Dec 2026 20:52:21 -0300 X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain bob via B4 Relay writes: > From: bob > > Commit 7c4bf530aefa ("smb: client: avoid breaking the file lease when > probing mfsymlinks") switched the Minshall+French symlink probe in > cifs_get_fattr() and smb311_posix_get_fattr() from storing its result in > a throw-away 'tmprc' to assigning it to 'rc': > > if (sbflags & CIFS_MOUNT_MF_SYMLINKS) { > rc = cifs_check_mf_symlink(...); > } > > At that point 'rc' may already hold an error from the reparse point > handling above (reparse_info_to_fattr() or the reparse handling in > smb311_posix_get_fattr()), which fills in the fattr and still returns > the error. cifs_check_mf_symlink() returns 0 for everything that does > not look like an mfsymlink (it only fails with -ENOMEM), so the earlier > error is lost. > ... Applied.