diff options
author | Vincent Whitchurch <[email protected]> | 2023-06-29 16:17:57 +0200 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-07-08 09:29:30 -0700 |
commit | 08bab74ae653b57bb2bfcec7d499bfe7ff0efe4f (patch) | |
tree | 3c9262c96a5067ca13b7ef83e8c251e80a8d0041 /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 191fcdb6c9cf8b738b1628cbcf3af63d545c825c (diff) |
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/[email protected]
Fixes: e994f5b677ee ("squashfs: cache partial compressed blocks")
Signed-off-by: Vincent Whitchurch <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Phillip Lougher <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions