[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH XENSTORE v1 10/10] xs: add error handling
Hi Norbert, On 26/02/2021 14:41, Norbert Manthey wrote: In case of a failure deep in the call tree, we might return NULL as the value of the domain. In that case, error out instead of dereferencing the NULL pointer. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. This commit message is not very descriptive. Internally, I suggested: " tools/xenstore: Harden xs_domain_is_introduced() The function single_with_domid() may return NULL if something went wrong (e.g. XenStored returns an error or the connection is in bad state). They are unlikely but not impossible, so it would be better to return an error and allow the caller to handle it gracefully rather than crashing. In this case we should treat it as the domain has disappeared (i.e. return false) as the caller will not likely going to be able to communicate with XenStored again. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. " I would have expected this to be addressed given that... Signed-off-by: Norbert Manthey <nmanthey@xxxxxxxxx> Reviewed-by: Julien Grall <jgrall@xxxxxxxxxxxx ... you carried over my reviewed-by tag. Cheers, -- Julien Grall
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |