diff options
author | David S. Miller <davem@davemloft.net> | 2019-02-15 15:38:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-15 15:38:38 -0500 |
commit | 3313da8188cc346a205783c22c37e821b4b7016d (patch) | |
tree | 5697cd985220def9bc2e35dfbb832dad04c2d051 /fs/binfmt_script.c | |
parent | 50f444aa50a4f3fab35a04f56d6bb83dc1e8c875 (diff) | |
parent | 24f0a48743a256bdec1bcb80708bc309da4aa261 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The netfilter conflicts were rather simple overlapping
changes.
However, the cls_tcindex.c stuff was a bit more complex.
On the 'net' side, Cong is fixing several races and memory
leaks. Whilst on the 'net-next' side we have Vlad adding
the rtnl-ness support.
What I've decided to do, in order to resolve this, is revert the
conversion over to using a workqueue that Cong did, bringing us back
to pure RCU. I did it this way because I believe that either Cong's
races don't apply with have Vlad did things, or Cong will have to
implement the race fix slightly differently.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/binfmt_script.c')
-rw-r--r-- | fs/binfmt_script.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/binfmt_script.c b/fs/binfmt_script.c index d0078cbb718b..7cde3f46ad26 100644 --- a/fs/binfmt_script.c +++ b/fs/binfmt_script.c | |||
@@ -42,14 +42,10 @@ static int load_script(struct linux_binprm *bprm) | |||
42 | fput(bprm->file); | 42 | fput(bprm->file); |
43 | bprm->file = NULL; | 43 | bprm->file = NULL; |
44 | 44 | ||
45 | for (cp = bprm->buf+2;; cp++) { | 45 | bprm->buf[BINPRM_BUF_SIZE - 1] = '\0'; |
46 | if (cp >= bprm->buf + BINPRM_BUF_SIZE) | 46 | if ((cp = strchr(bprm->buf, '\n')) == NULL) |
47 | return -ENOEXEC; | 47 | cp = bprm->buf+BINPRM_BUF_SIZE-1; |
48 | if (!*cp || (*cp == '\n')) | ||
49 | break; | ||
50 | } | ||
51 | *cp = '\0'; | 48 | *cp = '\0'; |
52 | |||
53 | while (cp > bprm->buf) { | 49 | while (cp > bprm->buf) { |
54 | cp--; | 50 | cp--; |
55 | if ((*cp == ' ') || (*cp == '\t')) | 51 | if ((*cp == ' ') || (*cp == '\t')) |