Andy Lutomirski
9ab4233dd0
mm: Hold a file reference in madvise_remove
...
Otherwise the code races with munmap (causing a use-after-free
of the vma) or with close (causing a use-after-free of the struct
file).
The bug was introduced by commit 90ed52ebe481 ("[PATCH] holepunch: fix
mmap_sem i_mutex deadlock")
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Miklos Szeredi <mszeredi@suse.cz>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-06 10:34:38 -07:00
..
2012-02-01 16:52:49 +08:00
2012-05-29 16:22:24 -07:00
2012-03-20 21:48:27 +08:00
2012-05-29 23:28:33 -04:00
2012-06-03 20:05:57 -07:00
2011-12-06 09:24:07 +01:00
2011-10-31 09:20:12 -04:00
2012-01-10 16:30:43 -08:00
2012-01-03 22:54:56 -05:00
2012-06-01 12:07:25 -04:00
2012-06-01 10:34:35 -07:00
2011-10-31 09:20:11 -04:00
2012-05-15 11:34:08 -04:00
2011-11-06 19:44:47 -08:00
2012-05-29 16:22:28 -07:00
2012-05-30 08:48:13 -07:00
2012-01-03 12:06:32 -08:00
2011-07-26 16:49:47 -07:00
2012-06-03 20:05:57 -07:00
2012-06-04 12:28:45 -07:00
2012-01-10 16:30:42 -08:00
2010-03-30 22:02:32 +09:00
2011-01-27 18:31:51 +00:00
2012-01-20 16:57:05 +00:00
2012-03-21 17:54:59 -07:00
2011-10-31 09:20:12 -04:00
2012-07-06 10:34:38 -07:00
2012-06-04 12:28:45 -07:00
2012-06-20 14:39:36 -07:00
2012-06-20 14:39:36 -07:00
2012-05-29 16:22:21 -07:00
2012-05-29 16:22:18 -07:00
2012-06-20 14:39:36 -07:00
2012-06-20 22:10:42 -07:00
2012-01-10 16:30:45 -08:00
2012-06-03 20:05:47 -07:00
2012-03-21 17:54:54 -07:00
2012-03-06 18:23:36 -08:00
2011-10-31 09:20:12 -04:00
2012-06-01 10:34:35 -07:00
2012-03-21 17:54:59 -07:00
2011-10-31 09:20:12 -04:00
2012-05-29 16:22:26 -07:00
2012-03-22 09:04:48 -07:00
2012-06-01 10:37:16 -04:00
2010-05-21 18:31:21 -04:00
2012-05-29 16:22:22 -07:00
2012-06-04 17:17:31 -04:00
2012-06-20 14:39:36 -07:00
2012-06-03 20:05:57 -07:00
2012-06-20 14:39:36 -07:00
2012-05-15 11:34:08 -04:00
2012-05-21 15:09:33 +02:00
2012-05-06 13:41:58 +08:00
2012-06-20 14:39:36 -07:00
2010-10-02 10:28:42 +03:00
2012-06-20 14:39:36 -07:00
2012-05-09 10:13:29 -07:00
2012-05-25 12:48:21 -04:00
2011-05-20 12:50:29 -07:00
2012-05-31 17:49:32 -07:00
2011-10-31 09:20:11 -04:00
2012-05-29 16:22:23 -07:00
2012-05-29 16:22:19 -07:00
2012-07-03 15:45:10 -07:00
2012-03-28 15:04:26 -07:00
2011-10-31 09:20:12 -04:00
2012-06-01 16:50:23 -07:00
2011-10-31 09:20:11 -04:00
2012-05-29 16:22:22 -07:00
2012-04-23 18:19:22 -07:00
2012-05-29 16:22:28 -07:00
2012-06-15 21:48:14 -07:00
2012-05-29 16:22:23 -07:00
2012-06-01 10:37:18 -04:00
2012-05-29 16:22:24 -07:00
2012-05-29 16:22:28 -07:00
2012-05-29 16:22:19 -07:00