google / kernel-sanitizers

Linux Kernel Sanitizers, fast bug-detectors for the Linux kernel
https://google.github.io/kernel-sanitizers/
442 stars 87 forks source link

Properly report atomic accesses as atomic accesses #188

Closed dvyukov closed 9 years ago

dvyukov commented 9 years ago

Currently we model atomic accesses as 1-byte reads. And that's how they appear in race reports. This can confuse whoever reads the report, because source code contains no 1-byte reads. This in turn can lead to a conclusion that the tool produces bogus reports. We need to properly report atomic accesses at atomic accesses.