diff options
author | 2017-02-28 09:50:13 +0000 | |
---|---|---|
committer | 2017-02-28 09:50:13 +0000 | |
commit | c42687bd9a05206296b6ca61dd55cf2f58ae8c73 (patch) | |
tree | 72dea0cf3237eae1dc216efe3cf680c654448855 /lib/libssl/ssl_lib.c | |
parent | Sort vm.conf(5) config options alphabetically (diff) | |
download | wireguard-openbsd-c42687bd9a05206296b6ca61dd55cf2f58ae8c73.tar.xz wireguard-openbsd-c42687bd9a05206296b6ca61dd55cf2f58ae8c73.zip |
Prevent a MP race in rtable_lookup().
If an ART node is linked to multiple route entries, in the MPATH case,
it is not safe to dereference ``an_dst''. This non-refcounted pointer
can be changed at any time by another CPU.
So get rid of the pointer and use the first destination of a route entry
when comparing sockaddrs.
This allows us so remove a pointer from 'struct art_node' and save 5Mb of
memory in an IPv4 fullfeed.
ok jmatthew@, claudio@, dlg@
Diffstat (limited to 'lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions