Files
mirror_zfs/module/os/linux/zfs
Richard Yao 9f1691a964 Linux: Fix use-after-free in zfsvfs_create()
Coverity reported that we pass a pointer to zfsvfs to
`dmu_objset_disown()` after freeing zfsvfs in zfsvfs_create_impl() after
a failure in zfsvfs_init().

We have nearly identical duplicate versions of this code for FreeBSD and
Linux, but interestingly, the FreeBSD version of this code differs in
such a way that it does not suffer from this bug. We remove the
difference from the FreeBSD version to fix this bug.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13883
2022-12-01 12:39:40 -08:00
..
2022-07-26 10:10:37 -07:00
2022-03-20 21:21:18 -07:00
2019-09-12 13:33:44 -07:00
2019-09-12 13:33:44 -07:00
2022-08-09 09:41:06 -07:00
2021-11-02 09:50:30 -07:00
2021-06-24 13:12:36 -07:00
2021-11-02 09:50:30 -07:00