Re: [PATCH v2] usbmon: mark concurrent accesses to the monitored flag
From: Greg KH
Date: Thu Dec 03 2026 - 22:24:02 EST
On Wed, Nov 11, 2026 at 02:27:52PM +0800, Zhu Jun wrote:
> USB submission and completion paths read bus->monitored without taking
> mon_lock or the monitor bus lock. Adding and removing readers changes the
> flag under those locks, so the plain accesses race, as reported by KCSAN.
Really? What is the exact message here?
And if this is a real issue, shouldn't you just grab the locks?
But really, this is for monitoring, i.e. debug stuff, is there a real
issue here at all? Writes will not tear on real systems, so there
should not be any problems that can happen that I can see.
thanks,
greg k-h