Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2019 16:52:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237883] pseudofs truncates pfs_read output to MAXPHYS
Message-ID:  <bug-237883-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237883

            Bug ID: 237883
           Summary: pseudofs truncates pfs_read output to MAXPHYS
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dchagin@FreeBSD.org

pfs_read() code:

        buflen =3D uio->uio_offset + uio->uio_resid;
        if (buflen > MAXPHYS)
                buflen =3D MAXPHYS;

        sb =3D sbuf_new(sb, NULL, buflen + 1, 0);
        if (sb =3D=3D NULL) {
                error =3D EIO;
                goto ret;
        }

strange code, I need to redo it to autoextend

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237883-227>