linux-stable/fs/coda
Jan Harkes 3d8e72d974 coda: check for async upcall request using local state
Originally flagged by Smatch because the code implicitly assumed outSize
is not NULL for non-async upcalls because of a flag that was (not) set in
req->uc_flags.

However req->uc_flags field is in shared state and although the current
code will not allow it to be changed before the async request check the
code is more robust when it tests against the local outSize variable.

Link: https://lkml.kernel.org/r/20210908140308.18491-3-jaharkes@cs.cmu.edu
Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Cc: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Jing Yangyang <jing.yangyang@zte.com.cn>
Cc: Xin Tan <tanxin.ctf@gmail.com>
Cc: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Cc: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-09 10:02:51 -08:00
..
cache.c coda: move internal defs out of include/linux/ [ver #2] 2019-07-16 19:23:23 -07:00
cnode.c coda: ftoc validity check integration 2019-07-16 19:23:23 -07:00
coda_cache.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
coda_fs_i.h coda: add hinting support for partial file caching 2019-07-16 19:23:23 -07:00
coda_int.h coda: remove sysctl object from module when unused 2019-07-16 19:23:23 -07:00
coda_linux.c coda: move internal defs out of include/linux/ [ver #2] 2019-07-16 19:23:23 -07:00
coda_linux.h fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
coda_psdev.h coda: add hinting support for partial file caching 2019-07-16 19:23:23 -07:00
dir.c coda: avoid NULL pointer dereference from a bad inode 2021-11-09 10:02:51 -08:00
file.c coda: fix reference counting in coda_file_mmap error path 2021-04-23 14:42:39 -07:00
inode.c fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
Kconfig docs: filesystems: convert coda.txt to ReST 2020-05-05 09:22:21 -06:00
Makefile coda: remove sysctl object from module when unused 2019-07-16 19:23:23 -07:00
pioctl.c fs: make helpers idmap mount aware 2021-01-24 14:27:20 +01:00
psdev.c coda: add hinting support for partial file caching 2019-07-16 19:23:23 -07:00
symlink.c coda: move internal defs out of include/linux/ [ver #2] 2019-07-16 19:23:23 -07:00
sysctl.c coda: remove sysctl object from module when unused 2019-07-16 19:23:23 -07:00
upcall.c coda: check for async upcall request using local state 2021-11-09 10:02:51 -08:00