Subject: [merged] block-compat_ioctlc-do-not-leak-info-to-user-space.patch removed from -mm tree To: amwang@xxxxxxxxxx,axboe@xxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 08 Jul 2013 12:23:41 -0700 The patch titled Subject: block/compat_ioctl.c: do not leak info to user-space has been removed from the -mm tree. Its filename was block-compat_ioctlc-do-not-leak-info-to-user-space.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Cong Wang <amwang@xxxxxxxxxx> Subject: 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@xxxxxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- block/compat_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff -puN block/compat_ioctl.c~block-compat_ioctlc-do-not-leak-info-to-user-space block/compat_ioctl.c --- a/block/compat_ioctl.c~block-compat_ioctlc-do-not-leak-info-to-user-space +++ a/block/compat_ioctl.c @@ -59,6 +59,7 @@ static int compat_hdio_getgeo(struct gen if (!disk->fops->getgeo) return -ENOTTY; + memset(&geo, 0, sizeof(geo)); /* * We need to set the startsect first, the driver may * want to override it. _ Patches currently in -mm which might be from amwang@xxxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html