aboutsummaryrefslogtreecommitdiff
path: root/sys/netpfil/pf
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2021-07-20 17:15:08 +0000
committerAlexander Motin <mav@FreeBSD.org>2021-07-20 17:30:28 +0000
commit28d70deaafa62c5d1602de5272c0aad0fcca8aff (patch)
tree62088f6d9989f20fa730684edec255c76f86e66f /sys/netpfil/pf
parent5a9e5a5111af59dbc96383fcd73129e31648e017 (diff)
downloadsrc-28d70deaafa62c5d1602de5272c0aad0fcca8aff.tar.gz
src-28d70deaafa62c5d1602de5272c0aad0fcca8aff.zip
Fix race between first rand(3) calls.
Before this patch there was a chance for thread that called rand(3) slightly later to see rand3_state already allocated, but not yet initialized. While this API is not expected to be thread-safe, it is not expected to crash. ztest on 64-thread system reproduced it reliably for me. MFC after: 1 month
Diffstat (limited to 'sys/netpfil/pf')
0 files changed, 0 insertions, 0 deletions