]> 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>
Fri, 7 Jun 2013 00:07:28 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:00 +0000 (15:42 +1000)
commitd13a74937046f1ff6f822ebef6879a2a0e8393c1
tree8ef13c57c542974e5ad259ac5ebb81b9fe123d3c
parent71b6c9406717c176a657d40f1b58d156e72bc5f7
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