aboutsummaryrefslogtreecommitdiff
path: root/share/i18n/csmapper/MISC
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2022-07-04 20:36:43 +0000
committerKristof Provost <kp@FreeBSD.org>2022-07-05 16:59:00 +0000
commitcbb019b831ad59ead34b825bf053169ebbe81bbf (patch)
tree92fcaeb6469d6c3a16050f04fb0de7a7939f2528 /share/i18n/csmapper/MISC
parent9576bca5834b3ccfbf7ff7d3b49db9c05c51d44c (diff)
downloadsrc-cbb019b831ad59ead34b825bf053169ebbe81bbf.tar.gz
src-cbb019b831ad59ead34b825bf053169ebbe81bbf.zip
dummynet: fix ip_dn_vnet_init() / dummynet_task() race
If dummynet_task() is run on a vnet where dummynet is still initialising (i.e. still running ip_dn_vnet_init()) we can attempt to use an uninitialised mutex. We can use the existing init_done field to check if the per-vnet V_dn_cfg is fully set up, if we ensure that it's only set to 1 when we've done all of the init work. Reported by: Alfredo Dal'Ava JĂșnior <alfredo@freebsd.org> Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35716
Diffstat (limited to 'share/i18n/csmapper/MISC')
0 files changed, 0 insertions, 0 deletions