Files
linux/mm
Grazvydas Ignotas 9113c468b6 mm/memory.c: actually remap enough memory
commit 9cb12d7b4c upstream.

For whatever reason, generic_access_phys() only remaps one page, but
actually allows to access arbitrary size.  It's quite easy to trigger
large reads, like printing out large structure with gdb, which leads to a
crash.  Fix it by remapping correct size.

Fixes: 28b2ee20c7 ("access_process_vm device memory infrastructure")
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-18 13:22:28 +01:00
..
2012-01-03 22:54:56 -05:00
2011-07-26 16:49:47 -07:00
2014-04-03 12:01:05 -07:00
2013-02-23 17:50:18 -08:00
2010-05-21 18:31:21 -04:00
2013-07-21 18:21:26 -07:00
2013-02-23 17:50:18 -08:00
2014-02-13 13:48:00 -08:00
2014-04-03 12:01:05 -07:00