]> 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, 23 May 2013 00:37:03 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:08:08 +0000 (16:08 +1000)
commit6e0053c4b9c732eef18f3d773a9a5eaac27d6559
treedeb029935d12544efea58124b9c0d5c264f2a653
parent13242561e67db4d6afecdf55e8cc6cb3abe34642
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