[Bug 237883] pseudofs truncates pfs_read output to MAXPHYS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 13 16:52:28 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237883

            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 at FreeBSD.org
          Reporter: dchagin at FreeBSD.org

pfs_read() code:

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

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

strange code, I need to redo it to autoextend

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


More information about the freebsd-bugs mailing list