Andrey Ryabinin
624483f3ea
mm: rmap: fix use-after-free in __put_anon_vma
...
While working address sanitizer for kernel I've discovered
use-after-free bug in __put_anon_vma.
For the last anon_vma, anon_vma->root freed before child anon_vma.
Later in anon_vma_free(anon_vma) we are referencing to already freed
anon_vma->root to check rwsem.
This fixes it by freeing the child anon_vma before freeing
anon_vma->root.
Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: <stable@vger.kernel.org> # v3.0+
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-06 08:53:41 -07:00
..
2014-04-03 16:20:49 -07:00
2014-05-06 13:04:59 -07:00
2014-04-07 16:36:15 -07:00
2014-05-23 09:37:29 -07:00
2014-03-19 16:21:49 -07:00
2014-04-18 16:40:09 -07:00
2014-03-19 10:23:54 -04:00
2014-05-06 13:04:58 -07:00
2014-04-07 16:35:58 -07:00
2014-04-01 23:19:30 -04:00
2014-05-15 00:01:41 +01:00
2014-05-11 17:55:48 +09:00
2014-03-04 07:55:47 -08:00
2014-04-03 16:21:01 -07:00
2014-05-23 09:37:29 -07:00
2014-04-12 14:49:50 -07:00
2014-04-07 16:35:58 -07:00
2014-05-23 09:37:29 -07:00
2014-05-23 09:37:30 -07:00
2014-04-25 16:05:40 -07:00
2014-04-07 16:35:54 -07:00
2014-04-07 16:35:55 -07:00
2014-03-20 22:09:09 -07:00
2014-04-03 16:21:00 -07:00
2014-04-07 16:35:57 -07:00
2014-01-27 21:02:39 -08:00
2014-04-07 16:35:53 -07:00
2014-02-21 08:50:17 +01:00
2014-04-07 16:35:50 -07:00
2014-05-11 17:55:48 +09:00
2014-04-03 16:21:02 -07:00
2014-04-07 16:35:55 -07:00
2014-01-30 16:56:56 -08:00
2014-04-07 16:35:59 -07:00
2014-04-03 16:21:02 -07:00
2014-01-30 11:19:05 -08:00
2014-05-06 13:04:58 -07:00
2014-04-14 16:18:06 -04:00
2014-04-12 14:49:50 -07:00
2014-04-07 16:35:58 -07:00
2014-06-06 08:53:41 -07:00
2014-04-13 14:10:26 -07:00
2014-05-06 13:04:59 -07:00
2014-05-05 20:38:49 -07:00
2014-05-06 13:04:59 -07:00
2014-04-11 10:06:06 +03:00
2014-05-06 13:04:59 -07:00
2014-04-07 16:35:54 -07:00
2014-02-06 13:48:51 -08:00
2014-04-03 16:21:01 -07:00
2014-02-06 13:48:51 -08:00
2014-05-06 13:04:59 -07:00
2014-05-06 14:02:53 -04:00
2014-04-28 14:24:09 -07:00
2014-04-07 16:35:55 -07:00
2014-02-03 13:24:01 -05:00
2014-05-06 13:04:59 -07:00
2014-04-07 14:55:46 -07:00
2014-04-03 16:21:01 -07:00
2014-03-20 13:43:45 +01:00
2014-04-07 16:38:06 -07:00