diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-11-08 14:42:40 +0100 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-11-10 14:40:53 +0100 |
commit | a014741c0adfb8fb79952939ca087cf03d272bb9 (patch) | |
tree | 57bafa05736f172b94fde156bb51798b3ddb6107 /fs/ioprio.c | |
parent | block: read i_size with i_size_read() (diff) | |
download | linux-a014741c0adfb8fb79952939ca087cf03d272bb9.tar.xz linux-a014741c0adfb8fb79952939ca087cf03d272bb9.zip |
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>
Diffstat (limited to 'fs/ioprio.c')
0 files changed, 0 insertions, 0 deletions