----- Original Message ----- > From: "Caspar Zhang" <[email protected]> > To: "Jan Stancek" <[email protected]>, [email protected] > Sent: Tuesday, 5 August, 2014 7:53:07 PM > Subject: Re: [LTP] [PATCH] madvise05: new testcase for Oops in > madvise_willneed > > On 08/05/2014 10:45 PM, Jan Stancek wrote: > > This is a regression test for madvise(2) system call. It tests > > kernel for NULL ptr deref Oops fixed by: > > commit ee53664bda169f519ce3c6a22d378f0b946c8178 > > Author: Kirill A. Shutemov <[email protected]> > > Date: Fri Dec 20 15:10:03 2013 +0200 > > mm: Fix NULL pointer dereference in madvise(MADV_WILLNEED) support > > > > Signed-off-by: Jan Stancek <[email protected]> > > --- > > runtest/syscalls | 1 + > > testcases/kernel/syscalls/.gitignore | 1 + > > testcases/kernel/syscalls/madvise/madvise05.c | 81 > > +++++++++++++++++++++++++ > > 3 files changed, 83 insertions(+), 0 deletions(-) > > create mode 100644 testcases/kernel/syscalls/madvise/madvise05.c > >
> Is MADV_WILLNEED available on all releases? If yes, the new case looks > good to me. It was introduced before 2.4, so I assume it's available on releases made after 2002. Also none of other madvise testcases checks/tests for it. However, I noticed that older kernels fail with EBADF, if there is no backing file. I'll fix that and send v2. Regards, Jan ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
