The patch titled autofs4: remove string terminator check has been added to the -mm tree. Its filename is autofs4-remove-string-terminator-check.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: autofs4: remove string terminator check From: Ian Kent <raven@xxxxxxxxxx> Remove unnecessary string terminator check. Signed-off-by: Ian Kent <raven@xxxxxxxxxx> Signed-off-by: Jeff Moyer <jmoyer@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/autofs4/dev-ioctl.c | 20 -------------------- 1 file changed, 20 deletions(-) diff -puN fs/autofs4/dev-ioctl.c~autofs4-remove-string-terminator-check fs/autofs4/dev-ioctl.c --- a/fs/autofs4/dev-ioctl.c~autofs4-remove-string-terminator-check +++ a/fs/autofs4/dev-ioctl.c @@ -51,18 +51,6 @@ static int check_name(const char *name) } /* - * Check a string doesn't overrun the chunk of - * memory we copied from user land. - */ -static int invalid_str(char *str, void *end) -{ - while ((void *) str <= end) - if (!*str++) - return 0; - return -EINVAL; -} - -/* * Check that the user compiled against correct version of autofs * misc device code. * @@ -143,14 +131,6 @@ static int validate_dev_ioctl(int cmd, s cmd); goto out; } - - err = invalid_str(param->path, - (void *) ((size_t) param + param->size)); - if (err) { - AUTOFS_WARN("invalid path supplied for cmd(0x%08x)", - cmd); - goto out; - } } err = 0; _ Patches currently in -mm which might be from raven@xxxxxxxxxx are linux-next.patch autofs4-correct-offset-mount-expire-check.patch autofs4-remove-string-terminator-check.patch autofs4-collect-version-check-return.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html