On Tue, Mar 08, 2022 at 09:57:57AM +0100, Greg KH wrote:
And what happens if the mutex is locked _RIGHT_ after you checked it? You still have a race...
No, we miss a warning that one time. Memory is still protected.
Then don't warn on something that doesn't matter. This line can be dropped as there's nothing anyone can do about it, right?
I mean, the reason I wanted the warning is because there's a kernel bug, and it will break userspace. warning is just telling us this. is the bug reacheable from userspace? if we knew that we won't need the lock ...