Theodore Ts'o
df818904fe
ext4: fix punch hole for inline_data file systems
...
commit c1e8220bd316d8ae8e524df39534b8a412a45d5e upstream.
If a program attempts to punch a hole on an inline data file, we need
to convert it to a normal file first.
This was detected using ext4/032 using the adv configuration. Simple
reproducer:
mke2fs -Fq -t ext4 -O inline_data /dev/vdc
mount /vdc
echo "" > /vdc/testfile
xfs_io -c 'truncate 33554432' /vdc/testfile
xfs_io -c 'fpunch 0 1048576' /vdc/testfile
umount /vdc
e2fsck -fy /dev/vdc
Cc: stable@vger.kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-10-05 12:48:11 +02:00
..
2019-07-31 07:28:55 +02:00
2019-08-06 19:05:21 +02:00
2018-05-30 07:51:47 +02:00
2018-07-08 15:30:51 +02:00
2019-03-13 14:03:19 -07:00
2017-11-02 11:10:55 +01:00
2018-12-01 09:42:51 +01:00
2019-10-05 12:48:10 +02:00
2018-12-17 09:28:53 +01:00
2019-09-10 10:32:18 +01:00
2019-09-21 07:15:38 +02:00
2019-08-06 19:05:23 +02:00
2019-06-22 08:16:17 +02:00
2018-11-13 11:15:12 -08:00
2019-07-31 07:28:22 +02:00
2019-05-08 07:20:49 +02:00
2019-03-23 14:35:21 +01:00
2019-02-12 19:45:57 +01:00
2019-07-31 07:28:42 +02:00
2017-07-11 06:09:21 -04:00
2017-11-02 11:10:55 +01:00
2018-11-27 16:10:47 +01:00
2018-12-17 09:28:50 +01:00
2019-03-23 14:35:23 +01:00
2019-10-05 12:48:11 +02:00
2019-10-05 12:47:39 +02:00
2019-06-15 11:54:51 +02:00
2018-12-17 09:28:53 +01:00
2019-10-05 12:48:05 +02:00
2019-10-05 12:48:08 +02:00
2018-12-17 09:28:54 +01:00
2018-12-17 09:28:54 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-31 06:47:12 -07:00
2018-10-03 17:00:57 -07:00
2019-07-31 07:28:47 +02:00
2019-05-08 07:20:49 +02:00
2018-08-09 12:16:39 +02:00
2019-05-16 19:42:19 +02:00
2019-06-09 09:18:18 +02:00
2017-11-02 11:10:55 +01:00
2018-03-28 18:24:43 +02:00
2019-09-21 07:15:37 +02:00
2018-02-03 17:39:08 +01:00
2019-07-31 07:28:48 +02:00
2018-05-30 07:51:47 +02:00
2017-11-02 11:10:55 +01:00
2019-02-06 17:31:37 +01:00
2017-11-02 11:10:55 +01:00
2019-08-25 10:50:17 +02:00
2017-11-02 11:10:55 +01:00
2018-06-26 08:06:33 +08:00
2019-10-05 12:48:09 +02:00
2019-07-31 07:28:38 +02:00
2019-06-11 12:21:48 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-07-21 09:04:28 +02:00
2017-09-06 17:27:26 -07:00
2018-11-27 16:10:46 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 09:26:32 +02:00
2018-09-05 09:26:41 +02:00
2018-12-17 09:28:48 +01:00
2017-07-06 03:31:46 -04:00
2019-09-19 09:08:06 +02:00
2019-07-21 09:04:30 +02:00
2019-05-25 18:25:36 +02:00
2019-10-05 12:47:38 +02:00
2018-12-21 14:13:04 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-04 19:05:15 -04:00
2017-09-14 18:13:32 -07:00
2019-10-05 12:48:06 +02:00
2019-07-03 13:15:59 +02:00
2018-06-26 08:06:33 +08:00
2019-02-15 09:08:56 +01:00
2019-04-17 08:37:53 +02:00
2019-04-05 22:31:28 +02:00
2019-05-31 06:47:31 -07:00
2019-08-09 17:53:35 +02:00
2017-11-02 11:10:55 +01:00
2018-04-26 11:02:14 +02:00
2019-02-06 17:31:34 +01:00
2019-04-27 09:35:41 +02:00
2019-03-13 14:03:18 -07:00
2017-07-03 21:13:25 -07:00
2019-02-12 19:46:10 +01:00
2019-08-04 09:32:03 +02:00
2017-12-17 15:07:59 +01:00
2017-11-02 11:10:55 +01:00
2017-08-28 00:50:23 -04:00
2019-04-05 22:31:28 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-07-31 07:28:25 +02:00
2019-06-22 08:16:19 +02:00
2017-09-13 09:11:44 -07:00
2018-11-10 07:48:33 -08:00
2019-04-27 09:35:41 +02:00
2017-07-12 16:26:00 -07:00
2017-07-06 07:02:29 -04:00
2018-10-03 17:00:53 -07:00
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:25 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-01 09:42:59 +01:00
2018-11-21 09:24:14 +01:00
2017-11-02 11:10:55 +01:00
2019-07-31 07:28:58 +02:00
2019-05-04 09:15:18 +02:00
2017-05-23 08:41:17 -05:00
2017-11-02 11:10:55 +01:00
2019-09-10 10:32:15 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-22 15:42:28 +01:00
2017-11-02 11:10:55 +01:00
2019-05-04 09:15:18 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-30 07:51:47 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-08-29 08:26:43 +02:00
2017-11-02 11:10:55 +01:00
2018-10-10 08:54:27 +02:00