linux-next: manual merge of the akpm-current tree with the net tree

2019-02-04 Thread Stephen Rothwell
Hi all,

Today's linux-next merge of the akpm-current tree got a conflict in:

  net/sctp/stream.c

between commit:

  cfe4bd7a257f ("sctp: check and update stream->out_curr when allocating 
stream_out")

from the net tree and commit:

  2bd3fbb3ff23 ("sctp: convert to genradix")

from the akpm-current tree.

I fixed it up (the latter removed the code modified by the former, so I
did that) and can carry the fix as necessary. This is now fixed as far as
linux-next is concerned, but any non trivial conflicts should be mentioned
to your upstream maintainer when your tree is submitted for merging.
You may also want to consider cooperating with the maintainer of the
conflicting tree to minimise any particularly complex conflicts.

-- 
Cheers,
Stephen Rothwell


pgpvoUQvkwLGl.pgp
Description: OpenPGP digital signature


linux-next: manual merge of the akpm-current tree with the net tree

2013-08-28 Thread Stephen Rothwell
Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in
kernel/fork.c between commit c2b1df2eb429 ("Rename nsproxy.pid_ns to
nsproxy.pid_ns_for_children") from the net tree and commits 74a7cb7237ad
("pidns: fix vfork() after unshare(CLONE_NEWPID)"), 98c53a09f937 ("pidns:
kill the unnecessary CLONE_NEWPID in copy_process()") and ddb3b016a3f7
("fork: unify and tighten up CLONE_NEWUSER/CLONE_NEWPID checks") from the
akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwells...@canb.auug.org.au

diff --cc kernel/fork.c
index df6e2a8,04a8c2a..000
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@@ -1173,13 -1171,15 +1171,16 @@@ static struct task_struct *copy_process
return ERR_PTR(-EINVAL);
  
/*
-* If the new process will be in a different pid namespace
-* don't allow the creation of threads.
+* If the new process will be in a different pid or user namespace
+* do not allow it to share a thread group or signal handlers or
+* parent with the forking task.
 */
-   if ((clone_flags & (CLONE_VM|CLONE_NEWPID)) &&
-   (task_active_pid_ns(current) !=
-current->nsproxy->pid_ns_for_children))
-   return ERR_PTR(-EINVAL);
+   if (clone_flags & (CLONE_SIGHAND | CLONE_PARENT)) {
+   if ((clone_flags & (CLONE_NEWUSER | CLONE_NEWPID)) ||
 -  (task_active_pid_ns(current) != current->nsproxy->pid_ns))
++  (task_active_pid_ns(current) !=
++   current->nsproxy->pid_ns_for_children))
+   return ERR_PTR(-EINVAL);
+   }
  
retval = security_task_create(clone_flags);
if (retval)


pgpNjwvC5JvsI.pgp
Description: PGP signature


linux-next: manual merge of the akpm-current tree with the net tree

2013-08-28 Thread Stephen Rothwell
Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in
kernel/fork.c between commit c2b1df2eb429 (Rename nsproxy.pid_ns to
nsproxy.pid_ns_for_children) from the net tree and commits 74a7cb7237ad
(pidns: fix vfork() after unshare(CLONE_NEWPID)), 98c53a09f937 (pidns:
kill the unnecessary CLONE_NEWPID in copy_process()) and ddb3b016a3f7
(fork: unify and tighten up CLONE_NEWUSER/CLONE_NEWPID checks) from the
akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwells...@canb.auug.org.au

diff --cc kernel/fork.c
index df6e2a8,04a8c2a..000
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@@ -1173,13 -1171,15 +1171,16 @@@ static struct task_struct *copy_process
return ERR_PTR(-EINVAL);
  
/*
-* If the new process will be in a different pid namespace
-* don't allow the creation of threads.
+* If the new process will be in a different pid or user namespace
+* do not allow it to share a thread group or signal handlers or
+* parent with the forking task.
 */
-   if ((clone_flags  (CLONE_VM|CLONE_NEWPID)) 
-   (task_active_pid_ns(current) !=
-current-nsproxy-pid_ns_for_children))
-   return ERR_PTR(-EINVAL);
+   if (clone_flags  (CLONE_SIGHAND | CLONE_PARENT)) {
+   if ((clone_flags  (CLONE_NEWUSER | CLONE_NEWPID)) ||
 -  (task_active_pid_ns(current) != current-nsproxy-pid_ns))
++  (task_active_pid_ns(current) !=
++   current-nsproxy-pid_ns_for_children))
+   return ERR_PTR(-EINVAL);
+   }
  
retval = security_task_create(clone_flags);
if (retval)


pgpNjwvC5JvsI.pgp
Description: PGP signature