]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmscan.c: fix mapping use after free
authorNick Piggin <npiggin@suse.de>
Tue, 20 Jul 2010 20:24:25 +0000 (13:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Jul 2010 23:25:40 +0000 (16:25 -0700)
commitc9da63c69db3012fe835c74c42182052752820e4
tree2df66e9a20cdb8fac10a1979c6b678e98ee67f0a
parentb98d116cbb70223467ae4f1aaf1aea59aba69dda
mm/vmscan.c: fix mapping use after free

We need lock_page_nosync() here because we have no reference to the
mapping when taking the page lock.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c