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 8C5664B7A2B for ; Wed, 23 Sep 2026 13:24:59 +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=1790169904; cv=none; b=IRpl/AtlhzGiyh+brNPZ1dxq4rBxlHvByIpCdct7OYef214jVOqZYCRB99DK7mE+q3VMPOrvs7yb8fpW9p9PgKbpL/rt0tvIxr0Mo8O3F8OD76IG9ffQH9U0qNlKaIwB4n8CYliXTUQ9pYKaI0kv5gC7DbAJsLn3ur+mdJ034ZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790169904; c=relaxed/simple; bh=oCEWeSPc7JFFEAmjxC67FIn5b8/zjUrN7tgV2kmb5pk=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=jMTr7onR5LqvTqX2LtRmf8VmHwYNOk4B9/gs085OFFckcl5c796gFuejjbiGFXORqHMyLnS757LAV/ZtKYg1e+S1QIJfarGjlCPSzN8tJJYDPPYIF1g4A8aQnn3quugmH7L4TE0BAdl3D6sYugz3UBIFuTjruhCebXbBBNL6pv4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TAptCk8U; 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="TAptCk8U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7DB11F000FF; Wed, 23 Sep 2026 13:24:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790169895; bh=9meOHWh3+AjdsFBz38wUBIYhoE+gEgympuMbfeUKxZo=; h=Subject:To:Cc:From:Date; b=TAptCk8USrVr5xxEyi8ayGcTbDjbqnKKEOmb0hF/FDcE5TcsZx+mG+KWO2Tbb8Isk dtwDD2Uv08IIF2rhSzmneNmrrhsfYmk16HP749rGoiPGJbWrj0gpHk8SJSxUTZXzRB akMDvQBXd4dELmcU9eLmMqIsspwMkU6yC82iUBkk= Subject: FAILED: patch "[PATCH] ksmbd: fix partial normalized name responses" failed to apply to 6.1-stable tree To: linkinjeon@kernel.org,chenxiaosong@kylinos.cn,mobin@mobintestserver.ir Cc: From: Date: Wed, 23 Sep 2026 15:24:51 +0200 Message-ID: <2026092351-theft-cheek-5069@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 f4fafaf02174c32bce2f9bb4196fadf13f1fd96e # git commit -s git send-email --to '' --in-reply-to '2026092351-theft-cheek-5069@gregkh' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From f4fafaf02174c32bce2f9bb4196fadf13f1fd96e Mon Sep 17 00:00:00 2001 From: Namjae Jeon Date: Wed, 9 Sep 2026 09:58:22 +0900 Subject: [PATCH] ksmbd: fix partial normalized name responses Windows may request FILE_NORMALIZED_NAME_INFORMATION with an output buffer that only fits the fixed portion of the variable-length response. Treat the fixed portion as FILE_NORMALIZED_NAME_INFORMATION_SIZE so ksmbd returns STATUS_BUFFER_OVERFLOW instead of STATUS_INFO_LENGTH_MISMATCH. This avoids rejecting valid partial normalized-name responses. Fixes: 6b8b79226bc3 ("ksmbd: fix partial file information responses") Reported-by: Mobin Aydinfar Reviewed-by: ChenXiaoSong Signed-off-by: Namjae Jeon diff --git a/fs/smb/server/smb2pdu.c b/fs/smb/server/smb2pdu.c index 8acc5174530b..0436b7c898b1 100644 --- a/fs/smb/server/smb2pdu.c +++ b/fs/smb/server/smb2pdu.c @@ -7312,6 +7312,9 @@ static int smb2_get_info_file(struct ksmbd_work *work, case FILE_ALTERNATE_NAME_INFORMATION: fixed_len = FILE_ALTERNATE_NAME_INFORMATION_SIZE; break; + case FILE_NORMALIZED_NAME_INFORMATION: + fixed_len = FILE_NORMALIZED_NAME_INFORMATION_SIZE; + break; case FILE_STREAM_INFORMATION: fixed_len = FILE_STREAM_INFORMATION_SIZE; break; diff --git a/fs/smb/server/smb2pdu.h b/fs/smb/server/smb2pdu.h index a6200d8630e2..ca8e27f7b712 100644 --- a/fs/smb/server/smb2pdu.h +++ b/fs/smb/server/smb2pdu.h @@ -212,6 +212,7 @@ struct file_sparse { #define FILE_ALLOCATION_INFORMATION_SIZE 19 #define FILE_END_OF_FILE_INFORMATION_SIZE 20 #define FILE_ALTERNATE_NAME_INFORMATION_SIZE 8 +#define FILE_NORMALIZED_NAME_INFORMATION_SIZE 8 #define FILE_STREAM_INFORMATION_SIZE 32 #define FILE_PIPE_INFORMATION_SIZE 23 #define FILE_PIPE_LOCAL_INFORMATION_SIZE 24