xfstests 247: Test for race between direct I/O and mmap
authorLachlan McIlroy <lmcilory@redhat.com>
Fri, 19 Nov 2010 16:17:34 +0000 (10:17 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 19 Nov 2010 16:17:34 +0000 (10:17 -0600)
commit388144a0499cb9d07f1600093a356bb4bba773ed
tree3e059e0ade8175753aae313abbe3d107487e3ec4
parent7f71f3ac1731ba3ef7df829e8459fd90803b2c1e
xfstests 247: Test for race between direct I/O and mmap

A customer reported a problem:

If a process is using mmap to write to a file on an
ext4 filesystem while another process is using direct
I/O to write to the same file the first thread may
receive a SIGBUS during a page fault.

A SIGBUS occurs if the page fault tries to access a
page that is entirely beyond the end of the file but
in this test case that should not be happening.

Signed-off-by: Lachlan McIlroy <lmcilory@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
247 [new file with mode: 0644]
247.out [new file with mode: 0644]
group