The patch titled
Subject: [PATCH] sysctl: Check length at deprecated_sysctl_warning.
has been added to the -mm tree. Its filename is
sysctl-check-length-at-deprecated_sysctl_warning.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: Subject: [PATCH] sysctl: Check length at deprecated_sysctl_warning.
From: Tetsuo Handa <[EMAIL PROTECTED]>
Original patch assumed args->nlen < CTL_MAXNAME, but it can be false.
Signed-off-by: Tetsuo Handa <[EMAIL PROTECTED]>
Cc: "Eric W. Biederman" <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
kernel/sysctl.c | 4 ++++
1 file changed, 4 insertions(+)
diff -puN kernel/sysctl.c~sysctl-check-length-at-deprecated_sysctl_warning
kernel/sysctl.c
--- a/kernel/sysctl.c~sysctl-check-length-at-deprecated_sysctl_warning
+++ a/kernel/sysctl.c
@@ -2609,6 +2609,10 @@ static int deprecated_sysctl_warning(str
int name[CTL_MAXNAME];
int i;
+ /* Check args->nlen. */
+ if (args->nlen > CTL_MAXNAME)
+ return -EFAULT;
+
/* Read in the sysctl name for better debug message logging */
for (i = 0; i < args->nlen; i++)
if (get_user(name[i], args->name + i))
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
sysctl-check-length-at-deprecated_sysctl_warning.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html