Subject: [merged] agp-info-leak-in-agpioc_info_wrap.patch removed from -mm tree To: dan.carpenter@xxxxxxxxxx,airlied@xxxxxxxx,daniel.vetter@xxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Wed, 07 May 2014 12:05:21 -0700 The patch titled Subject: agp: info leak in agpioc_info_wrap() has been removed from the -mm tree. Its filename was agp-info-leak-in-agpioc_info_wrap.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: agp: info leak in agpioc_info_wrap() On 64 bit systems the agp_info struct has a 4 byte hole between ->agp_mode and ->aper_base. We need to clear it to avoid disclosing stack information to userspace. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Cc: David Airlie <airlied@xxxxxxxx> Cc: Daniel Vetter <daniel.vetter@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/agp/frontend.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/char/agp/frontend.c~agp-info-leak-in-agpioc_info_wrap drivers/char/agp/frontend.c --- a/drivers/char/agp/frontend.c~agp-info-leak-in-agpioc_info_wrap +++ a/drivers/char/agp/frontend.c @@ -730,6 +730,7 @@ static int agpioc_info_wrap(struct agp_f agp_copy_info(agp_bridge, &kerninfo); + memset(&userinfo, 0, sizeof(userinfo)); userinfo.version.major = kerninfo.version.major; userinfo.version.minor = kerninfo.version.minor; userinfo.bridge_id = kerninfo.device->vendor | _ Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are origin.patch lib-stringc-use-the-name-c-string-in-comments.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