HomeFreeBSD

dsl_prop_known_index(): check for invalid prop

Description

dsl_prop_known_index(): check for invalid prop

Resolve UBSAN array-index-out-of-bounds error in zprop_desc_t.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes #14142
Closes #14147

Details

Provenance
Damian Szuberski <szuberskidamian@gmail.com>Authored on Nov 8 2022, 6:16 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 8 2022, 6:16 PM
Parents
rG8c0684d326b5: zed: Avoid core dump if wholedisk property does not exist
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0f4ee295ba94: dsl_prop_known_index(): check for invalid prop (authored by Damian Szuberski <szuberskidamian@gmail.com>).Nov 8 2022, 6:16 PM