Subject: Re: [vserver] Linux 3.13.1 Patch for Testing ...
From: Arkadiusz Miśkiewicz <arekm@maven.pl>
Date: Sat, 1 Feb 2014 19:00:12 +0100

 Sat, 1 Feb 2014 19:00:12 +0100
On Saturday 01 of February 2014, Herbert Poetzl wrote:

> Back to positive thinking and good news: a first patch [2]
> for 3.13.1 is now available for testing, please let me
> know if you encounter any issues or hit any specific
> problems with it.

Works here (3.13.1 vs2.3.6.10 patch):

Linux carme 3.13.1-0.1 #1 SMP Sat Feb 1 12:53:10 CET 2014 x86 64 
Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz PLD Linux

but the /proc problem when using pid namespace exists.

Reproducer:

[root@carme ~]# unshare -p --mount-proc --fork bash
[root@carme ~]# ls -l /proc/ | head -n 5
ls: cannot access /proc/1: No such file or directory
ls: cannot access /proc/14: No such file or directory
ls: cannot access /proc/15: No such file or directory
total 0
??????????  ? ?    ?                  ?            ? 1
??????????  ? ?    ?                  ?            ? 14
??????????  ? ?    ?                  ?            ? 15
dr-xr-xr-x  2 root root               0 Feb  1 18:53 acpi

(so some entries are half-hidden, fileterd somewhere in vserver code for 
stat() and friends but not getdents() which fools some apps badly)

while on vanilla kernel this is working:

[root@t400 ~]# ls -l /proc/ | head -n 10
razem 0
dr-xr-xr-x  9 root root  0 02-01 18:58 1
dr-xr-xr-x  9 root root  0 02-01 18:58 18
dr-xr-xr-x  9 root root  0 02-01 18:58 19
dr-xr-xr-x  4 root root  0 02-01 18:58 acpi
dr-xr-xr-x  6 root root  0 02-01 18:58 asound
-r--r--r--  1 root root  0 02-01 18:58 buddyinfo
dr-xr-xr-x  4 root root  0 02-01 18:58 bus
-r--r--r--  1 root root  0 02-01 18:58 cgroups
-r--r--r--  1 root root  0 02-01 18:58 cmdline
[root@t400 ~]# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0 133740  2636 pts/7    S    18:58   0:00 bash
root        20  0.0  0.0 125972  1200 pts/7    R+   18:58   0:00 ps aux

-- 
Arkadiusz Miśkiewicz, arekm / maven.pl