summaryrefslogtreecommitdiff
path: root/drivers/vfio
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2014-02-04 23:23:12 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-22 12:41:27 -0800
commit5f32e4632c22a12b8ddc2e16c2be6b2988baf57a (patch)
treedf83d9e703c090c21ac5eb0d5e7c6045cbf62476 /drivers/vfio
parentdf6b8e747f8a232226d17f021bcf725cc5f94908 (diff)
downloadlinux-3.10-5f32e4632c22a12b8ddc2e16c2be6b2988baf57a.tar.gz
linux-3.10-5f32e4632c22a12b8ddc2e16c2be6b2988baf57a.tar.bz2
linux-3.10-5f32e4632c22a12b8ddc2e16c2be6b2988baf57a.zip
raw: test against runtime value of max_raw_minors
commit 5bbb2ae3d6f896f8d2082d1eceb6131c2420b7cf upstream. bind_get() checks the device number it is called with. It uses MAX_RAW_MINORS for the upper bound. But MAX_RAW_MINORS is set at compile time while the actual number of raw devices can be set at runtime. This means the test can either be too strict or too lenient. And if the test ends up being too lenient bind_get() might try to access memory beyond what was allocated for "raw_devices". So check against the runtime value (max_raw_minors) in this function. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vfio')
0 files changed, 0 insertions, 0 deletions