summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorPaul Dagnelie <[email protected]>2020-06-03 19:53:21 -0700
committerGitHub <[email protected]>2020-06-03 19:53:21 -0700
commit99b281f1ae3833826b4e3cee4126a4ea5e6de987 (patch)
tree057d9c32dc38d1775a775f84d78bacb0d254972e /include/sys
parent52998c7f36ff9e5bbeae38ac5df9b3f1608a290b (diff)
Fix double mutex_init bug in send code
It was possible to cause a kernel panic in the send code by initializing an already-initialized mutex, if a record was created with type DATA, destroyed with a different type (bypassing the mutex_destroy call) and then re-allocated as a DATA record again. We tweak the logic to not change the type of a record once it has been created, avoiding the issue. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Jorgen Lundman <[email protected]> Signed-off-by: Paul Dagnelie <[email protected]> Closes #10374
Diffstat (limited to 'include/sys')
0 files changed, 0 insertions, 0 deletions