Re: [PATCH] rnull: do not zero past the backing page

From: Jens Axboe

Date: Fri Dec 04 2026 - 10:09:59 EST


On Fri, Dec 4, 2026 at 7:04?AM Andreas Hindborg <a.hindborg@xxxxxxxxxx> wrote:
>
> "Vitaly Wool" <vitaly.wool@xxxxxxxxxxx> writes:
>
> > When a read hits a backing page that was never written, rnull fills the
> > segment with zeroes up to the end of the segment's current page, which
> > is a page of the bio, not of the backing store. If the read does not
> > start at the beginning of the backing page, the zeroes run on into the
> > next backing page, which may hold data, and the read returns zeroes for
> > it. For instance, with 512 byte blocks, a direct read of 4K at sector 7
> > into a page aligned buffer, where only sector 8 was written, returns
> > zeroes for sector 8. Fix this.
> >
> > Signed-off-by: Vitaly Wool <vitaly.wool@xxxxxxxxxxx>
> > Assisted-By: Claude Opus 5.5 <noreply@xxxxxxxxxxxxx>
>
> This patch is targeting a downstream tree.
>
> It does not bother me that you send these to list, but it might be
> confusing to others.

Honestly it is just noise, and I'd say the same for any other
out-of-tree driver/code. If it's not in the upstream kernel, it doesn't
belong on the list, so please don't send it there.

--
Jens Axboe