Re: [PATCH 3/7] ceph: Promote to unsigned long long before shifting

2020-10-06 Thread Jeff Layton
On Sun, 2020-10-04 at 19:04 +0100, Matthew Wilcox (Oracle) wrote: > On 32-bit systems, this shift will overflow for files larger than 4GB. > > Cc: sta...@vger.kernel.org > Fixes: 61f68816211e ("ceph: check caps in filemap_fault and page_mkwrite") > Signed-off-by: Matthew Wilcox (Oracle) > --- >

Re: [PATCH 3/7] ceph: Promote to unsigned long long before shifting

2020-10-06 Thread Jeff Layton
On Sun, 2020-10-04 at 19:04 +0100, Matthew Wilcox (Oracle) wrote: > On 32-bit systems, this shift will overflow for files larger than 4GB. > > Cc: sta...@vger.kernel.org > Fixes: 61f68816211e ("ceph: check caps in filemap_fault and page_mkwrite") > Signed-off-by: Matthew Wilcox (Oracle) > --- >

[PATCH 3/7] ceph: Promote to unsigned long long before shifting

2020-10-04 Thread Matthew Wilcox (Oracle)
On 32-bit systems, this shift will overflow for files larger than 4GB. Cc: sta...@vger.kernel.org Fixes: 61f68816211e ("ceph: check caps in filemap_fault and page_mkwrite") Signed-off-by: Matthew Wilcox (Oracle) --- fs/ceph/addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git