https://github.com/torvalds/linux
Revision 325fda71d0badc1073dc59f12a948f24ff05796a authored by KAMEZAWA Hiroyuki on 02 February 2010, 21:44:05 UTC, committed by Linus Torvalds on 03 February 2010, 02:11:22 UTC
Otherwise vmalloc_to_page() will BUG().

This also makes the kmem read/write implementation aligned with mem(4):
"References to nonexistent locations cause errors to be returned." Here we
return -ENXIO (inspired by Hugh) if no bytes have been transfered to/from
user space, otherwise return partial read/write results.

Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 931e80e
History
Tip revision: 325fda71d0badc1073dc59f12a948f24ff05796a authored by KAMEZAWA Hiroyuki on 02 February 2010, 21:44:05 UTC
devmem: check vmalloc address on kmem read/write
Tip revision: 325fda7
File Mode Size
Kconfig -rw-r--r-- 3.1 KB
Kconfig.iosched -rw-r--r-- 1.8 KB
Makefile -rw-r--r-- 582 bytes
blk-barrier.c -rw-r--r-- 10.6 KB
blk-cgroup.c -rw-r--r-- 9.1 KB
blk-cgroup.h -rw-r--r-- 3.6 KB
blk-core.c -rw-r--r-- 67.4 KB
blk-exec.c -rw-r--r-- 2.6 KB
blk-integrity.c -rw-r--r-- 9.9 KB
blk-ioc.c -rw-r--r-- 3.9 KB
blk-iopoll.c -rw-r--r-- 5.9 KB
blk-map.c -rw-r--r-- 8.1 KB
blk-merge.c -rw-r--r-- 10.8 KB
blk-settings.c -rw-r--r-- 25.9 KB
blk-softirq.c -rw-r--r-- 4.1 KB
blk-sysfs.c -rw-r--r-- 12.9 KB
blk-tag.c -rw-r--r-- 9.9 KB
blk-timeout.c -rw-r--r-- 5.7 KB
blk.h -rw-r--r-- 4.5 KB
bsg.c -rw-r--r-- 23.4 KB
cfq-iosched.c -rw-r--r-- 98.2 KB
compat_ioctl.c -rw-r--r-- 22.1 KB
deadline-iosched.c -rw-r--r-- 11.4 KB
elevator.c -rw-r--r-- 24.3 KB
genhd.c -rw-r--r-- 29.9 KB
ioctl.c -rw-r--r-- 8.2 KB
noop-iosched.c -rw-r--r-- 2.6 KB
scsi_ioctl.c -rw-r--r-- 18.0 KB

back to top