References: <20220109102820.638985-1-rpm@xenomai.org> From: Philippe Gerum Subject: Re: [PATCH v3] dovetail: mm: fix logic of COW-disabling check Date: Sun, 09 Jan 2022 16:22:03 +0100 In-reply-to: <20220109102820.638985-1-rpm@xenomai.org> Message-ID: <87mtk5q655.fsf@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Philippe Gerum writes: > From: Philippe Gerum > > COW-disabling for a dovetailed task does not depend on the pinning > status of the source VMA considered by copy_present_page(). Decouple > both checks, which fixes the following kernel splat on fork() from a > dovetailed task: > Although this patch does prevent the crash, this still does not work the way it should. Basically, we should not allow the DMA pinning check to prevent COW from being disabled for a VMA attached to a dovetailed task. This needs more thought. I'll follow up on this. -- Philippe.