diff options
author | anton <anton@cvs.openbsd.org> | 2020-08-29 08:41:12 +0000 |
---|---|---|
committer | anton <anton@cvs.openbsd.org> | 2020-08-29 08:41:12 +0000 |
commit | d8b5fd6bcb738c7256431af8964887c117995fb9 (patch) | |
tree | b145227e57254905cd567d87216b1cc94149daa0 /usr.sbin/pppd | |
parent | 5dbbad7e5824e1d1f9c27cc59d9bce40061d735e (diff) |
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: syzbot+64122a5f01be1b1abb96@syzkaller.appspotmail.com
Diffstat (limited to 'usr.sbin/pppd')
0 files changed, 0 insertions, 0 deletions