Subject: + drivers-misc-sgi-gru-grufilec-fix-info-leak-in-gru_get_config_info.patch added to -mm tree To: dan.carpenter@xxxxxxxxxx,holt@xxxxxxx,sivanich@xxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Fri, 31 May 2013 14:26:42 -0700 The patch titled Subject: drivers/misc/sgi-gru/grufile.c: fix info leak in gru_get_config_info() has been added to the -mm tree. Its filename is drivers-misc-sgi-gru-grufilec-fix-info-leak-in-gru_get_config_info.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Subject: drivers/misc/sgi-gru/grufile.c: fix info leak in gru_get_config_info() The "info.fill" array isn't initialized so it can leak uninitialized stack information to user space. Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Acked-by: Robin Holt <holt@xxxxxxx> Acked-by: Dimitri Sivanich <sivanich@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/sgi-gru/grufile.c | 1 + 1 file changed, 1 insertion(+) diff -puN drivers/misc/sgi-gru/grufile.c~drivers-misc-sgi-gru-grufilec-fix-info-leak-in-gru_get_config_info drivers/misc/sgi-gru/grufile.c --- a/drivers/misc/sgi-gru/grufile.c~drivers-misc-sgi-gru-grufilec-fix-info-leak-in-gru_get_config_info +++ a/drivers/misc/sgi-gru/grufile.c @@ -172,6 +172,7 @@ static long gru_get_config_info(unsigned nodesperblade = 2; else nodesperblade = 1; + memset(&info, 0, sizeof(info)); info.cpus = num_online_cpus(); info.nodes = num_online_nodes(); info.blades = info.nodes / nodesperblade; _ Patches currently in -mm which might be from dan.carpenter@xxxxxxxxxx are origin.patch linux-next.patch drivers-misc-sgi-gru-grufilec-fix-info-leak-in-gru_get_config_info.patch configfs-use-capped-length-for-store_attribute.patch errh-is_err-can-accept-__user-pointers.patch rbtree-remove-unneeded-include.patch rbtree-remove-unneeded-include-fix.patch minix-bug-widening-a-binary-not-operation.patch documentation-codingstyle-allow-multiple-return-statements-per-function.patch mwave-fix-info-leak-in-mwave_ioctl.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