linux/fs/coda
Jan Harkes 73f589215b coda: fix 'kernel memory exposure attempt' in fsync
commit d337b66a4c upstream.

When an application called fsync on a file in Coda a small request with
just the file identifier was allocated, but the declared length was set
to the size of union of all possible upcall requests.

This bug has been around for a very long time and is now caught by the
extra checking in usercopy that was introduced in Linux-4.8.

The exposure happens when the Coda cache manager process reads the fsync
upcall request at which point it is killed. As a result there is nobody
servicing any further upcalls, trapping any processes that try to access
the mounted Coda filesystem.

Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-02-13 18:42:15 +00:00
..
cache.c move d_rcu from overlapping d_child to overlapping d_alias 2015-01-15 10:44:58 +00:00
cnode.c fs/coda: use __func__ 2014-06-06 16:08:09 -07:00
coda_cache.h take coda-private headers out of include/linux 2011-01-12 20:02:48 -05:00
coda_fs_i.h coda: Cache permisions in struct coda_inode_info in a kuid_t. 2013-02-13 06:00:54 -08:00
coda_int.h fs/coda/inode.c: add __init to init_inodecache() 2014-04-03 16:21:25 -07:00
coda_linux.c coda: Restrict coda messages to the initial user namespace 2013-02-13 06:00:53 -08:00
coda_linux.h fs/coda: logging prefix uniformization 2014-06-06 16:08:09 -07:00
dir.c fs/coda: use __func__ 2014-06-06 16:08:09 -07:00
file.c file->f_op is never NULL... 2013-10-24 23:34:54 -04:00
inode.c fs/coda: use __func__ 2014-06-06 16:08:09 -07:00
Kconfig fs/Kconfig: move coda out 2009-01-22 13:16:01 +03:00
Makefile fs: change to new flag variable 2011-03-17 14:02:57 +01:00
pioctl.c new helper: file_inode(file) 2013-02-22 23:31:31 -05:00
psdev.c fs/coda: use __func__ 2014-06-06 16:08:09 -07:00
symlink.c take coda-private headers out of include/linux 2011-01-12 20:02:48 -05:00
sysctl.c coda: convert use of typedef ctl_table to struct ctl_table 2014-06-06 16:08:16 -07:00
upcall.c coda: fix 'kernel memory exposure attempt' in fsync 2018-02-13 18:42:15 +00:00