[Bug 234442] libnetgraph race condition
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 11 18:05:58 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234442
Mark Johnston <markj at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|In Progress |Closed
--- Comment #8 from Mark Johnston <markj at FreeBSD.org> ---
I don't have the means to test this on stable/11, but please feel free to MFC
the change there if you can verify that it works.
--- Comment #9 from commit-hook at freebsd.org ---
A commit references this bug:
Author: eugen
Date: Fri Oct 11 18:05:06 UTC 2019
New revision: 353445
URL: https://svnweb.freebsd.org/changeset/base/353445
Log:
MFC r347439 by markj: Atomically update the global gMsgId in libnetgraph.
Otherwise concurrently running threads may inadvertently use the same
token for different messages.
Preserve the behaviour of disallowing negative message tokens, but allow
a message token value of zero since this simplifies the code a bit and
tokens are documented to be non-negative.
PR: 234442
Changes:
_U stable/11/
stable/11/lib/libnetgraph/msg.c
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-net
mailing list