Commit 5cf8cf4146de03de67d1a8aefbece66b65f255cc

Authored by Christoph Hellwig
Committed by Linus Torvalds
1 parent 31d8b5631f

Fix FREEZE/THAW compat_ioctl regression

Commit 8e961870bb9804110d5c8211d5d9d500451c4518 removed the FREEZE/THAW
handling in xfs_compat_ioctl but never added any compat handler back, so
now any freeze/thaw request from a 32-bit binary ond 64-bit userspace
will fail.

As these ioctls are 32/64-bit compatible two simple COMPATIBLE_IOCTL
entries in fs/compat_ioctl.c will do the job.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

... ... @@ -1913,6 +1913,9 @@
1913 1913 /* 0x00 */
1914 1914 COMPATIBLE_IOCTL(FIBMAP)
1915 1915 COMPATIBLE_IOCTL(FIGETBSZ)
  1916 +/* 'X' - originally XFS but some now in the VFS */
  1917 +COMPATIBLE_IOCTL(FIFREEZE)
  1918 +COMPATIBLE_IOCTL(FITHAW)
1916 1919 /* RAID */
1917 1920 COMPATIBLE_IOCTL(RAID_VERSION)
1918 1921 COMPATIBLE_IOCTL(GET_ARRAY_INFO)