On Wed, Dec 14, 2016 at 12:27:41PM -0800, Linus Torvalds wrote: > diff --git a/mm/filemap.c b/mm/filemap.c > index 69568388c699..b06517b7f97f 100644 > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -1637,7 +1637,7 @@ static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos, > int error = 0; > > if (unlikely(*ppos >= inode->i_sb->s_maxbytes)) > - return -EINVAL; > + return 0; > iov_iter_truncate(iter, inode->i_sb->s_maxbytes); BTW, shouldn't we truncate to *ppos - inode->i_sb->s_maxbytes here as well? -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html