]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix NULL pointer dereference when doing concurrent 'send' operations
authorLuís Henriques <73643340+lumigch@users.noreply.github.com>
Tue, 30 May 2023 22:15:24 +0000 (23:15 +0100)
committerGitHub <noreply@github.com>
Tue, 30 May 2023 22:15:24 +0000 (15:15 -0700)
commit928c81f4dfa994aad9a9406dee695ed954d77371
tree6bd5e1e8ad9100db5f6091e98f126198acabb27a
parente085e98d541ad96bfe16be98a235bbe4e00b2e08
Fix NULL pointer dereference when doing concurrent 'send' operations

A NULL pointer will occur when doing a 'zfs send -S' on a dataset that
is still being received.  The problem is that the new 'send' will
rightfully fail to own the datasets (i.e. dsl_dataset_own_force() will
fail), but then dmu_send() will still do the dsl_dataset_disown().

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Luís Henriques <henrix@camandro.org>
Closes #14903
Closes #14890
module/zfs/dmu_send.c