diff options
| author | Tal Zussman <tz2294@columbia.edu> | 2026-10-14 20:36:43 -0400 |
|---|---|---|
| committer | Andreas Gruenbacher <agruenba@redhat.com> | 2026-10-15 12:33:28 +0200 |
| commit | 1a4aeb6d6a08af1a2e2c52c84170561625819377 (patch) | |
| tree | 291d0d9588b1f931f9949169ebde36beb5a33a5e /scripts/patch-kernel | |
| parent | d0c4bce31a579216780b990a09250f15e00f38ff (diff) | |
| download | linux-next-1a4aeb6d6a08af1a2e2c52c84170561625819377.tar.gz linux-next-1a4aeb6d6a08af1a2e2c52c84170561625819377.zip | |
gfs2: fix the escaped block copy in gfs2_before_commit()
Commit d68d0c6c3fc7 ("gfs2: Use memcpy_{from,to}_page where
appropriate") made the escaped buffer copy read from the mempool page
it had just allocated instead of from the buffer, so the block written
to the log is whatever the pool page last held. If the journal is
replayed after a crash, the block is restored from that and the file's
data is corrupted. Only escaped buffers are affected: jdata blocks
whose first four bytes match GFS2_MAGIC. Copy from the buffer's folio
instead.
Fixes: d68d0c6c3fc7 ("gfs2: Use memcpy_{from,to}_page where appropriate")
Cc: stable@vger.kernel.org
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
