linux/fs/overlayfs
Miklos Szeredi ac157dd149 ovl: fix lseek overflow on 32bit
commit a4ac9d45c0 upstream.

ovl_lseek() is using ssize_t to return the value from vfs_llseek().  On a
32-bit kernel ssize_t is a 32-bit signed int, which overflows above 2 GB.

Assign the return value of vfs_llseek() to loff_t to fix this.

Reported-by: Boris Gjenero <boris.gjenero@gmail.com>
Fixes: 9e46b840c7 ("ovl: support stacked SEEK_HOLE/SEEK_DATA")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2020-02-11 04:36:55 -08:00
..
copy_up.c ovl: don't use a temp buf for encoding real fh 2019-12-10 16:00:55 +01:00
dir.c ovl: relax WARN_ON() on rename to self 2019-12-10 16:00:55 +01:00
export.c ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
file.c ovl: fix lseek overflow on 32bit 2020-02-11 04:36:55 -08:00
inode.c ovl: fix corner case of non-unique st_dev;st_ino 2019-12-10 16:00:55 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
namei.c overlayfs fixes for 5.5-rc2 2019-12-14 11:13:54 -08:00
overlayfs.h ovl: make sure that real fid is 32bit aligned in memory 2019-12-10 16:00:55 +01:00
ovl_entry.h ovl: fix lookup failure on multi lower squashfs 2019-12-10 16:00:55 +01:00
readdir.c ovl: fix wrong WARN_ON() in ovl_cache_update_ino() 2020-02-11 04:36:55 -08:00
super.c ovl: fix lookup failure on multi lower squashfs 2019-12-10 16:00:55 +01:00
util.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00