diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-30 22:30:56 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-04 10:00:26 +0200 |
commit | f96a8cc3c633b25d9269337408ae2417ebbbad8e (patch) | |
tree | 8d2f8fc029d7d988529bc0a4a2049d46b98cc045 /default-configs | |
parent | 550276ae0a88851edda2cb7fcdd64256dbb8e314 (diff) |
seqlock: use atomic writes for the sequence
There is a data race if the sequence is written concurrently to the
read. In C11 this has undefined behavior. Use atomic_set; the
read side is already using atomic_read.
Reported-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20160930213106.20186-6-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'default-configs')
0 files changed, 0 insertions, 0 deletions