mirror_zfs/module/os/freebsd/zfs
Richard Yao 957c3776f2 FreeBSD: Fix out of bounds read in zfs_ioctl_ozfs_to_legacy()
There is an off by 1 error in the check. Fortunately, this function does
not appear to be used in kernel space, despite being compiled as part of
the kernel module. However, it is used in userspace. Callers of
lzc_ioctl_fd() likely will crash if they attempt to use the
unimplemented request number.

This was reported by FreeBSD's coverity scan.

Reported-by: Coverity (CID 1432059)
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14135
2022-12-01 12:39:43 -08:00
..
abd_os.c Avoid small buffer copying on write 2022-07-26 10:10:37 -07:00
arc_os.c FreeBSD: Fix integer conversion for vnlru_free{,_vfsops}() 2022-09-28 10:35:13 -07:00
crypto_os.c FreeBSD: Improve crypto_dispatch() handling 2022-07-26 10:10:37 -07:00
dmu_os.c FreeBSD: Clean up ASSERT/VERIFY use in module 2021-09-14 12:02:23 -07:00
hkdf.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
kmod_core.c zfs: add missed dependency of zfs module on zlib 2021-09-14 14:30:39 -07:00
spa_os.c FreeBSD: Fix uninitialized pointer read in spa_import_rootpool() 2022-12-01 12:39:40 -08:00
sysctl_os.c Restore FreeBSD sysctl processing for arc.min and arc.max 2021-09-14 14:31:01 -07:00
vdev_file.c module: zfs: fix unused, remove argsused 2022-02-16 17:58:56 -08:00
vdev_geom.c Improve too large physical ashift handling 2022-09-21 13:15:15 -07:00
vdev_label_os.c FreeBSD: Clean up ASSERT/VERIFY use in module 2021-09-14 12:02:23 -07:00
zfs_acl.c Fix ACL checks for NFS kernel server 2022-03-20 21:21:18 -07:00
zfs_ctldir.c FreeBSD: stop passing LK_INTERLOCK to VOP_LOCK 2022-09-28 10:35:13 -07:00
zfs_debug.c Annotated dprintf as printf-like 2021-06-24 13:12:36 -07:00
zfs_dir.c FreeBSD: Clean up ASSERT/VERIFY use in module 2021-09-14 12:02:23 -07:00
zfs_file_os.c FreeBSD: handle V_PCATCH 2022-09-28 10:35:13 -07:00
zfs_ioctl_compat.c FreeBSD: Fix out of bounds read in zfs_ioctl_ozfs_to_legacy() 2022-12-01 12:39:43 -08:00
zfs_ioctl_os.c libzfs: On FreeBSD, use MNT_NOWAIT with getfsstat 2021-06-09 13:05:34 -07:00
zfs_racct.c module: zfs: fix unused, remove argsused 2022-02-16 17:58:56 -08:00
zfs_vfsops.c FreeBSD: Fix a pair of bugs in zfs_fhtovp() 2022-10-26 14:59:25 -07:00
zfs_vnops_os.c FreeBSD: catch up to 1400068 2022-09-28 10:35:13 -07:00
zfs_znode.c FreeBSD: Implement hole-punching support 2022-05-17 11:15:29 -07:00
zio_crypt.c module: zfs: fix unused, remove argsused 2022-02-16 17:58:56 -08:00
zvol_os.c zvol: remove unused variable 2022-05-02 15:42:58 -07:00