From f56181775570e9a728c6abb534dff5961c1e1e67 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Mar 2013 15:07:45 +1100 Subject: [PATCH] argv_split-teach-it-to-handle-mutable-strings-fix Cc: Andi Kleen Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- lib/argv_split.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/argv_split.c b/lib/argv_split.c index fa7d30abd5d4..cac7ec49e149 100644 --- a/lib/argv_split.c +++ b/lib/argv_split.c @@ -51,6 +51,10 @@ EXPORT_SYMBOL(argv_free); * considered to be a single argument separator. The returned array * is always NULL-terminated. Returns NULL on memory allocation * failure. + * + * The source string at `str' may be undergoing concurrent alteration via + * userspace sysctl activity (at least). The argv_split() implementation + * attempts to handle this gracefully by taking a local copy to work on. */ char **argv_split(gfp_t gfp, const char *str, int *argcp) { -- 2.39.5