tegra: quadd: fix stack information disclose bug
Jianqiang Zhao [Fri, 15 Jul 2016 08:58:55 +0000 (16:58 +0800)]
fix stack information disclose bug

Bug 1797747

Change-Id: I7d2d33b9dbe3e81e8bb33aa9d7401dbb50525dce
Signed-off-by: Jianqiang Zhao <zhaojianqiang1@gmail.com>
Reviewed-on: http://git-master/r/1205757
GVS: Gerrit_Virtual_Submit
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

drivers/misc/tegra-profiler/comm.c

index b8bbb26..f99ee84 100644 (file)
@@ -494,6 +494,7 @@ device_ioctl(struct file *file,
                break;
 
        case IOCTL_GET_VERSION:
+               memset(&versions, 0, sizeof(versions));
                strcpy((char *)versions.branch, QUADD_MODULE_BRANCH);
                strcpy((char *)versions.version, QUADD_MODULE_VERSION);