Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 0CA174B0E51 for ; Wed, 16 Sep 2026 16:48:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789577343; cv=none; b=KJr3uWBnu3hcS/qVcq6LreGWMRp4J4IhuJ1GrAN5e84izI7OiRXkvDw77Z63ofPfmz4G7ZtonO+edvjptDYQRc4nN1gzHMi6eCJWUnj2Jg/WIxoAlISbLuUF3wYfckJP9/6eznwAvORfJAvvoMatw7kZwkKdDw7ZI5HtApHMCqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789577343; c=relaxed/simple; bh=Bp5omEoJG+DUAunBSllygbvcGfDQqNbXyQocwuhSWl8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=DxSTx1+2178iTiAJHRBHF4iT6tO88wW7FJifChn3QvoHe2Qrtab2eu/vzLhZuE7IBLiE04nObzVSxLF7kMBHIYYgORcOREtVEZyvtyQyAWDqcoeQoJBJxK6yhL+RbBCl7j5HuhJXVdn38ic3fC6ugGVheY3BP9elPQ7uSQRWlyQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BhSuzku1; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BhSuzku1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5D541F00893; Wed, 16 Sep 2026 16:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789577336; bh=lz1OPZaUzLrCgU0jl4xILityYl3KVe1tVOWrgiWZE+8=; h=Subject:To:Cc:From:Date; b=BhSuzku1q1FWs5iulSGT1k8wcgxkrfc02raaUyziqtPxy0WMU8fucWdAltvHEU6XS cQXfMVoAj2Q0i4bZ9fMQpUHIDzaD7zUstZkE3dgNsjvx2/f1cT2Pqixc8E6yOvTvUm uHD59Ymr+6SCVlBQYzZBaRwC4HqHcoP9c1K8uZqM= Subject: FAILED: patch "[PATCH] smb: client: fix file type corruption in" failed to apply to 6.1-stable tree To: pc@manguebit.org,bharathsm@microsoft.com,linkinjeon@kernel.org,ronniesahlberg@gmail.com,sprasad@microsoft.com,tom@talpey.com Cc: From: Date: Wed, 16 Sep 2026 17:43:31 +0100 Message-ID: <2026091631-outsider-blog-cbef@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 6bd360447941357e959414a525aa62576a448116 # git commit -s git send-email --to '' --in-reply-to '2026091631-outsider-blog-cbef@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 6bd360447941357e959414a525aa62576a448116 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Sun, 6 Sep 2026 16:01:24 -0300 Subject: [PATCH] smb: client: fix file type corruption in cifs_reparse_point_to_fattr() Setting the file type in cf_mode without clearing the existing S_IFMT bits first is wrong as it corrupts the file type when cf_mode already has type bits set (e.g. S_IFREG | S_IFLNK == S_IFDIR | S_IFREG). Clear S_IFMT before setting S_IFLNK for native and SMB1 symlinks. Closes: https://sashiko.dev/#/patchset/20260906181540.647469-1-pc%40manguebit.org Reviewed-by: Namjae Jeon Signed-off-by: Paulo Alcantara Cc: Ronnie Sahlberg Cc: Shyam Prasad N Cc: Tom Talpey Cc: Bharath SM Cc: stable@vger.kernel.org diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c index 616ca2dbfac4..b6bded042e78 100644 --- a/fs/smb/client/reparse.c +++ b/fs/smb/client/reparse.c @@ -1280,6 +1280,7 @@ bool cifs_reparse_point_to_fattr(struct cifs_sb_info *cifs_sb, break; case 0: /* SMB1 symlink */ case IO_REPARSE_TAG_SYMLINK: + fattr->cf_mode &= ~S_IFMT; fattr->cf_mode |= S_IFLNK; break; default: