Andrea Arcangeli
acf128d048
mm: validate_mm browse_rb SMP race condition
...
The mmap_sem for reading in validate_mm called from expand_stack is not
enough to prevent the argumented rbtree rb_subtree_gap information to
change from under us because expand_stack may be running from other
threads concurrently which will hold the mmap_sem for reading too.
The argumented rbtree is updated with vma_gap_update under the
page_table_lock so use it in browse_rb() too to avoid false positives.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-02-05 18:10:40 -08:00
..
2016-01-20 17:09:18 -08:00
2016-01-14 16:00:49 -08:00
2016-01-12 20:47:06 +02:00
2015-12-06 12:46:31 +01:00
2016-01-27 09:09:57 -05:00
2015-07-17 16:39:54 -07:00
2015-11-05 19:34:48 -08:00
2015-08-14 15:56:32 -07:00
2016-01-14 16:00:49 -08:00
2016-01-15 17:56:32 -08:00
2015-11-06 17:50:42 -08:00
2015-11-05 19:34:48 -08:00
2015-06-02 08:33:35 -06:00
2015-11-06 17:50:42 -08:00
2016-01-23 12:24:56 -08:00
2015-11-05 19:34:48 -08:00
2015-06-24 17:49:45 -07:00
2016-02-03 08:57:14 -08:00
2016-02-03 08:28:43 -08:00
2015-11-06 17:50:42 -08:00
2016-01-15 17:56:32 -08:00
2015-09-10 13:29:01 -07:00
2016-02-03 08:28:43 -08:00
2015-02-10 14:30:31 -08:00
2016-01-15 17:56:32 -08:00
2016-01-14 16:00:49 -08:00
2016-01-15 17:56:32 -08:00
2016-01-20 17:09:18 -08:00
2015-11-05 19:34:48 -08:00
2016-01-15 17:56:32 -08:00
2015-09-11 16:42:39 -07:00
2016-01-14 16:00:49 -08:00
2016-01-21 17:20:51 -08:00
2016-01-15 17:56:32 -08:00
2016-01-15 17:56:32 -08:00
2016-02-03 08:57:14 -08:00
2016-01-15 17:56:32 -08:00
2015-11-06 17:50:42 -08:00
2015-09-08 15:35:28 -07:00
2016-01-15 17:56:32 -08:00
2016-01-21 17:20:51 -08:00
2016-01-21 17:20:51 -08:00
2015-06-30 19:44:56 -07:00
2016-02-05 18:10:40 -08:00
2015-09-10 13:29:01 -07:00
2016-01-14 16:00:49 -08:00
2016-01-15 17:56:32 -08:00
2016-01-15 17:56:32 -08:00
2015-11-05 19:34:48 -08:00
2015-12-06 12:46:31 +01:00
2016-01-14 16:00:49 -08:00
2016-01-14 16:00:49 -08:00
2016-02-03 08:28:43 -08:00
2015-11-05 19:34:48 -08:00
2015-09-10 13:29:01 -07:00
2016-01-15 17:56:32 -08:00
2015-08-13 12:32:00 -06:00
2016-01-15 17:56:32 -08:00
2015-07-17 16:39:54 -07:00
2016-01-14 16:00:49 -08:00
2016-01-15 17:56:32 -08:00
2016-01-22 17:02:18 -08:00
2016-01-15 17:56:32 -08:00
2016-01-20 17:09:18 -08:00
2016-01-14 16:00:49 -08:00
2016-01-15 17:56:32 -08:00
2016-01-22 18:08:52 -05:00
2016-01-20 17:09:18 -08:00
2016-01-14 16:00:49 -08:00
2016-01-20 17:09:18 -08:00
2015-11-22 11:58:44 -08:00
2016-01-20 17:09:18 -08:00
2016-01-15 17:56:32 -08:00
2016-01-15 17:56:32 -08:00
2016-01-20 17:09:18 -08:00
2016-01-15 17:56:32 -08:00
2016-01-22 18:04:28 -05:00
2016-01-22 17:02:18 -08:00
2016-01-15 17:56:32 -08:00
2016-02-03 08:28:43 -08:00
2015-11-05 19:34:48 -08:00
2016-01-15 17:56:32 -08:00
2016-02-03 08:28:43 -08:00
2016-01-22 17:02:18 -08:00
2016-01-24 08:55:52 -08:00
2016-01-22 17:02:18 -08:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2016-01-20 17:09:18 -08:00
2015-12-18 14:25:40 -08:00