]> 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>
Thu, 27 Jun 2013 23:51:12 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:21 +0000 (16:37 +1000)
commit7e4f24b89b9ce81014b21fec1524d933d0ba81f6
tree683fd763b3c713212fc711064ef5ba312082ede3
parent95ebab7ddee739e249887a0c584e19db63f10b50
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