Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id B2C1D1A01EE for ; Fri, 25 Sep 2015 10:05:18 +1000 (AEST) Message-ID: <1443139518.2157.0.camel@ellerman.id.au> Subject: Re: [PATCH] powerpc/vdso: Avoid link stack corruption in __get_datapage() From: Michael Ellerman To: Denis Kirjanov Cc: Michael Neuling , Steve Munroe , Anton Blanchard , Aaron Sawdey , linuxppc-dev Date: Fri, 25 Sep 2015 10:05:18 +1000 In-Reply-To: References: <1442988302.31273.81.camel@neuling.org> <8B86AA57-EFAD-4D4E-860A-8F8251DF10AD@ellerman.id.au> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2015-09-24 at 13:10 +0300, Denis Kirjanov wrote: > On 9/24/15, Michael Ellerman wrote: > > On 23 September 2015 16:05:02 GMT+10:00, Michael Neuling > > wrote: > >> > >>Testcase tb.c (stolen from Anton) > >> /* gcc -O2 tb.c -o tb */ > >> #include > >> #include > >> > >> int main() > >> { > >> int i; > >> > >> struct timeval tv_start, tv_end; > >> > >> gettimeofday(&tv_start, NULL); > >> > >> for(i = 0; i < 10000000; i++) { > >> gettimeofday(&tv_end, NULL); > >> } > >> > >> printf("time = %.6f\n", tv_end.tv_sec - tv_start.tv_sec + > >>(tv_end.tv_usec - tv_start.tv_usec) * 1e-6); > >> > >> return 0; > >> } > > > > You know where test cases are supposed to go. > > > > I know it's not a pass/fail test, but it's still useful. If it's in the tree > > it will get run as part of automated test runs and we will have a record of > > the result over time. > > I can send a patch for it. Mikey was working on it I think. cheers