From 2e5ed7fdfb23566cc3d85ce028b2f446c7bf057b Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 25 Apr 2014 00:49:13 +0300 Subject: [PATCH] staging: lustre: improve length checks in ioctls We copy "hdr->ioc_len" from the user twice but we only verify that it's within the limit on the first copy. Otherwise we could read unmapped memory and Oops. Signed-off-by: Dan Carpenter Reviewed-by: Peng Tao Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed