Files
linux/mm
Grazvydas Ignotas 9db79db105 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:31:24 +01:00
..
2012-01-03 22:54:56 -05:00
2011-07-26 16:49:47 -07:00
2014-03-04 07:55:47 -08:00
2014-10-09 12:21:29 -07:00
2014-01-27 21:02:39 -08:00
2010-05-21 18:31:21 -04:00
2014-11-21 09:23:06 -08:00
2014-10-09 12:21:28 -07:00
2014-10-09 12:21:28 -07:00
2014-01-30 16:56:55 -08:00