kernel/trace/trace_uprobe.c:772:1: warning: mutex 'ucb->mutex' is still held at the end of function [-Wthread-safety-analysis]
}
^
kernel/trace/trace_uprobe.c:769:2: note: mutex acquired here
mutex_lock(&ucb->mutex);
^
kernel/trace/trace_uprobe.c:776:2: warning: releasing mutex 'ucb->mutex' that was not held [-Wthread-safety-analysis]
mutex_unlock(&ucb->mutex);
^
The get function would need to annotate with reference to the return value, which clang does not support. The put function could be annotated, but we silence it because without proper annotation for get, the analysis will not work properly.
The
get
function would need to annotate with reference to the return value, which clang does not support. Theput
function could be annotated, but we silence it because without proper annotation forget
, the analysis will not work properly.