kernel_samsung_a53x/fs/ubifs
Matthew Wilcox (Oracle) 3b6b7dedc2 ubifs: Set page uptodate in the correct place
[ Upstream commit 723012cab779eee8228376754e22c6594229bf8f ]

Page cache reads are lockless, so setting the freshly allocated page
uptodate before we've overwritten it with the data it's supposed to have
in it will allow a simultaneous reader to see old data.  Move the call
to SetPageUptodate into ubifs_write_end(), which is after we copied the
new data into the page.

Fixes: 1e51764a3c2a ("UBIFS: add new flash file system")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 09:22:16 +01:00
..
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
budget.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
commit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
compress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dir.c ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path 2024-11-18 12:12:59 +01:00
file.c ubifs: Set page uptodate in the correct place 2024-11-19 09:22:16 +01:00
find.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ioctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
journal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
key.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
log.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lprops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpt_commit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
master.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
orphan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
recovery.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
replay.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shrinker.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
super.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tnc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tnc_commit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tnc_misc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ubifs-media.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ubifs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00