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

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)