Linux Container Development
 help / color / mirror / Atom feed
* [GIT PULL] user namespace updates for v4.15-rc1
@ 2017-11-16  3:34 Eric W. Biederman
  0 siblings, 0 replies; only message in thread
From: Eric W. Biederman @ 2017-11-16  3:34 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Linux Containers, Christian Brauner,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA


Linus,

Please pull the for-linus branch from the git tree:

   git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git for-linus

   HEAD: userns: Simplify insert_extent 3fda0e737e906ce73220b20c27e7f792d0aac6a8

The only change that is production reading this round is the work to
increase the number of uid and gid mappings a user namespace can support
from 5 to 340.  This code was carefully benchmarked and it was confirmed
that in the existing cases the performance remains the same.  In the
worst case with 340 mappings an cache cold stat times go from 158ns to
248ns.  That is noticable but still quite small, and only the people who
are doing crazy things pay the cost.

This work uncovered some documentation and cleanup opportunities in the
mapping code, and patches to make those cleanups and improve the
documentation will be coming in the next merge window.

Christian Brauner (2):
      userns: use union in {g,u}idmap struct
      userns: bump idmap limits to 340

Eric W. Biederman (5):
      userns: Don't special case a count of 0
      userns: Simplify the user and group mapping functions
      userns: Don't read extents twice in m_start
      userns: Make map_id_down a wrapper for map_id_range_down
      userns: Simplify insert_extent

 include/linux/user_namespace.h |  23 ++-
 kernel/user.c                  |  30 ++--
 kernel/user_namespace.c        | 349 ++++++++++++++++++++++++++++++++++-------
 3 files changed, 325 insertions(+), 77 deletions(-)

Eric

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-16  3:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-16  3:34 [GIT PULL] user namespace updates for v4.15-rc1 Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox