Linux CIFS filesystem development
 help / color / mirror / Atom feed
From: Paulo Alcantara <pc@manguebit.org>
To: bob via B4 Relay <devnull+bobmcd.tuta.io@kernel.org>,
	Namjae Jeon <linkinjeon@kernel.org>,
	Ronnie Sahlberg <ronniesahlberg@gmail.com>,
	Shyam Prasad N <sprasad@microsoft.com>,
	Tom Talpey <tom@talpey.com>, Bharath SM <bharathsm@microsoft.com>,
	David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org,
	bob <bobmcd@tuta.io>
Subject: Re: [PATCH] smb: client: don't let the mfsymlinks probe overwrite an earlier error
Date: Wed, 02 Dec 2026 20:52:21 -0300	[thread overview]
Message-ID: <8a76cbf3734bfe98b0765f4fe99dc950@manguebit.org> (raw)
In-Reply-To: <20261203-fix-c1-cifs-mfsymlinks-rc-v1-1-96b7d8892123@tuta.io>

bob via B4 Relay <devnull+bobmcd.tuta.io@kernel.org> writes:

> From: bob <bobmcd@tuta.io>
>
> 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.

      reply	other threads:[~2026-12-02 23:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 19:55 [PATCH] smb: client: don't let the mfsymlinks probe overwrite an earlier error bob via B4 Relay
2026-12-02 23:52 ` Paulo Alcantara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a76cbf3734bfe98b0765f4fe99dc950@manguebit.org \
    --to=pc@manguebit.org \
    --cc=bharathsm@microsoft.com \
    --cc=bobmcd@tuta.io \
    --cc=devnull+bobmcd.tuta.io@kernel.org \
    --cc=dhowells@redhat.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=ronniesahlberg@gmail.com \
    --cc=samba-technical@lists.samba.org \
    --cc=sprasad@microsoft.com \
    --cc=tom@talpey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox