diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-10-04 19:04:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-10 10:23:59 +0100 |
commit | fab99223d0481eb126645e74406475685f4d7d30 (patch) | |
tree | 78f5345a8f827e57d086704c06e54dc7c96a4203 /net/ceph | |
parent | 1c01388c5e29221fd43bb915a2b98fc08f341adf (diff) |
ceph: promote to unsigned long long before shifting
commit c403c3a2fbe24d4ed33e10cabad048583ebd4edf upstream.
On 32-bit systems, this shift will overflow for files larger than 4GB.
Cc: stable@vger.kernel.org
Fixes: 61f68816211e ("ceph: check caps in filemap_fault and page_mkwrite")
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ceph')
0 files changed, 0 insertions, 0 deletions