]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block/compat_ioctl.c: do not leak info to user-space
authorCong Wang <amwang@redhat.com>
Wed, 19 Jun 2013 00:05:44 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:51 +0000 (17:12 +1000)
commit2940d651e44081d65901cb8aa18990dd7b2067d4
tree5f39da33006810f12b83952ec220d935f76c89eb
parente693df9f20e4bff98494b409616af28e6eb50625
block/compat_ioctl.c: do not leak info to user-space

There is a hole in struct hd_geometry, so we have to zero the struct on
stack before copying it to user-space.

Signed-off-by: Cong Wang <amwang@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/compat_ioctl.c