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
GitHub <noreply@github.com>Committed on Sep 15 2022, 6:46 PM
Parents
rG6f8602a5ede2: CI: revert `--with-config=dist` to hotfix Ubuntu 20.04
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGfd8c3012b3ee: Fix use-after-free bugs in icp code (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Sep 15 2022, 6:46 PM