From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH] kernel/signal: Signal-based pre-coredump notification Date: Mon, 15 Oct 2018 20:58:29 +0200 Message-ID: <20181015185829.GA6397@kroah.com> References: <20181013064023.GA28177@kroah.com> <37401cea-5a37-2cd9-8595-8b07dfc4de7d@cisco.com> <20181015184358.GA12153@kroah.com> <614dad0f-97e3-91b4-0c29-c052d01922eb@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <614dad0f-97e3-91b4-0c29-c052d01922eb@cisco.com> Sender: linux-kernel-owner@vger.kernel.org To: Enke Chen Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Peter Zijlstra , Arnd Bergmann , "Eric W. Biederman" , Khalid Aziz , Kate Stewart , Helge Deller , Al Viro , Andrew Morton , Christian Brauner , Catalin Marinas , Will Deacon , Dave Martin , Mauro Carvalho Chehab , Michal Hocko , Rik van Riel , Kirill A. Shutemov List-Id: linux-arch.vger.kernel.org On Mon, Oct 15, 2018 at 11:49:11AM -0700, Enke Chen wrote: > Hi, Greg: > > On 10/15/18 11:43 AM, Greg Kroah-Hartman wrote: > > On Mon, Oct 15, 2018 at 11:16:36AM -0700, Enke Chen wrote: > >> Hi, Greg: > >> > >>> Shouldn't there also be a manpage update, and a kselftest added for this > >>> new user/kernel api that is being created? > >>> > >> > >> I will submit a patch for manpage update once the code is accepted. > > > > Writing a manpage update is key to see if what you are describing > > actually matches the code you have submitted. You should do both at the > > same time so that they can be reviewed together. > > Ok, will do at the same time. But should I submit it as a separate patch? Yes please. > >> Regarding the kselftest, I am not sure. Once the prctl() is limited to > >> self (which I will do), the logic would be pretty straightforward. Not > >> sure if the selftest would add much value. > > > > If you do not have a test for this feature, how do you know it even > > works at all? How will you know if it breaks in a future kernel > > release? Have you tested this? If so, how? > > I have the test code. I am just not sure whether I should submit and check > it in to the kselftest? Of course you should, why wouldn't you? Do you want to be the only person in the world responsible for ensuring that this feature does not break for the next 20+ years? :) thanks, greg k-h From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:47878 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbeJPCpD (ORCPT ); Mon, 15 Oct 2018 22:45:03 -0400 Date: Mon, 15 Oct 2018 20:58:29 +0200 From: Greg Kroah-Hartman Subject: Re: [PATCH] kernel/signal: Signal-based pre-coredump notification Message-ID: <20181015185829.GA6397@kroah.com> References: <20181013064023.GA28177@kroah.com> <37401cea-5a37-2cd9-8595-8b07dfc4de7d@cisco.com> <20181015184358.GA12153@kroah.com> <614dad0f-97e3-91b4-0c29-c052d01922eb@cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <614dad0f-97e3-91b4-0c29-c052d01922eb@cisco.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Enke Chen Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Peter Zijlstra , Arnd Bergmann , "Eric W. Biederman" , Khalid Aziz , Kate Stewart , Helge Deller , Al Viro , Andrew Morton , Christian Brauner , Catalin Marinas , Will Deacon , Dave Martin , Mauro Carvalho Chehab , Michal Hocko , Rik van Riel , "Kirill A. Shutemov" , Roman Gushchin , Marcos Paulo de Souza , Oleg Nesterov , Dominik Brodowski , Cyrill Gorcunov , Yang Shi , Jann Horn , Kees Cook , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, "Victor Kamensky (kamensky)" , xe-linux-external@cisco.com, Stefan Strogin Message-ID: <20181015185829.rQSTAi4ltHSB-2wT2pB4tJOVUrVdMuqXsDyJ7-9nuSU@z> On Mon, Oct 15, 2018 at 11:49:11AM -0700, Enke Chen wrote: > Hi, Greg: > > On 10/15/18 11:43 AM, Greg Kroah-Hartman wrote: > > On Mon, Oct 15, 2018 at 11:16:36AM -0700, Enke Chen wrote: > >> Hi, Greg: > >> > >>> Shouldn't there also be a manpage update, and a kselftest added for this > >>> new user/kernel api that is being created? > >>> > >> > >> I will submit a patch for manpage update once the code is accepted. > > > > Writing a manpage update is key to see if what you are describing > > actually matches the code you have submitted. You should do both at the > > same time so that they can be reviewed together. > > Ok, will do at the same time. But should I submit it as a separate patch? Yes please. > >> Regarding the kselftest, I am not sure. Once the prctl() is limited to > >> self (which I will do), the logic would be pretty straightforward. Not > >> sure if the selftest would add much value. > > > > If you do not have a test for this feature, how do you know it even > > works at all? How will you know if it breaks in a future kernel > > release? Have you tested this? If so, how? > > I have the test code. I am just not sure whether I should submit and check > it in to the kselftest? Of course you should, why wouldn't you? Do you want to be the only person in the world responsible for ensuring that this feature does not break for the next 20+ years? :) thanks, greg k-h