HomeFreeBSD

Avoid null pointer dereference in dsl_fs_ss_limit_check()

Description

Avoid null pointer dereference in dsl_fs_ss_limit_check()

Check for cr == NULL before dereferencing it in
dsl_enforce_ds_ss_limits() to lookup the zone/jail ID.

Reported-by: Coverity (CID 1210459)
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #14103

Details

Provenance
allanjudeAuthored on Oct 29 2022, 8:08 PM
Tony Hutter <hutter2@llnl.gov>Committed on Dec 1 2022, 8:39 PM
Parents
rGe9a8fb17b533: Fix too few arguments to formatting function
Branches
Unknown
Tags
Unknown