ID-inside-ns   ID-outside-ns   length
vagrant@ubuntu-bionic:~/shared/uns$ unshare --user
nobody@ubuntu-bionic:~/shared/uns$ id
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
nobody@ubuntu-bionic:~/shared/uns$ cat /proc/$$/uid_map
nobody@ubuntu-bionic:~/shared/uns$ cat /proc/$$/gid_map
nobody@ubuntu-bionic:~/shared/uns$ echo $$
3585
vagrant@ubuntu-bionic:~$ echo '0 1000 1' | sudo tee /proc/3585/uid_map
0 1000 1
vagrant@ubuntu-bionic:~$ echo '0 1000 1' | sudo tee /proc/3585/gid_map
0 1000 1
nobody@ubuntu-bionic:~/shared/uns$ id
uid=0(root) gid=0(root) groups=0(root),65534(nogroup)
nobody@ubuntu-bionic:~/shared/uns$ cat /proc/$$/uid_map
         0       1000          1
nobody@ubuntu-bionic:~/shared/uns$ cat /proc/$$/gid_map
         0       1000          1
vagrant@ubuntu-bionic:~$ unshare --user
nobody@ubuntu-bionic:~$ echo $$
6132
nobody@ubuntu-bionic:~$ id
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
root@ubuntu-bionic:/home/vagrant# echo 1|awk '{print "0 1000 1\n1002 1002 1"}' > /proc/6132/uid_map
root@ubuntu-bionic:/home/vagrant# echo 1|awk '{print "0 1000 1\n1002 1002 1"}' > /proc/6132/gid_map
nobody@ubuntu-bionic:~$ bash
root@ubuntu-bionic:~# id
uid=0(root) gid=0(root) groups=0(root),65534(nogroup)
root@ubuntu-bionic:~# su - user
user@ubuntu-bionic:~$ id
uid=1002(user) gid=1002(user) groups=1002(user)
[000] 10443.843267: funcgraph_entry:                   |        __vfs_write() {
[000] 10443.843267: funcgraph_entry:                   |          proc_uid_map_write() {
[000] 10443.843267: funcgraph_entry:                   |            map_write() {
[000] 10443.843267: funcgraph_entry:                   |              mutex_lock() {
[000] 10443.843267: funcgraph_entry:                   |                _cond_resched() {
[000] 10443.843268: funcgraph_entry:        0.038 us   |                  rcu_all_qs();
[000] 10443.843268: funcgraph_exit:         0.343 us   |                }
[000] 10443.843268: funcgraph_exit:         0.673 us   |              }
[000] 10443.843268: funcgraph_entry:                   |              file_ns_capable() {
[000] 10443.843269: funcgraph_entry:                   |                security_capable() {
[000] 10443.843269: funcgraph_entry:        0.085 us   |                  cap_capable();
[000] 10443.843269: funcgraph_entry:        0.085 us   |                  apparmor_capable();
[000] 10443.843270: funcgraph_exit:         1.169 us   |                }

ここまで読んでようやく extents の意味( uid_map, gid_map の範囲) が理解できる感じだったのかー。