KOSAKI Motohiro
227d53b397
mm: __set_page_dirty uses spin_lock_irqsave instead of spin_lock_irq
...
To use spin_{un}lock_irq is dangerous if caller disabled interrupt.
During aio buffer migration, we have a possibility to see the following
call stack.
aio_migratepage [disable interrupt]
migrate_page_copy
clear_page_dirty_for_io
set_page_dirty
__set_page_dirty_buffers
__set_page_dirty
spin_lock_irq
This mean, current aio migration is a deadlockable. spin_lock_irqsave
is a safer alternative and we should use it.
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Reported-by: David Rientjes rientjes@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-02-06 13:48:51 -08:00
..
2014-01-28 08:38:04 -08:00
2013-10-24 23:43:27 -04:00
2014-01-25 03:13:01 -05:00
2014-02-01 10:59:39 -08:00
2014-01-23 16:36:59 -08:00
2014-01-25 03:14:38 -05:00
2013-09-12 15:38:02 -07:00
2014-02-04 12:26:56 -08:00
2013-11-13 15:34:18 +09:00
2014-01-31 08:14:06 -08:00
2014-01-31 09:06:43 -06:00
2013-11-09 00:16:21 -05:00
2013-11-21 16:42:27 -08:00
2014-01-25 03:13:02 -05:00
2013-11-13 12:09:24 +09:00
2013-11-13 12:09:36 +09:00
2014-01-25 11:17:34 -08:00
2014-01-25 03:13:00 -05:00
2013-11-15 22:04:17 -05:00
2014-01-25 03:13:02 -05:00
2014-01-23 18:54:14 +02:00
2013-11-09 00:16:38 -05:00
2014-01-25 23:58:19 -05:00
2014-01-28 08:38:04 -08:00
2014-01-30 11:19:05 -08:00
2014-01-30 11:19:05 -08:00
2013-10-24 23:43:28 -04:00
2013-06-29 12:56:53 +04:00
2013-11-14 12:08:14 +09:00
2014-01-28 08:38:04 -08:00
2014-01-30 11:19:05 -08:00
2013-11-13 12:09:32 +09:00
2014-02-01 10:43:45 -08:00
2014-01-26 11:51:09 +01:00
2014-02-02 16:24:07 -08:00
2013-07-03 16:07:41 -07:00
2013-08-24 12:10:17 -04:00
2013-10-24 23:34:59 -04:00
2013-12-04 12:27:46 +01:00
2013-12-08 21:14:59 -05:00
2014-01-28 18:56:37 -08:00
2014-01-31 08:14:35 -08:00
2014-01-17 11:50:07 -08:00
2013-08-05 15:03:46 -04:00
2014-01-30 11:19:05 -08:00
2013-09-16 18:20:25 -07:00
2013-10-24 23:43:28 -04:00
2014-02-03 17:13:45 -05:00
2014-01-30 10:18:43 -08:00
2014-01-30 11:19:05 -08:00
2014-01-25 03:14:05 -05:00
2014-01-29 13:57:17 +01:00
2013-11-09 00:16:31 -05:00
2014-02-06 13:48:51 -08:00
2013-09-12 15:38:02 -07:00
2013-06-29 12:56:32 +04:00
2014-01-23 16:37:02 -08:00
2013-12-20 13:12:01 -08:00
2014-01-25 03:13:03 -05:00
2013-06-29 12:56:39 +04:00
2013-11-19 16:39:06 -05:00
2014-01-23 16:36:58 -08:00
2014-01-28 08:38:04 -08:00
2014-01-23 16:37:04 -08:00
2013-11-24 01:02:50 +00:00
2014-01-13 14:05:13 -08:00
2013-09-29 22:02:02 -04:00
2014-01-23 16:37:03 -08:00
2013-12-23 22:02:16 +01:00
2013-09-12 15:38:02 -07:00
2014-01-30 11:19:05 -08:00
2013-12-22 11:03:49 -08:00
2013-11-09 00:16:28 -05:00
2013-12-05 16:36:21 -06:00
2013-06-29 12:57:04 +04:00
2013-11-09 00:16:26 -05:00
2013-11-09 00:16:30 -05:00
2014-01-23 16:36:58 -08:00
2013-10-24 23:34:54 -04:00
2014-01-21 20:32:05 -08:00
2014-01-08 14:14:22 -07:00
2013-09-13 23:06:40 -04:00
2014-02-06 13:48:51 -08:00
2013-11-14 12:08:14 +09:00
2014-01-21 16:19:42 -08:00
2013-06-29 12:57:05 +04:00
2014-01-23 16:37:01 -08:00
2014-01-26 12:37:55 -05:00
2014-01-29 16:22:40 -08:00
2013-11-23 22:33:47 -08:00
2013-09-10 18:56:31 -04:00
2014-01-25 03:13:04 -05:00
2014-01-02 14:40:30 -08:00
2014-02-05 12:54:53 -08:00
2013-10-24 23:34:54 -04:00
2013-11-13 15:34:18 +09:00
2014-01-25 03:14:38 -05:00
2013-11-06 12:40:26 +01:00
2013-12-14 04:21:26 +08:00
2013-11-09 00:16:44 -05:00
2013-11-09 00:16:20 -05:00
2013-10-24 23:34:54 -04:00
2014-01-26 08:26:40 -05:00
2013-11-15 22:04:17 -05:00
2013-11-13 07:30:53 -05:00
2014-01-28 08:38:04 -08:00
2013-09-10 18:56:31 -04:00
2014-01-26 08:26:42 -05:00
2013-11-23 22:33:47 -08:00
2014-02-05 12:54:53 -08:00
2014-01-20 15:49:44 -08:00
2013-11-09 00:16:44 -05:00
2014-01-23 16:37:00 -08:00
2013-10-24 23:35:00 -04:00
2013-08-26 18:42:15 -07:00
2014-02-03 17:12:37 -05:00
2014-01-23 16:37:02 -08:00
2014-01-29 16:22:39 -08:00
2013-10-24 23:34:54 -04:00
2013-11-13 15:34:18 +09:00
2013-11-18 19:07:53 -08:00
2014-01-22 19:36:57 +01:00
2013-11-09 00:16:31 -05:00
2013-10-12 13:12:31 -07:00
2014-01-31 14:29:36 -05:00
2013-11-13 15:45:43 +09:00
2013-05-29 12:57:34 -07:00
2013-11-09 00:16:44 -05:00