HomeFreeBSD

Fix use-after-free bugs in icp code

Description

Fix use-after-free bugs in icp code

These were reported by Coverity as "Read from pointer after free" bugs.
Presumably, it did not report it as a use-after-free bug because it does
not understand the inline assembly that implements the atomic
instruction.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13881

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 15 2022, 6:46 PM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rG3f380df778c6: Remove incorrect free() in zfs_get_pci_slots_sys_path()
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG1d5e569a69e3: Fix use-after-free bugs in icp code (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Dec 1 2022, 8:39 PM