linux/fs/overlayfs
Miklos Szeredi a4ac9d45c0 ovl: fix lseek overflow on 32bit
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: 9e46b840c705 ("ovl: support stacked SEEK_HOLE/SEEK_DATA")
Cc: <stable@vger.kernel.org> # v4.19
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2020-02-03 11:41:53 +01:00
..
2020-01-22 20:11:41 +01:00
2020-01-24 09:46:45 +01:00
2020-02-03 11:41:53 +01:00
2020-01-24 09:46:46 +01:00
2020-01-24 09:46:45 +01:00
2020-01-24 09:46:45 +01:00
2020-01-24 09:46:46 +01:00
2020-01-24 09:46:45 +01:00