Re: [PATCH] ksmbd: fail an open whose stream cannot be created
From: Namjae Jeon
Date: Fri Nov 27 2026 - 20:17:17 EST
On Sat, Nov 28, 2026 at 9:59 AM Ian Bridges <icb@xxxxxxxxxxxx> wrote:
>
> When smb2_set_stream_name_xattr() cannot store the xattr of a new named
> stream, it logs the error and returns success. The open then succeeds
> with FILE_CREATED, although the stream does not exist. This happens,
> for example, when the caller cannot write the file. Return the error
> so that the open fails instead of reporting a stream that was never
> created.
>
> Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Ian Bridges <icb@xxxxxxxxxxxx>
Applied it to #ksmbd-for-next.
Thanks!