Whamcloud - gitweb
LU-9859 libcfs: double copy bug 74/35574/3
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 19 Jul 2019 18:48:12 +0000 (14:48 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 Sep 2019 05:09:59 +0000 (05:09 +0000)
commit2129145d96c85b05b300d450a788f2d7688dc23b
tree98bed375bc8d9048b3bc82bfa023ce3dba875c0c
parent2897cbb5d5f2047f558128f434fd724c88e56b84
LU-9859 libcfs: double copy bug

The problem is that we copy hdr.ioc_len, we verify it, then we copy it
again without checking to see if it has changed in between the two
copies.

This could result in an information leak.

Linux-commit: 76bdaa161cd93d9c033bf6fe2b0a5661c8204441

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: Ic9ae8c19d90a5547600f3775ed337394717b94e3
Reviewed-on: https://review.whamcloud.com/35574
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/linux/linux-module.c