From f7281c6cb9bbf3e5757adf52a7820499b5a7483b Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Fri, 27 Aug 2021 13:09:28 -0700 Subject: Fix lock order violations: mm.mappingMu > Task.mu. Document this ordering in mm/mm.go. PiperOrigin-RevId: 393413203 --- pkg/sentry/mm/mm.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry/mm') diff --git a/pkg/sentry/mm/mm.go b/pkg/sentry/mm/mm.go index 57969b26c..0fca59b64 100644 --- a/pkg/sentry/mm/mm.go +++ b/pkg/sentry/mm/mm.go @@ -28,6 +28,7 @@ // memmap.File locks // mm.aioManager.mu // mm.AIOContext.mu +// kernel.TaskSet.mu // // Only mm.MemoryManager.Fork is permitted to lock mm.MemoryManager.activeMu in // multiple mm.MemoryManagers, as it does so in a well-defined order (forked -- cgit v1.2.3