summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2020-12-01 11:28:03 +0000
committersthen <sthen@openbsd.org>2020-12-01 11:28:03 +0000
commitd927eb424e7a81c8abf5ef61e0ae67f1dfa97e73 (patch)
treec507d688e2fbf7852c3507d7b88c078b76fc6cf2 /gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp
parentLeave newlines inside multiline quotes. (diff)
downloadwireguard-openbsd-d927eb424e7a81c8abf5ef61e0ae67f1dfa97e73.tar.xz
wireguard-openbsd-d927eb424e7a81c8abf5ef61e0ae67f1dfa97e73.zip
bzero the antireplay counter rwlock before rw_init'ing it, not after.
This was triggering a WITNESS detection witness: lock_object uninitialized: 0xffff800000bcf0d8 Starting stack trace... witness_checkorder(ffff800000bcf0d8,9,0) at witness_checkorder+0xab rw_enter_write(ffff800000bcf0c8) at rw_enter_write+0x43 noise_remote_decrypt(ffff800000bcea48,c4992785,0,fffffd80073c89bc,10) at noise_remote_decrypt+0x135 wg_decap(ffff80000054a000,fffffd805f53ac00) at wg_decap+0xda wg_decap_worker(ffff80000054a000) at wg_decap_worker+0x7a taskq_thread(ffff80000012d900) at taskq_thread+0x9f alternating between two lock objects. From Matt Dunwoodie, thanks semarie@ for explanations about witness and looking at the code.
Diffstat (limited to 'gnu/llvm/clang/lib/Driver/ToolChains/Clang.cpp')
0 files changed, 0 insertions, 0 deletions