Module Name: src Committed By: maya Date: Wed Aug 7 20:45:53 UTC 2019
Modified Files: src/external/cddl/osnet/dist/uts/common/fs/zfs: zfs_vfsops.c Log Message: validate the length of args (like other filesystems) ok riastradh To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 \ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c diff -u src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c:1.24 src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c:1.25 --- src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c:1.24 Mon Jun 17 08:09:57 2019 +++ src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vfsops.c Wed Aug 7 20:45:53 2019 @@ -1993,6 +1993,9 @@ zfs_mount(vfs_t *vfsp, const char *path, if (uap == NULL) return (SET_ERROR(EINVAL)); + if (*data_len < sizeof *uap) + return (SET_ERROR(EINVAL)); + if (mvp->v_type != VDIR) return (SET_ERROR(ENOTDIR));