mirror_zfs/module/os/freebsd/spl
Brian Atkinson e4d3d77684
Fixing gang ABD child removal race condition
On linux the list debug code has been setting off a failure when
checking that the node->next->prev value is pointing back at the node.
At times this check evaluates to 0xdead. When removing a child from a
gang ABD we must acquire the child's abd_mtx to make sure that the
same ABD is not being added to another gang ABD while it is being
removed from a gang ABD. This fixes a race condition when checking
if an ABDs link is already active and part of another gang ABD before
adding it to a gang.

Added additional debug code for the gang ABD in abd_verify() to make
sure each child ABD has active links. Also check to make sure another
gang ABD is not added to a gang ABD.

Reviewed-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
Closes #10511
2020-07-14 11:04:35 -07:00
..
acl_common.c Add prototypes 2020-06-18 12:21:32 -07:00
callb.c Add prototypes 2020-06-18 12:21:32 -07:00
list.c Fixing gang ABD child removal race condition 2020-07-14 11:04:35 -07:00
sha224.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sha256.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sha256c.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sha384.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sha512.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sha512c.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
sha512t.h Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_acl.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_atomic.c Update FreeBSD SPL atomics 2020-05-04 15:07:04 -07:00
spl_cmn_err.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_dtrace.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_kmem.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_kstat.c Remove dead code 2020-06-18 12:21:18 -07:00
spl_misc.c freebsd: changes necessary to coexist with dtrace in tree 2020-07-01 09:10:08 -07:00
spl_policy.c filesystem_limit/snapshot_limit is incorrectly enforced against root 2020-07-11 17:18:02 -07:00
spl_procfs_list.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_string.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_sunddi.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_sysevent.c freebsd: changes necessary to coexist with dtrace in tree 2020-07-01 09:10:08 -07:00
spl_taskq.c FreeBSD: Use a hash table for taskqid lookups 2020-07-11 17:13:45 -07:00
spl_uio.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_vfs.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00
spl_vm.c Add include files for prototypes 2020-06-18 12:21:25 -07:00
spl_zlib.c Fix zlib leak on FreeBSD 2020-04-28 09:14:30 -07:00
spl_zone.c Add FreeBSD support to OpenZFS 2020-04-14 11:36:28 -07:00