Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753843AbbERKta (ORCPT ); Mon, 18 May 2015 06:49:30 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:35740 "EHLO e23smtp08.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753254AbbERKtY (ORCPT ); Mon, 18 May 2015 06:49:24 -0400 Message-ID: <5559C370.3050109@linux.vnet.ibm.com> Date: Mon, 18 May 2015 16:18:16 +0530 From: Anshuman Khandual User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Anton Blanchard CC: mikey@neuling.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, shuahkh@osg.samsung.com Subject: Re: [PATCH V3 09/13] selftests, powerpc: Add test for DSCR value inheritence across fork References: <1428654612-23539-1-git-send-email-khandual@linux.vnet.ibm.com> <1428654612-23539-10-git-send-email-khandual@linux.vnet.ibm.com> <20150518150957.4c228ac4@kryten> In-Reply-To: <20150518150957.4c228ac4@kryten> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15051810-0029-0000-0000-00000190F625 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1090 Lines: 38 On 05/18/2015 10:39 AM, Anton Blanchard wrote: > Hi Anshuman, > > Thanks for getting these testcases into the kernel. > >> This patch adds a test to verify that the changed DSCR value inside >> any process would be inherited to it's child process across the fork >> system call. > > One issue I do notice (a bug in my original test cases too), is that we > don't restore the DSCR on exit. I'm not sure we need to go to the > trouble of saving and restoring it, but we should at least get it back > to 0 when done. Will save/restore the system DSCR default before exiting. > > Also a tiny nit, no need for a newline in perror(): > > open() failed > : Permission denied > sure, will remove them. > With those changes you can add: > > Signed-off-by: Anton Blanchard > > to the patches based on my testcases. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/