Home
last modified time | relevance | path

Searched hist:"08 bab74a" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/squashfs/
H A Dblock.c08bab74a Thu Jun 29 09:17:57 CDT 2023 Vincent Whitchurch <vincent.whitchurch@axis.com> squashfs: fix cache race with migration

Migration replaces the page in the mapping before copying the contents and
the flags over from the old page, so check that the page in the page cache
is really up to date before using it. Without this, stressing squashfs
reads with parallel compaction sometimes results in squashfs reporting
data corruption.

Link: https://lkml.kernel.org/r/20230629-squashfs-cache-migration-v1-1-d50ebe55099d@axis.com
Fixes: e994f5b677ee ("squashfs: cache partial compressed blocks")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Phillip Lougher <phillip@squashfs.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>