patch-2.4.5 linux/include/asm-arm/uaccess.h
Next file: linux/include/asm-cris/axisflashmap.h
Previous file: linux/include/asm-arm/pci.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed May 16 15:25:16 2001
-  Orig file: 
v2.4.4/linux/include/asm-arm/uaccess.h
-  Orig date: 
Tue Mar  6 19:44:35 2001
diff -u --recursive --new-file v2.4.4/linux/include/asm-arm/uaccess.h linux/include/asm-arm/uaccess.h
@@ -75,6 +75,8 @@
 {
 	if (access_ok(VERIFY_READ, from, n))
 		__do_copy_from_user(to, from, n);
+	else /* security hole - plug it */
+		memzero(to, n);
 	return n;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)