Skip to contentSkip to conversation

block-compat_ioctlc-do-not-leak-info-to-user-space.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

Subject: [merged] block-compat_ioctlc-do-not-leak-info-to-user-space.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
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 <[email protected]>
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.

---

 block/compat_ioctl.c |    1 +
 1 file changed, 1 insertion(+)
block/compat_ioctl.c renamed from block/compat_ioctl.c~block-compat_ioctlc-do-not-leak-info-to-user-space +1 -0
diff -puN block/compat_ioctl.c~block-compat_ioctlc-do-not-leak-info-to-user-space 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 [email protected] are

origin.patch
linux-next.patch