staging: lustre: libcfs: double copy bug
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 30 Jan 2017 10:51:49 +0000 (13:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 12:01:38 +0000 (13:01 +0100)
commit76bdaa161cd93d9c033bf6fe2b0a5661c8204441
tree25ab145e0c3f01874a1bd47834694ae80032b32e
parentdcdf43a01e950c9475fb325972d8f034afa19464
staging: lustre: 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.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/libcfs/linux/linux-module.c