diff options
author | Alexander Motin <mav@FreeBSD.org> | 2021-07-20 17:15:08 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2021-07-20 17:30:28 +0000 |
commit | 28d70deaafa62c5d1602de5272c0aad0fcca8aff (patch) | |
tree | 62088f6d9989f20fa730684edec255c76f86e66f /sys/netpfil/pf | |
parent | 5a9e5a5111af59dbc96383fcd73129e31648e017 (diff) | |
download | src-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