From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753472Ab2LPRsH (ORCPT ); Sun, 16 Dec 2012 12:48:07 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:60057 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753255Ab2LPRsE (ORCPT ); Sun, 16 Dec 2012 12:48:04 -0500 Date: Sun, 16 Dec 2012 17:48:01 +0000 From: Al Viro To: Andy Lutomirski Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Ingo Molnar , Michel Lespinasse , Hugh Dickins , J??rn Engel Subject: Re: [PATCH] mm: Downgrade mmap_sem before locking or populating on mmap Message-ID: <20121216174801.GD4939@ZenIV.linux.org.uk> References: <3b624af48f4ba4affd78466b73b6afe0e2f66549.1355463438.git.luto@amacapital.net> <20121214072755.GR4939@ZenIV.linux.org.uk> <20121214144927.GS4939@ZenIV.linux.org.uk> <20121216170403.GC4939@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121216170403.GC4939@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 16, 2012 at 05:04:03PM +0000, Al Viro wrote: > Moreover, I'm not quite convinced that huge_memory.c and ksm.c can't run > into all kinds of interesting races with ongoing coredump. Looking into > it... Specifically, is collapse_huge_page() safe in parallel with ->core_dump()? It *can* run while we are in the middle of e.g. elf_core_dump().