On Sat, 27 Jan 2018, Konstantin Belousov wrote:
On Sat, Jan 27, 2018 at 03:33:52PM +, Pedro F. Giffuni wrote:
Log:
{ext2|ufs}_readdir: Set limit on valid ncookies values.
Sanitize the values that will be assigned to ncookies so that we ensure
they are sane and we can handle them.
On 01/27/18 11:03, Konstantin Belousov wrote:
On Sat, Jan 27, 2018 at 03:33:52PM +, Pedro F. Giffuni wrote:
Author: pfg
Date: Sat Jan 27 15:33:52 2018
New Revision: 328479
URL: https://svnweb.freebsd.org/changeset/base/328479
Log:
{ext2|ufs}_readdir: Set limit on valid ncookies values.
You aren't allowed to set resid like this. Changes in resid indicate amount
of I/O done. If you think it's bogus, you need to either return EINVAL or
use a smaller value to figure out your buffer sizes. Thi s is bogus, please
back it out.
Warner
On Jan 27, 2018 8:34 AM, "Pedro F. Giffuni" wrote:
On Sat, Jan 27, 2018 at 03:33:52PM +, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Sat Jan 27 15:33:52 2018
> New Revision: 328479
> URL: https://svnweb.freebsd.org/changeset/base/328479
>
> Log:
> {ext2|ufs}_readdir: Set limit on valid ncookies values.
>
> Sanitize the values that wil
Author: pfg
Date: Sat Jan 27 15:33:52 2018
New Revision: 328479
URL: https://svnweb.freebsd.org/changeset/base/328479
Log:
{ext2|ufs}_readdir: Set limit on valid ncookies values.
Sanitize the values that will be assigned to ncookies so that we ensure
they are sane and we can handle them.