From: Paolo Bonzini Subject: Re: [RFC PATCH v4 08/18] kvm: add the VM introspection subsystem Date: Fri, 22 Dec 2017 17:02:22 +0100 Message-ID: <533d5a75-1ac7-4cd4-347d-237a3c9a54c5@redhat.com> References: <20171218190642.7790-1-alazar@bitdefender.com> <20171218190642.7790-9-alazar@bitdefender.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: linux-mm@kvack.org, =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Xiao Guangrong , =?UTF-8?Q?Mihai_Don=c8=9bu?= , =?UTF-8?B?TmljdciZb3IgQ8OuyJt1?= , =?UTF-8?Q?Mircea_C=c3=aerjaliu?= , Marian Rotariu To: =?UTF-8?Q?Adalber_Laz=c4=83r?= , kvm@vger.kernel.org Return-path: In-Reply-To: <20171218190642.7790-9-alazar@bitdefender.com> Content-Language: en-US Sender: owner-linux-mm@kvack.org List-Id: kvm.vger.kernel.org On 18/12/2017 20:06, Adalber Lazăr wrote: > + /* VMAs will be modified */ > + down_write(&req_mm->mmap_sem); > + down_write(&map_mm->mmap_sem); > + Is there a locking rule when locking multiple mmap_sems at the same time? As it's written, this can cause deadlocks. Paolo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org