aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2022-10-20 17:18:58 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2022-10-20 17:18:58 +0200
commit9fa248c65bdbf5af0a2f74dd38575acfc8dfd2bf (patch)
tree4fc373a67c8d59509c4db530a86da7c0252f1267 /arch/arc
parentLinux 6.1-rc1 (diff)
fuse: fix readdir cache race
There's a race in fuse's readdir cache that can result in an uninitilized page being read. The page lock is supposed to prevent this from happening but in the following case it doesn't: Two fuse_add_dirent_to_cache() start out and get the same parameters (size=0,offset=0). One of them wins the race to create and lock the page, after which it fills in data, sets rdc.size and unlocks the page. In the meantime the page gets evicted from the cache before the other instance gets to run. That one also creates the page, but finds the size to be mismatched, bails out and leaves the uninitialized page in the cache. Fix by marking a filled page uptodate and ignoring non-uptodate pages. Reported-by: Frank Sorenson <fsorenso@redhat.com> Fixes: 5d7bc7e8680c ("fuse: allow using readdir cache") Cc: <stable@vger.kernel.org> # v4.20 Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'arch/arc')
0 files changed, 0 insertions, 0 deletions
-1/+1 2016-10-09powerpc32: make PLT call in _mcount compatible with -msecure-plt (bug 20554)Alan Modra1-3/+24 2016-01-04Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1 2015-01-02Update copyright dates with scripts/update-copyrights.Joseph Myers1-1/+1 2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae1-1/+1 2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers1-1/+1 2012-07-06Fix missing _mcount@GLIBC_2.0 on powerpc32Andreas Schwab1-1/+5 2012-02-09Replace FSF snail mail address with URLs.Paul Eggert1-3/+2 2011-09-07Fix profiling on powerpc32 secure-plt shared libs and PIEsAlan Modra1-2/+1 2006-01-07* elf/tst-tls8.c (do_test): Use $ORIGIN in module names.Ulrich Drepper1-3/+5 2005-06-17* sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_runtime_setup):Ulrich Drepper1-13/+7 2005-05-21* sysdeps/powerpc/powerpc32/sysdep.h (PSEUDO_RET): Don't useUlrich Drepper1-1/+1 2004-12-22(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper1-12/+16 2007-07-122.5-18.1Jakub Jelinek1-16/+12 2002-09-05Update.Ulrich Drepper1-0/+85