linux-next: manual merge of the userns tree with Linus' tree

From: Stephen Rothwell
Date: Wed May 26 2021 - 00:32:26 EST


Hi all,

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

include/linux/sched/user.h

between commit:

5b8fea65d197 ("fanotify: configurable limits via sysfs")

from Linus' tree and commits:

21d1c5e386bc ("Reimplement RLIMIT_NPROC on top of ucounts")
d64696905554 ("Reimplement RLIMIT_SIGPENDING on top of ucounts")

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 include/linux/sched/user.h
index 3632c5d6ec55,82bd2532da6b..000000000000
--- a/include/linux/sched/user.h
+++ b/include/linux/sched/user.h
@@@ -12,8 -12,9 +12,6 @@@
*/
struct user_struct {
refcount_t __count; /* reference count */
- atomic_t processes; /* How many processes does this user have? */
- atomic_t sigpending; /* How many pending signals does this user have? */
-#ifdef CONFIG_FANOTIFY
- atomic_t fanotify_listeners;
-#endif
#ifdef CONFIG_EPOLL
atomic_long_t epoll_watches; /* The number of file descriptors currently watched */
#endif

Attachment: pgp6VzimeSGyh.pgp
Description: OpenPGP digital signature