mirror_zfs/module/os/freebsd/zfs
Alexander Motin 9209ea69bc
FreeBSD: Fix translation from ABD to physical pages
In hypothetical case of non-linear ABD with single segment, multiple
to page size but not aligned to it, vdev_geom_fill_unmap_cb() could
fill one page less into bio_ma array.

I am not sure it is exploitable, but better to be safe than sorry.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reported-by: Mark Johnston <markj@FreeBSD.org>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Closes #13345
2022-04-20 16:05:38 -07:00
..
abd_os.c Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
arc_os.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
crypto_os.c Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
dmu_os.c Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
hkdf.c Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
kmod_core.c zfs: add missed dependency of zfs module on zlib 2021-08-13 13:42:45 -07:00
spa_os.c Add spa _os() hooks 2022-02-15 15:54:25 -08:00
sysctl_os.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
vdev_file.c module/*.ko: prune .data, global .rodata 2022-01-14 15:37:55 -08:00
vdev_geom.c FreeBSD: Fix translation from ABD to physical pages 2022-04-20 16:05:38 -07:00
vdev_label_os.c FreeBSD: Clean up ASSERT/VERIFY use in module 2021-04-30 16:36:10 -07:00
zfs_acl.c Fix ACL checks for NFS kernel server 2022-03-18 06:47:57 -06:00
zfs_ctldir.c Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
zfs_debug.c Clean up CSTYLEDs 2022-01-26 11:38:52 -08:00
zfs_dir.c Clean up use of zfs_log_create in zfs_dir 2021-05-07 15:13:10 -07:00
zfs_file_os.c FreeBSD: Catch up with recent VFS changes 2021-10-25 09:46:28 -07:00
zfs_ioctl_compat.c FreeBSD: Fix legacy compat for platform IOCs 2020-09-30 13:25:50 -07:00
zfs_ioctl_os.c libzfs: On FreeBSD, use MNT_NOWAIT with getfsstat 2021-06-08 07:36:43 -06:00
zfs_racct.c module: zfs: fix unused, remove argsused 2021-12-23 09:42:47 -08:00
zfs_vfsops.c module: mark arguments used 2022-02-18 09:34:03 -08:00
zfs_vnops_os.c FreeBSD: Return Mach error codes from VOP_(GET|PUT)PAGES 2022-04-13 09:43:15 -07:00
zfs_znode.c FreeBSD: add missing replay check to an assert in zfs_xvattr_set 2022-03-17 10:30:10 -07:00
zio_crypt.c Remove bcopy(), bzero(), bcmp() 2022-03-15 15:13:42 -07:00
zvol_os.c module: mark arguments used 2022-02-18 09:34:03 -08:00