From: Vasiliy Kulikov Date: Mon, 8 Nov 2010 13:42:40 +0000 (+0100) Subject: block: ioctl: fix information leak to userland X-Git-Tag: v2.6.37-rc2~30^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a014741c0adfb8fb79952939ca087cf03d272bb9;p=pandora-kernel.git block: ioctl: fix information leak to userland Structure hd_geometry is copied to userland with 4 padding bytes between cylinders and start fields uninitialized on 64-bit platforms. It leads to leaking of contents of kernel stack memory. Currently there is no memset() in real implementations of getgeo() in drivers/block/, so it makes sense to have memset() in blkdev_ioctl(). Signed-off-by: Vasiliy Kulikov Signed-off-by: Jens Axboe --- Reading git-diff-tree failed