Searched hist:a014741c0adfb8fb79952939ca087cf03d272bb9 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/block/ |
H A D | ioctl.c | diff a014741c0adfb8fb79952939ca087cf03d272bb9 Mon Nov 08 07:42:40 CST 2010 Vasiliy Kulikov <segooon@gmail.com> 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 <segooon@gmail.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
|