summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/TO-DO
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2022-01-11 06:00:42 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2022-01-11 06:00:42 +0000
commit56c51c43b341b430075cc6562c8b360346a84661 (patch)
treeb65e6281f31fdba1d14940ce7b0e623943957e00 /sbin/isakmpd/TO-DO
parentf75e758eb83ab2e11e52e6c35180874ef26ac26d (diff)
In revision 1.43 of kcov.c, the redundant conditional of checking for
an exising kcov descriptor with the given device minor was removed since kcov is a cloning device; i.e. the device minor should always be unique. However, there's one edge case to still consider in which one thread have tracing enabled while another thread closes the same kcov descriptor. The kcov descriptor is kept alive until thread with tracing enabled exits to prevent usage after free. This does however cause the spec file layer above to flag the device minor as unused. Any subsequent open of /dev/kcov would trip on the assertion in kcovopen() until the thread with tracing enabled exits. Therefore unconditionally remove the kcov descriptor from the global list of active descriptors which is fine since the same kcov descriptor will later be freed in kcov_exit(). I have never seen this in the wild but realized while hunting another bug.
Diffstat (limited to 'sbin/isakmpd/TO-DO')
0 files changed, 0 insertions, 0 deletions