xfs: rw remount with unknown ro-compat features

Although ro-compat features cannot be mounted rw, a bug allows an
ro->rw remount transition, and this will corrupt the filesystem if
it contains ro-compat features unknown to the running kernel.

This bug has been fixed on linux kernel (d0a58e8 xfs: disallow rw
remount on fs with unknown ro-compat features), this case is the
regression testcase of that bug.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Zorro Lang
2016-08-28 20:50:25 +08:00
committed by Eryu Guan
parent 643d623669
commit 1083413cd4
3 changed files with 99 additions and 0 deletions
+1
View File
@@ -267,6 +267,7 @@
267 dump ioctl tape
268 dump ioctl tape
269 auto quick ioctl
270 auto quick mount
278 repair auto
279 auto mkfs
281 dump ioctl auto quick