Re: possible deadlock in mon_bin_vma_fault

From: Pete Zaitcev
Date: Wed Nov 20 2019 - 12:33:21 EST


On Wed, 20 Nov 2019 11:14:05 -0500 (EST)
Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:

> As it happens, I spent a little time investigating this bug report just
> yesterday. It seems to me that the easiest fix would be to disallow
> resizing the buffer while it is mapped by any users. (Besides,
> allowing that seems like a bad idea in any case.)
>
> Pete, does that seem reasonable to you?

Actually, please hold on a little, I think to think more about this.
The deadlock is between mon_bin_read and mon_bin_vma_fault.
To disallow resizing isn't going to fix _that_.

-- Pete