Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Paulo Alcantara <pc@manguebit.org>
To: Mark Bundschuh <mkbund@amazon.com>, Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>,
	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>, Diego Oliva <diego@bynar.io>,
	linux-cifs@vger.kernel.org, samba-technical@lists.samba.org,
	linux-kernel@vger.kernel.org, Mark Bundschuh <mkbund@amazon.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH] smb: client: handle zero DataOffset in CIFSSMBRead()
Date: Tue, 01 Dec 2026 18:08:11 -0300	[thread overview]
Message-ID: <ddbc20e638ae06ff141703327fcb23ae@manguebit.org> (raw)
In-Reply-To: <20261201200639.339917-1-mkbund@amazon.com>

Mark Bundschuh <mkbund@amazon.com> writes:

> commit 5be5bdda5863 ("smb: client: reject out-of-bounds DataOffset in
> CIFSSMBRead()") rejects any reply whose DataOffset points inside the
> READ_ANDX header, including a DataOffset of 0. Windows sends a DataOffset
> of 0 for a read at or beyond EOF, which cifs_readv_receive() and
> SMB2_read() both accept by treating the data as starting right after the
> header.
>
> Handle it the same way in CIFSSMBRead() rather than rejecting it, and
> keep the check that DataOffset + DataLength lies within the received
> response.
> ...

Applied.

      reply	other threads:[~2026-12-01 21:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 20:06 [PATCH] smb: client: handle zero DataOffset in CIFSSMBRead() Mark Bundschuh
2026-12-01 21:08 ` 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=ddbc20e638ae06ff141703327fcb23ae@manguebit.org \
    --to=pc@manguebit.org \
    --cc=bharathsm@microsoft.com \
    --cc=dhowells@redhat.com \
    --cc=diego@bynar.io \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mkbund@amazon.com \
    --cc=ronniesahlberg@gmail.com \
    --cc=samba-technical@lists.samba.org \
    --cc=smfrench@gmail.com \
    --cc=sprasad@microsoft.com \
    --cc=stable@vger.kernel.org \
    --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