From: Andrew Morton Date: Wed, 20 Mar 2013 04:07:45 +0000 (+1100) Subject: argv_split-teach-it-to-handle-mutable-strings-fix X-Git-Tag: next-20130320~2^2~279 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ce25c8a6af9ba184fba60b3914e397f8c871507;p=karo-tx-linux.git argv_split-teach-it-to-handle-mutable-strings-fix Cc: Andi Kleen Cc: Oleg Nesterov Signed-off-by: Andrew Morton --- 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) {