]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] add check to /proc/devices read routines
authorNeil Horman <nhorman@redhat.com>
Thu, 23 Jun 2005 07:09:11 +0000 (00:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:19 +0000 (09:45 -0700)
commit54eb1eddf5710680ac58f1646e07cbe6ecacdde2
tree49ba4f88c5cea42d59b386c508174f585efc8a01
parent445ba7033d0b30b43cab9babab5e439f12bab366
[PATCH] add check to /proc/devices read routines

Patch to add check to get_chrdev_list and get_blkdev_list to prevent reads
of /proc/devices from spilling over the provided page if more than 4096
bytes of string data are generated from all the registered character and
block devices in a system

Signed-off-by: Neil Horman <nhorman@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/genhd.c
fs/char_dev.c
fs/proc/proc_misc.c
include/linux/genhd.h