Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4278803imm; Mon, 15 Oct 2018 12:00:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Ft3FZiSU6qOMaOgc3UQnZA64PVBjCUK9RQ53hO93It26GW1iIfXyw7Tl0uHpkDHFPOgUL X-Received: by 2002:a63:1d10:: with SMTP id d16-v6mr16520169pgd.228.1539630043721; Mon, 15 Oct 2018 12:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539630043; cv=none; d=google.com; s=arc-20160816; b=MccodpalK8Bhad0QW8aKaSltJ0EkfpPApTQB9d0OU+BsWOhyXKXtCS3XaAv8AbTtW2 1NlckrSyBiQ9omFtkdabQbZh/vljvXdQ6ES0sAg/ZSw6z81uFdcj+lTfQxtGcLzsyzYI FNoLHKr7sgnSyVvrjIMmvM++ixbpfG8uniJvNSCa8k+0nybCsx2N3CzXYRQPE9W39pVr ElosoJf41ZOE1r+szh11ngBMgQ5ZRo/4QByKXOP5BimSKULccAu2M5+NgevNtCh/RZOW Q27X05XgzkR7KjfPGuPjMM8sdK6gnnki/3TSI/0UGmQFmNPYxUI9NswBvNxK+SsiLX+G OQuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VNVIgCwdUoUA+1ndeBjf4vfXY9lVnnsfdlyA+vz5iD8=; b=UfXZ7rtquQSTaYmJeROUgfdsP+p0Q4lM9K4AJhs/LKHr0faojtb3wOwE71XoI7bJJP lNARrxk17SHhxhS/XbA7hDEHt+YwWOaayL/sxqInrgJIDkbrq0ICpoelxFcciw025wq1 1fujHiB9tuOszA1jFRkFwzFQROdbTy3Dsmhev9SkVx4nKJklY5I+47Ostr+wTa0inpTl bHTZZly3Imijm0xxlZ8QekMRgkRA5zD+J4M3YcJKg6gK0hrcEuE+3j8HyxoflYOOdLEM m4kzW3SKTIC5OsfnPM20QVmtfzLtP/QjiV0Fm7VdqrGoTxf41seD2lWmmFk8KNVIWL3d LSeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Guo05MiV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12-v6si11157065pfk.213.2018.10.15.12.00.28; Mon, 15 Oct 2018 12:00:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Guo05MiV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726888AbeJPCpE (ORCPT + 99 others); Mon, 15 Oct 2018 22:45:04 -0400 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 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 55CDA208D9; Mon, 15 Oct 2018 18:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539629912; bh=7sOuwo1+TNhImtTS9IhQydVrf04W9XcBz+9u8pA9v0s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Guo05MiVbi0mdTcINxWuUhb2xVsjdBgeglQ29DHgiJKp9kgNbQNjkaDc6QPGbNStV SaPqeJOXUTk0gx4siBdIsLG4+w7gd927Ee4hNAQhP6B0lzMEr5yomfgzwCJgHnCLOZ +4QwHZ9lGAita6udIkGO7ZhF1UG20tMSfEZAHGww= Date: Mon, 15 Oct 2018 20:58:29 +0200 From: Greg Kroah-Hartman 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 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> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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