Re: [PATCH] kernel: automatically split user namespace extent

2021-04-02 Thread Giuseppe Scrivano
Hi Serge, "Serge E. Hallyn" writes: > On Wed, Dec 02, 2020 at 05:12:27PM +0100, Giuseppe Scrivano wrote: >> Hi Eric, >> >> ebied...@xmission.com (Eric W. Biederman) writes: >> >> > Nit: The tag should have been "userns:" rather than kernel. >> > >> > Giuseppe Scrivano writes: >> > >> >>

Re: [PATCH] kernel: automatically split user namespace extent

2021-04-02 Thread Serge E. Hallyn
On Wed, Dec 02, 2020 at 05:12:27PM +0100, Giuseppe Scrivano wrote: > Hi Eric, > > ebied...@xmission.com (Eric W. Biederman) writes: > > > Nit: The tag should have been "userns:" rather than kernel. > > > > Giuseppe Scrivano writes: > > > >> writing to the id map fails when an extent overlaps

Re: [PATCH] kernel: automatically split user namespace extent

2020-12-02 Thread Giuseppe Scrivano
Hi Eric, ebied...@xmission.com (Eric W. Biederman) writes: > Nit: The tag should have been "userns:" rather than kernel. > > Giuseppe Scrivano writes: > >> writing to the id map fails when an extent overlaps multiple mappings >> in the parent user namespace, e.g.: >> >> $ cat /proc/self/uid_map

Re: [PATCH] kernel: automatically split user namespace extent

2020-12-01 Thread Eric W. Biederman
Nit: The tag should have been "userns:" rather than kernel. Giuseppe Scrivano writes: > writing to the id map fails when an extent overlaps multiple mappings > in the parent user namespace, e.g.: > > $ cat /proc/self/uid_map > 0 1000 1 > 1 10

[PATCH] kernel: automatically split user namespace extent

2020-11-26 Thread Giuseppe Scrivano
writing to the id map fails when an extent overlaps multiple mappings in the parent user namespace, e.g.: $ cat /proc/self/uid_map 0 1000 1 1 10 65536 $ unshare -U sleep 100 & [1] 1029703 $ printf "0 0 100\n" | tee /proc/$!/uid_map 0 0 100 tee: