Files
moby/daemon/container
Paweł Gronowski 78c7964d62 daemon/container: Fix a data race on the error after a container removal
SetRemovalError wrote ErrorMsg before taking the state lock, so it raced
with readers that hold the lock, such as container inspect.
A failed removal sets the error through it, and a successful one clears
it through SetRemoved.

Assign ErrorMsg directly while holding the lock instead of calling
SetError, which does no locking even though its name suggests it is safe
for concurrent use.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-10-15 20:32:23 +02:00
..
2025-12-15 18:56:34 +01:00
…
2026-09-18 18:28:46 +02:00