CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2020/08/29 02:41:11

Modified files:
        sys/dev        : kcov.c 

Log message:
Before clearing the kcov descriptor associated with a thread make sure
no other thread is currently within a remote section. Otherwise, the
remote subsystem could end up in a broken state where it doesn't reset
the necessary bits upon leaving the remote section.

Therefore introduce the kr_barrier() routine which waits until all
ongoing remote sections have been left. Also, extend the scope of the
mutex to also cover fields of struct kcov_dev. This is necessary to
ensure correctness.

Reported-by: [email protected]

Reply via email to