diff options
| author | Jacques Vidrine <nectar@FreeBSD.org> | 2004-02-10 21:08:01 +0000 |
|---|---|---|
| committer | Jacques Vidrine <nectar@FreeBSD.org> | 2004-02-10 21:08:01 +0000 |
| commit | 97a0e95990464b3a760a22b2ddde629f3e0be99e (patch) | |
| tree | 0ebba00a9f5b45f610cfa9bf2e3dc69a4519317c | |
| parent | 410f2d5521d2ca2b62b4aa38b7660fc602e7df73 (diff) | |
Notes
| -rw-r--r-- | UPDATING | 2 | ||||
| -rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -19,6 +19,8 @@ build and install as described in the COMMON ITEMS section. in some cases allow a normal user to unmount a file system when usermounts have been changed from enabled to disabled. + Fix a panic in pseudofs(9). + 20040205: p2 FreeBSD-SA-04:02.shmat Correct a reference counting bug in shmat(2). diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 28b1a6551ad0..d21145b416e3 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -525,6 +525,11 @@ pfs_read(struct vop_read_args *va) PRELE(proc); PFS_RETURN (EINVAL); } + if (buflen > MAXPHYS) { + if (proc != NULL) + PRELE(proc); + PFS_RETURN (EIO); + } sb = sbuf_new(sb, NULL, buflen, 0); if (sb == NULL) { if (proc != NULL) |
