On Wed, Aug 30, 2017 at 04:41:28PM +0100, Al Viro wrote: > On Wed, Aug 30, 2017 at 04:59:59PM +0200, Christoph Hellwig wrote: > > - fpos = vma->vm_pgoff; > > - fpos <<= PAGE_SHIFT; > > > + loff_t fpos = vma->vm_pgoff << PAGE_SHIFT; > > Umm... Are you sure it's OK on 32bit hosts? It's not. Fixed.