public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: "Eric W. Biederman" <ebiederm@xmission•com>,
	Christian Brauner <christian@brauner•io>
Cc: Linux Next Mailing List <linux-next@vger•kernel.org>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Corey Minyard <cminyard@mvista•com>
Subject: linux-next: manual merge of the userns tree with the pidfd-fixes tree
Date: Tue, 10 Mar 2020 15:46:51 +1100	[thread overview]
Message-ID: <20200310154651.27cf84f4@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]

Hi all,

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

  kernel/pid.c

between commits:

  b26ebfe12f34 ("pid: Fix error return value in some cases")
  8deb24dcb89c ("pid: make ENOMEM return value more obvious")

from the pidfd-fixes tree and commit:

  69879c01a0c3 ("proc: Remove the now unnecessary internal mount of proc")

from the userns tree.

I fixed it up (see below) 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

diff --cc kernel/pid.c
index be43122eb876,60820e72634c..000000000000
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@@ -247,21 -244,6 +244,16 @@@ struct pid *alloc_pid(struct pid_namesp
  		tmp = tmp->parent;
  	}
  
 +	/*
 +	 * ENOMEM is not the most obvious choice especially for the case
 +	 * where the child subreaper has already exited and the pid
 +	 * namespace denies the creation of any new processes. But ENOMEM
 +	 * is what we have exposed to userspace for a long time and it is
 +	 * documented behavior for pid namespaces. So we can't easily
 +	 * change it even if there were an error code better suited.
 +	 */
 +	retval = -ENOMEM;
 +
- 	if (unlikely(is_child_reaper(pid))) {
- 		if (pid_ns_prepare_proc(ns))
- 			goto out_free;
- 	}
- 
  	get_pid_ns(ns);
  	refcount_set(&pid->count, 1);
  	for (type = 0; type < PIDTYPE_MAX; ++type)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

                 reply	other threads:[~2020-03-10  4:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200310154651.27cf84f4@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=christian@brauner$(echo .)io \
    --cc=cminyard@mvista$(echo .)com \
    --cc=ebiederm@xmission$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox