[PATCH] powerpc/vdso: Avoid link stack corruption in __get_datapage()

Michael Ellerman mpe at ellerman.id.au
Fri Sep 25 10:05:18 AEST 2015


On Thu, 2015-09-24 at 13:10 +0300, Denis Kirjanov wrote:
> On 9/24/15, Michael Ellerman <michael at ellerman.id.au> wrote:
> > On 23 September 2015 16:05:02 GMT+10:00, Michael Neuling <mikey at neuling.org>
> > wrote:
> >>
> >>Testcase tb.c (stolen from Anton)
> >>  /* gcc -O2 tb.c -o tb */
> >>  #include <sys/time.h>
> >>  #include <stdio.h>
> >>
> >>  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




More information about the Linuxppc-dev mailing list