generic: add test for executables on read-only DAX mounts
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 31 Aug 2017 04:09:10 +0000 (22:09 -0600)
committerEryu Guan <eguan@redhat.com>
Sun, 3 Sep 2017 04:20:00 +0000 (12:20 +0800)
commit41ab666990510cdadc989feb137a2c0e7e0805ed
treeb9ae5130712098e9d84c8ba62828c57f4ff98c19
parent211cb9170c192a4b7e628aada6281522f4351490
generic: add test for executables on read-only DAX mounts

This adds a regression test for the following kernel patch:

commit 42d4a99b09cb ("ext4: fix fault handling when mounted with -o
dax,ro")

The above patch fixes an issue with ext4 where executables cannot be
run on read-only filesystems mounted with the DAX option.

This issue does not appear to be present in ext2 or XFS, as they
both pass the test.  I've also confirmed outside of the test that
they are both indeed able to execute binaries on read-only DAX
mounts.

Thanks to Randy Dodgen for the bug report and reproduction steps.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Randy Dodgen <rdodgen@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/452 [new file with mode: 0755]
tests/generic/452.out [new file with mode: 0644]
tests/generic/group