android_kernel_samsung_msm8976/fs/fuse
Mateusz Jurczyk 821740a330 fuse: initialize the flock flag in fuse_file on allocation
commit 68227c03cba84a24faf8a7277d2b1a03c8959c2c upstream.

Before the patch, the flock flag could remain uninitialized for the
lifespan of the fuse_file allocation. Unless set to true in
fuse_file_flock(), it would remain in an indeterminate state until read in
an if statement in fuse_release_common(). This could consequently lead to
taking an unexpected branch in the code.

The bug was discovered by a runtime instrumentation designed to detect use
of uninitialized memory in the kernel.

Signed-off-by: Mateusz Jurczyk <mjurczyk@google.com>
Fixes: 37fb3a30b4 ("fuse: fix flock")
Cc: <stable@vger.kernel.org> # v3.1+
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2019-07-27 21:44:16 +02:00
..
control.c
cuse.c fuse: Fix O_DIRECT operations vs cached writeback misorder 2015-02-02 15:10:33 -08:00
dev.c fuse: Add support for d_canonical_path 2018-02-06 13:12:18 +01:00
dir.c fuse: Add support for d_canonical_path 2018-02-06 13:12:18 +01:00
file.c fuse: initialize the flock flag in fuse_file on allocation 2019-07-27 21:44:16 +02:00
fuse_i.h fuse: Add support for d_canonical_path 2018-02-06 13:12:18 +01:00
fuse_shortcircuit.h fuse: Add support for shortcircuited read/write for files 2016-02-04 13:23:34 +05:30
inode.c fuse: fix wrong assignment of ->flags in fuse_send_init() 2019-07-27 21:41:59 +02:00
Kconfig
Makefile fuse: Add support for shortcircuited read/write for files 2016-02-04 13:23:34 +05:30
shortcircuit.c fs:fuse: Ensure update of fuse inode attributes in shortcircuit 2016-02-04 13:23:34 +05:30