[Libhugetlbfs-devel] Testcase for kernel bug attempting brk() into a hugepage area

2006-11-13 Thread David Gibson
Current kernels have a bug in the brk() codepath. This path, unlike the mmap() path, doesn't check if the newly allocated region intersects a hugepage dedicated region. This means it can create a normalpage VMA which extends into a hugepage-only address region (at least on powerpc, which has such

[Libhugetlbfs-devel] Fix truncate_above_4GB test for wider range of pagesizes

2006-11-13 Thread David Gibson
On powerpc with 4K base page size, the truncate_above_4GB test fails in an uninteresting way (i.e. not because of the bug it was designed to catch). This because the 'buggy_offset' it calculates is not hugepage aligned, so the map at this offset (correctly) fails. This patch rounds the offset up

Re: [Libhugetlbfs-devel] Improved exorcism

2006-11-13 Thread David Gibson
On Mon, Nov 13, 2006 at 04:46:14PM -0800, Nishanth Aravamudan wrote: > On 02.11.2006 [11:52:41 +1100], David Gibson wrote: > > On Tue, Oct 31, 2006 at 07:26:12AM -0800, Nishanth Aravamudan wrote: > > > > > Ok. I tend to think it will get its testing fastest if we merge into > > the git tree now

Re: [Libhugetlbfs-devel] [PATCH] Catch signals in linkshare children

2006-11-13 Thread David Gibson
On Mon, Nov 13, 2006 at 04:34:12PM -0800, Nishanth Aravamudan wrote: > On 14.11.2006 [11:11:47 +1100], David Gibson wrote: > > On Mon, Nov 13, 2006 at 04:01:01PM -0800, Nishanth Aravamudan wrote: > > > On 14.11.2006 [10:17:25 +1100], David Gibson wrote: > > > > On Mon, Nov 13, 2006 at 10:06:19AM -0

Re: [Libhugetlbfs-devel] Improved exorcism

2006-11-13 Thread Nishanth Aravamudan
On 02.11.2006 [11:52:41 +1100], David Gibson wrote: > On Tue, Oct 31, 2006 at 07:26:12AM -0800, Nishanth Aravamudan wrote: > Ok. I tend to think it will get its testing fastest if we merge into > the git tree now. Again, we can branch from 1.0.1 if we need to make > more maintenance releases f

Re: [Libhugetlbfs-devel] [PATCH] tests: Fix zero_filesize_segment testcase

2006-11-13 Thread Nishanth Aravamudan
On 14.11.2006 [10:54:41 +1100], David Gibson wrote: > On Mon, Nov 13, 2006 at 01:37:32PM -0600, Adam Litke wrote: > > tests: Fix zero_filesize_segment testcase > > > > This testcase is implemented as a linker script which can be "compiled" > > like a program. As such, the caveats with .note.ABI-t

Re: [Libhugetlbfs-devel] [PATCH] Catch signals in linkshare children

2006-11-13 Thread Nishanth Aravamudan
On 14.11.2006 [11:11:47 +1100], David Gibson wrote: > On Mon, Nov 13, 2006 at 04:01:01PM -0800, Nishanth Aravamudan wrote: > > On 14.11.2006 [10:17:25 +1100], David Gibson wrote: > > > On Mon, Nov 13, 2006 at 10:06:19AM -0800, Nishanth Aravamudan wrote: > > > > On 12.11.2006 [11:19:23 +1100], David

Re: [Libhugetlbfs-devel] [PATCH] Catch signals in linkshare children

2006-11-13 Thread David Gibson
On Mon, Nov 13, 2006 at 04:01:01PM -0800, Nishanth Aravamudan wrote: > On 14.11.2006 [10:17:25 +1100], David Gibson wrote: > > On Mon, Nov 13, 2006 at 10:06:19AM -0800, Nishanth Aravamudan wrote: > > > On 12.11.2006 [11:19:23 +1100], David Gibson wrote: > > > > On Fri, Nov 10, 2006 at 11:43:56AM -0

Re: [Libhugetlbfs-devel] [PATCH] Catch signals in linkshare children

2006-11-13 Thread Nishanth Aravamudan
On 14.11.2006 [10:17:25 +1100], David Gibson wrote: > On Mon, Nov 13, 2006 at 10:06:19AM -0800, Nishanth Aravamudan wrote: > > On 12.11.2006 [11:19:23 +1100], David Gibson wrote: > > > On Fri, Nov 10, 2006 at 11:43:56AM -0800, Nishanth Aravamudan wrote: > > > > Fix linkshare testcase to catch the c

Re: [Libhugetlbfs-devel] [PATCH] tests: Fix zero_filesize_segment testcase

2006-11-13 Thread David Gibson
On Mon, Nov 13, 2006 at 01:37:32PM -0600, Adam Litke wrote: > tests: Fix zero_filesize_segment testcase > > This testcase is implemented as a linker script which can be "compiled" > like a program. As such, the caveats with .note.ABI-tag and .note.SuSE > in our other linker scripts apply here as

Re: [Libhugetlbfs-devel] [PATCH] Catch signals in linkshare children

2006-11-13 Thread David Gibson
On Mon, Nov 13, 2006 at 10:06:19AM -0800, Nishanth Aravamudan wrote: > On 12.11.2006 [11:19:23 +1100], David Gibson wrote: > > On Fri, Nov 10, 2006 at 11:43:56AM -0800, Nishanth Aravamudan wrote: > > > Fix linkshare testcase to catch the case where the sharing children are > > > killed by a signal.

[Libhugetlbfs-devel] [PATCH] tests: Fix zero_filesize_segment testcase

2006-11-13 Thread Adam Litke
tests: Fix zero_filesize_segment testcase This testcase is implemented as a linker script which can be "compiled" like a program. As such, the caveats with .note.ABI-tag and .note.SuSE in our other linker scripts apply here as well. Add explicit placement of these sections so ld's implicit guess

Re: [Libhugetlbfs-devel] Small tweaks to make debugging failing testcases easier

2006-11-13 Thread Nishanth Aravamudan
On 12.11.2006 [11:20:13 +1100], David Gibson wrote: > On Fri, Nov 10, 2006 at 01:46:41PM -0800, Nishanth Aravamudan wrote: > > On 10.11.2006 [14:35:30 +1100], David Gibson wrote: > > > Two things to make debugging easier: > > > - Use an fflush() after each verbose_printf(), so that line > > > buf

Re: [Libhugetlbfs-devel] [PATCH] Catch signals in linkshare children

2006-11-13 Thread Nishanth Aravamudan
On 12.11.2006 [11:19:23 +1100], David Gibson wrote: > On Fri, Nov 10, 2006 at 11:43:56AM -0800, Nishanth Aravamudan wrote: > > Fix linkshare testcase to catch the case where the sharing children are > > killed by a signal. Currently, if a child segfaults, we still PASS the > > test, when it clearly

Re: [Libhugetlbfs-devel] [0/2] Extra testcases for recently found kernel bugs

2006-11-13 Thread Nishanth Aravamudan
On 12.11.2006 [11:18:21 +1100], David Gibson wrote: > On Fri, Nov 10, 2006 at 11:39:40AM -0800, Nishanth Aravamudan wrote: > > On 03.11.2006 [11:52:26 +1100], David Gibson wrote: > > > Here are a pair of patches adding extra testcases for some of the > > > kernel bugs recently found by Hugh Dickins