]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: dgrp: info leak in dgrp_dpa_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 21 Apr 2013 11:08:31 +0000 (14:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Apr 2013 17:25:46 +0000 (10:25 -0700)
commiteecb262922209d714cc24a1dc8e5bf9a9fdbfc65
treec7ff7180cb3401e7a705752be24e8476149cbc5a
parenta4b47eeac2fe1687a6af0d30509a39b23a466cf6
staging: dgrp: info leak in dgrp_dpa_ioctl()

If "nd->nd_vpd_len" is less than 512 then the last part of the
"vpd.vpd_data" has uninitialized stack information.  We need to clear it
before copying the buffer to user space.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_dpa_ops.c