Re: [PATCH] Add additional error check to mm/mincore.c

2007-03-25 Thread Hugh Dickins
On Sat, 24 Mar 2007, Bruce Dubbs wrote: > I some circumstances, mincore can succeed when it shouldn't. > > Example: > Two files are mmapped to a process and they are adjacent in memory. > If mincore is run with a requested length that is too large, the > function does not differentiate between

Re: [PATCH] Add additional error check to mm/mincore.c

2007-03-25 Thread Hugh Dickins
On Sat, 24 Mar 2007, Bruce Dubbs wrote: I some circumstances, mincore can succeed when it shouldn't. Example: Two files are mmapped to a process and they are adjacent in memory. If mincore is run with a requested length that is too large, the function does not differentiate between the

[PATCH] Add additional error check to mm/mincore.c

2007-03-24 Thread Bruce Dubbs
I some circumstances, mincore can succeed when it shouldn't. Example: Two files are mmapped to a process and they are adjacent in memory. If mincore is run with a requested length that is too large, the function does not differentiate between the different file pointers within the different vma

[PATCH] Add additional error check to mm/mincore.c

2007-03-24 Thread Bruce Dubbs
I some circumstances, mincore can succeed when it shouldn't. Example: Two files are mmapped to a process and they are adjacent in memory. If mincore is run with a requested length that is too large, the function does not differentiate between the different file pointers within the different vma