From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Date: Tue, 05 May 2020 10:50:23 +0000 Subject: Re: [PATCH v2 3/5] coredump: Refactor page range dumping into common helper Message-Id: <20200505105023.GB17400@lst.de> List-Id: References: <20200429214954.44866-1-jannh@google.com> <20200429214954.44866-4-jannh@google.com> In-Reply-To: <20200429214954.44866-4-jannh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jann Horn Cc: Rich Felker , linux-c6x-dev@linux-c6x.org, Yoshinori Sato , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Oleg Nesterov , linux-mm@kvack.org, Alexander Viro , Mark Salter , linux-fsdevel@vger.kernel.org, Russell King , Andrew Morton , Aurelien Jacquiot , Linus Torvalds , Christoph Hellwig , linux-arm-kernel@lists.infradead.org, "Eric W . Biederman" On Wed, Apr 29, 2020 at 11:49:52PM +0200, Jann Horn wrote: > Both fs/binfmt_elf.c and fs/binfmt_elf_fdpic.c need to dump ranges of pages > into the coredump file. Extract that logic into a common helper. > > Any other binfmt that actually wants to create coredumps will probably need > the same function; so stop making get_dump_page() depend on > CONFIG_ELF_CORE. Why is the #ifdef CONFIG_ELF_CORE in gup.c removed when the only remaining caller is under the same ifdef? Otherwise this looks fine to me.