Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "David Hildenbrand (Arm)" <david@kernel.org>
To: Ding Feng <dingf3ng@gmail.com>, Brian Foster <bfoster@redhat.com>
Cc: Hugh Dickins <hughd@google.com>,
	Baolin Wang <baolin.wang@linux.alibaba.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org
Subject: Re: [PATCH v3 0/3] tmpfs: zero post-eof ranges on file extension
Date: Sat, 21 Nov 2026 13:47:44 +0100	[thread overview]
Message-ID: <7cc5ca1f-fbeb-422f-bc05-55b3f6b6db20@kernel.org> (raw)
In-Reply-To: <20261120051319.44456-1-dingf3ng@gmail.com>

On 11/20/26 06:13, Ding Feng wrote:
> Hi Brian,
> 
> I ran into this on tmpfs independently, and the series fixes it on
> v7.4-rc3 (65e4fd942). Patch 1 needed a one-line context fix (the
> i_private test in shmem_writeout() is now READ_ONCE(inode->i_private));
> patches 2 and 3 applied with reduced context.
> 
> Test: a 100-byte file, 'A' written at offset 50, 'X' stored at offset
> 200 through a shared mapping, then the file extended, then bytes 200
> and 50 read back (arm64, QEMU):
> 
>   extension                     unpatched    patched
>   fallocate(0, 150, 100)        'X'          0
>   fallocate(0, 1000, 100)       'X'          0
>   ftruncate(fd, 250)            'X'          0
>   pwrite 1 byte at 1099         'X'          0
> 
> Byte 50 reads 'A' in every case, and ext4 gives 0 on both kernels. I
> did not test the swapout path (patch 2).
> 
> Tested-by: Ding Feng <dingf3ng@gmail.com>

The series is from 2025. In order to do anything with that, either the author
has to revive it or someone else (you?) must pick that up to resend.

Thanks!

-- 
Cheers,

David


  reply	other threads:[~2026-11-21 12:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-21 15:22 [PATCH v3 0/3] tmpfs: zero post-eof ranges on file extension Brian Foster
2025-11-21 15:22 ` [PATCH v3 1/3] tmpfs: factor out folio zeroing logic at writeout time Brian Foster
2025-11-21 15:22 ` [PATCH v3 2/3] tmpfs: zero post-eof folio ranges on swapout Brian Foster
2025-11-21 15:22 ` [PATCH v3 3/3] tmpfs: zero post-eof ranges on file extension Brian Foster
2025-11-25  2:20 ` [PATCH v3 0/3] " Baolin Wang
2026-11-20  5:13 ` Ding Feng
2026-11-21 12:47   ` David Hildenbrand (Arm) [this message]
2026-11-21 15:27     ` Ding Feng

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=7cc5ca1f-fbeb-422f-bc05-55b3f6b6db20@kernel.org \
    --to=david@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=baolin.wang@linux.alibaba.com \
    --cc=bfoster@redhat.com \
    --cc=dingf3ng@gmail.com \
    --cc=hughd@google.com \
    --cc=linux-mm@kvack.org \
    /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