Linux Manual Pages development
 help / color / mirror / Atom feed
From: Christian Brauner <christian.brauner-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
To: "Michael Kerrisk (man-pages)"
	<mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Christian Brauner
	<christian.brauner-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	serge-A9i7LUbDfNHQT0dZR+AlfA@public.gmane.org,
	ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org
Subject: Re: [PATCH] user_namespaces.7: Record new 340 line idmap limit
Date: Sun, 19 Nov 2017 10:48:44 +0100	[thread overview]
Message-ID: <20171119094843.axqozve4trhbdvug@gmail.com> (raw)
In-Reply-To: <0b3acf79-dd24-5845-b4f4-6d2f9222a5a6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

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

On Sun, Nov 19, 2017 at 10:00:39AM +0100, Michael Kerrisk (man-pages) wrote:
> Hello Christian,
> 
> 
> On 11/19/2017 02:25 AM, Christian Brauner wrote:
> > This patch documents the following commit:
> > 
> > commit 6397fac4915ab3002dc15aae751455da1a852f25
> > Author: Christian Brauner <christian.brauner-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
> > Date:   Wed Oct 25 00:04:41 2017 +0200
> > 
> >     userns: bump idmap limits to 340
> > 
> > Since Linux 4.15 the number of idmap lines has been bumped to 340.
> > The patch also removes the "(arbitrary)" in "There is an (arbitrary) limit on
> > the number of lines in the file." since the 340 line limit is well-explained by
> > the current implementation. The struct recording the idmaps is 12 bytes and
> > quite some proc files only allow writes the size of a single page size which is
> > 4096kB. This leaves room for 340 idmappings (340 * 12 = 4080 bytes).
> > The struct layout itself has been chosen very carefully to allow for an
> > implementation that limits the time-complexity for the idmap codepaths to
> > O(log n). However, I think it's unnecessary to expose this much implementation
> > detail to users in the man page. So only mention this in the commit message.
> > Furthermore, the comment about the page size restriction is misleading. The
> > kernel sources show that >= page size is considered an error.
> 
> Thanks for the patch and the detailed commit message.
> I've applied the patch, but restored the historical details,
> since users need also to now about older kernel behavior.

Thanks Michael!
Christian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

      parent reply	other threads:[~2017-11-19  9:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-19  1:25 [PATCH] user_namespaces.7: Record new 340 line idmap limit Christian Brauner
     [not found] ` <20171119012505.1925-1-christian.brauner-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
2017-11-19  9:00   ` Michael Kerrisk (man-pages)
     [not found]     ` <0b3acf79-dd24-5845-b4f4-6d2f9222a5a6-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-11-19  9:48       ` Christian Brauner [this message]

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=20171119094843.axqozve4trhbdvug@gmail.com \
    --to=christian.brauner-z7wlfzj8ewms+fvcfc7uqw@public.gmane.org \
    --cc=christian.brauner-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=serge-A9i7LUbDfNHQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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