Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4270686imm; Mon, 15 Oct 2018 11:51:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV62DZC/991QTJgPtizpDZOmxieAzODWOk6E6PZtEK9RFC480VqK+9YYYhgKPu5VQqhq4U/YD X-Received: by 2002:a62:241a:: with SMTP id r26-v6mr14241891pfj.74.1539629476923; Mon, 15 Oct 2018 11:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539629476; cv=none; d=google.com; s=arc-20160816; b=GAKXystVRz0KSk7EYuxBUbHxxtZQPn3AN2u9UoGVld8gAGjIhCoC37PtK3mYg/xZjT BBCfFXNOQZqOHp8xRpT3E3p7/ZlDsewnukCLAedmibx4O7D+W9dzEZbxXqWwtusI/y9N 4ObrDI+xruJPrtHYG1x0iR6HpY1LOgUIhudQW/b/ocBin3BeLQJFjI4ae2jSgKKdgJ/v jJP7lD+WyE8mwl2xKGooDsTFWGWWRQ6qGZbPglfCezmQYhCAHHlCCoiU9Dh846eXhQau 82xLUMa7AmC5emYLvwtcyOGj82roDfCfJFWyCf9zVL/JX9uV1dsbG7jJorl/e1k79ObV kIKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=sLonF90+Ec3ey0Lwwz07Bq9GfQv20WNW+kpE62EfVHQ=; b=b9nFdLeOVHHPRLkL+Iaw8+Mt5cKZD2h10lMXIlDv86i29NdcWRofehOvsAD3c9lxcO Xqiccp8eKKHHhRClwI2R4u7T4a1pBLeNmg3GHaqYqZekdPKhRefJk4H76L9tirSKPENJ DwdlvXCAUCpgevmS3WiBZ86mkqumJh/B3x9auUmCrrN3cza5FUP4/mmoza7MgIxeb0Dt jml5C9Z7SWeRQlD8dJi60egg4/ciPXs+Ww1QDVytXlx3akIzatFgt49GU7sqKICf6nkl w6jz/1/EC8NrgjDJYhcj0fTdSBvYoAou5wmmsSvmW+ExARjWqdzzFexepADLXCPxwMbf 9vbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=QK3gjbxX; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si8246727plk.329.2018.10.15.11.51.01; Mon, 15 Oct 2018 11:51:16 -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=@cisco.com header.s=iport header.b=QK3gjbxX; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbeJPCfq (ORCPT + 99 others); Mon, 15 Oct 2018 22:35:46 -0400 Received: from alln-iport-1.cisco.com ([173.37.142.88]:4250 "EHLO alln-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbeJPCfq (ORCPT ); Mon, 15 Oct 2018 22:35:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1145; q=dns/txt; s=iport; t=1539629357; x=1540838957; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=XbgV8xjLdW7wMJ/qjo6To1z3qhlXgU2lNaHxmlKVLtA=; b=QK3gjbxXZz+18uOWnnZInYicHov4dHO5DbZe9N3SWg1Bbce1GOkqXRHl I/NBhYJ4mUCbqm5klEtTjO8dVU+v9m8P8oj3blDy058zNMqjekxERNQ8N nUoB9e/e9I7kXO4XWwNubalP54Z/lvBpLTFgbanYB7WdxG39zrcT/1xcx A=; X-IronPort-AV: E=Sophos;i="5.54,385,1534809600"; d="scan'208";a="186319960" Received: from alln-core-2.cisco.com ([173.36.13.135]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Oct 2018 18:49:16 +0000 Received: from [10.154.208.167] ([10.154.208.167]) by alln-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id w9FInCod026848; Mon, 15 Oct 2018 18:49:12 GMT Subject: Re: [PATCH] kernel/signal: Signal-based pre-coredump notification To: Greg Kroah-Hartman 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 , Enke Chen References: <20181013064023.GA28177@kroah.com> <37401cea-5a37-2cd9-8595-8b07dfc4de7d@cisco.com> <20181015184358.GA12153@kroah.com> From: Enke Chen Message-ID: <614dad0f-97e3-91b4-0c29-c052d01922eb@cisco.com> Date: Mon, 15 Oct 2018 11:49:11 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181015184358.GA12153@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.154.208.167, [10.154.208.167] X-Outbound-Node: alln-core-2.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > >> 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? Thanks. -- Enke