Vegard Nossum
3a22cf0c7b
ext4: fix reference counting bug on block allocation error
...
commit 554a5ccc4e upstream.
If we hit this error when mounted with errors=continue or
errors=remount-ro:
EXT4-fs error (device loop0): ext4_mb_mark_diskspace_used:2940: comm ext4.exe: Allocating blocks 5090-6081 which overlap fs metadata
then ext4_mb_new_blocks() will call ext4_mb_release_context() and try to
continue. However, ext4_mb_release_context() is the wrong thing to call
here since we are still actually using the allocation context.
Instead, just error out. We could retry the allocation, but there is a
possibility of getting stuck in an infinite loop instead, so this seems
safer.
[ Fixed up so we don't return EAGAIN to userspace. --tytso ]
Fixes: 8556e8f3b6 ("ext4: Don't allow new groups to be added during block allocation")
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com >
Signed-off-by: Theodore Ts'o <tytso@mit.edu >
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-08-16 09:30:51 +02:00
..
2016-08-10 11:49:27 +02:00
2015-06-30 19:44:57 -07:00
2016-06-07 18:14:32 -07:00
2015-05-11 10:50:17 -04:00
2015-06-23 18:02:01 -04:00
2015-07-04 19:36:06 -07:00
2015-04-26 17:22:07 -07:00
2016-07-27 09:47:33 -07:00
2015-11-16 20:38:43 -05:00
2015-11-13 09:24:40 -08:00
2016-07-27 09:47:39 -07:00
2015-09-10 13:29:01 -07:00
2015-11-20 16:17:32 -08:00
2016-05-04 14:48:41 -07:00
2016-08-16 09:30:49 +02:00
2015-12-01 15:45:05 -05:00
2016-08-10 11:49:27 +02:00
2016-03-03 15:07:09 -08:00
2015-06-25 17:00:42 -07:00
2015-12-12 10:15:34 -08:00
2015-02-22 11:38:41 -05:00
2015-11-16 09:43:54 -08:00
2016-08-16 09:30:51 +02:00
2015-11-13 18:02:30 -08:00
2015-11-20 16:17:32 -08:00
2015-08-07 13:59:24 +02:00
2015-11-11 02:11:02 -05:00
2016-08-16 09:30:50 +02:00
2015-11-13 18:02:30 -08:00
2015-09-10 13:29:01 -07:00
2015-11-13 20:34:32 -05:00
2016-03-03 15:07:12 -08:00
2016-06-01 12:15:54 -07:00
2016-02-25 12:01:22 -08:00
2016-05-18 17:06:54 -07:00
2016-04-12 09:08:53 -07:00
2016-03-16 08:42:58 -07:00
2015-11-09 15:11:24 -08:00
2015-08-18 15:49:15 -07:00
2015-11-11 20:11:28 -08:00
2015-11-06 17:50:42 -08:00
2015-07-04 19:36:06 -07:00
2016-03-16 08:42:59 -07:00
2016-07-27 09:47:30 -07:00
2015-08-13 10:22:06 -04:00
2016-07-27 09:47:30 -07:00
2016-08-10 11:49:25 +02:00
2015-11-05 19:34:48 -08:00
2015-11-06 17:50:42 -08:00
2016-05-18 17:06:44 -07:00
2015-05-28 18:25:19 -07:00
2016-08-10 11:49:28 +02:00
2016-06-24 10:18:20 -07:00
2015-11-02 13:41:52 -08:00
2015-06-23 18:02:00 -04:00
2016-04-12 09:08:56 -07:00
2015-10-16 11:42:28 -07:00
2015-11-13 18:02:30 -08:00
2015-04-11 22:29:40 -04:00
2015-11-13 20:34:33 -05:00
2015-11-13 21:53:18 -08:00
2015-11-23 21:11:08 -05:00
2015-11-04 22:13:45 -05:00
2016-07-27 09:47:31 -07:00
2016-02-25 12:01:18 -08:00
2015-09-09 10:43:12 -07:00
2016-06-07 18:14:38 -07:00
2015-09-04 16:54:41 -07:00
2015-02-20 04:03:58 -05:00
2014-11-19 13:01:20 -05:00
2015-11-10 12:07:22 -08:00
2015-11-11 09:45:24 -08:00
2014-12-13 12:42:51 -08:00
2015-04-26 17:22:07 -07:00
2014-12-13 12:42:51 -08:00
2015-12-04 11:02:17 -07:00
2015-11-11 02:19:33 -05:00
2015-08-05 13:49:35 -07:00
2015-10-23 23:26:43 +02:00
2014-10-31 17:48:54 -04:00
2016-04-12 09:08:58 -07:00
2015-11-16 23:54:45 -08:00
2016-08-16 09:30:50 +02:00
2016-03-03 15:07:28 -08:00
2015-08-17 18:39:46 -04:00
2015-02-17 14:34:52 -08:00
2015-02-13 21:21:40 -08:00
2015-07-10 10:39:25 -05:00
2015-01-08 15:10:52 -08:00
2016-04-12 09:08:58 -07:00
2015-08-07 04:39:40 +03:00
2015-11-05 23:05:32 -08:00
2015-04-09 11:39:55 -05:00
2016-04-12 09:09:04 -07:00
2016-08-10 11:49:30 +02:00
2015-08-17 23:38:10 -04:00
2015-02-10 14:30:30 -08:00
2015-11-16 23:54:45 -08:00
2015-04-14 16:49:05 -07:00
2015-08-12 15:28:45 -05:00
2016-08-10 11:49:27 +02:00
2015-10-15 10:33:21 -04:00
2015-06-30 19:44:56 -07:00
2015-11-06 17:50:42 -08:00
2016-05-18 17:06:51 -07:00
2016-08-10 11:49:27 +02:00
2015-09-11 15:21:34 -07:00
2016-05-18 17:06:48 -07:00
2016-06-07 18:14:35 -07:00
2016-05-11 11:21:19 +02:00
2015-07-22 20:33:27 -05:00
2016-07-27 09:47:30 -07:00
2016-04-12 09:08:55 -07:00
2015-04-11 22:29:46 -04:00
2014-10-31 17:48:54 -04:00
2015-05-19 08:32:00 +02:00
2015-11-06 17:50:42 -08:00
2015-08-07 04:39:40 +03:00
2016-04-12 09:08:55 -07:00
2015-11-09 15:11:24 -08:00
2016-03-09 15:34:52 -08:00
2015-11-06 17:50:42 -08:00
2016-02-25 12:01:25 -08:00
2016-03-16 08:43:01 -07:00
2015-11-13 20:34:33 -05:00