You can subscribe to this list here.
| 1999 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(15) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2000 |
Jan
(6) |
Feb
(1) |
Mar
(39) |
Apr
(13) |
May
(24) |
Jun
(11) |
Jul
(23) |
Aug
(85) |
Sep
(12) |
Oct
(103) |
Nov
(79) |
Dec
(112) |
| 2001 |
Jan
(52) |
Feb
(82) |
Mar
(84) |
Apr
(65) |
May
(105) |
Jun
(188) |
Jul
(174) |
Aug
(182) |
Sep
(103) |
Oct
(137) |
Nov
(143) |
Dec
(98) |
| 2002 |
Jan
(258) |
Feb
(236) |
Mar
(386) |
Apr
(307) |
May
(238) |
Jun
(170) |
Jul
(252) |
Aug
(230) |
Sep
(278) |
Oct
(394) |
Nov
(336) |
Dec
(194) |
| 2003 |
Jan
(290) |
Feb
(182) |
Mar
(175) |
Apr
(220) |
May
(209) |
Jun
(286) |
Jul
(279) |
Aug
(164) |
Sep
(208) |
Oct
(324) |
Nov
(204) |
Dec
(380) |
| 2004 |
Jan
(344) |
Feb
(332) |
Mar
(395) |
Apr
(357) |
May
(349) |
Jun
(352) |
Jul
(279) |
Aug
(269) |
Sep
(374) |
Oct
(442) |
Nov
(428) |
Dec
(253) |
| 2005 |
Jan
(225) |
Feb
(219) |
Mar
(245) |
Apr
(249) |
May
(203) |
Jun
(157) |
Jul
(171) |
Aug
(194) |
Sep
(200) |
Oct
(232) |
Nov
(190) |
Dec
(195) |
| 2006 |
Jan
(158) |
Feb
(190) |
Mar
(235) |
Apr
(161) |
May
(134) |
Jun
(169) |
Jul
(117) |
Aug
(161) |
Sep
(170) |
Oct
(297) |
Nov
(230) |
Dec
(205) |
| 2007 |
Jan
(197) |
Feb
(132) |
Mar
(151) |
Apr
(97) |
May
(109) |
Jun
(99) |
Jul
(57) |
Aug
(110) |
Sep
(56) |
Oct
(119) |
Nov
(39) |
Dec
(45) |
| 2008 |
Jan
(101) |
Feb
(116) |
Mar
(141) |
Apr
(98) |
May
(133) |
Jun
(61) |
Jul
(43) |
Aug
(76) |
Sep
(20) |
Oct
(32) |
Nov
(22) |
Dec
(41) |
| 2009 |
Jan
(35) |
Feb
(15) |
Mar
(18) |
Apr
(13) |
May
(13) |
Jun
(26) |
Jul
(12) |
Aug
(32) |
Sep
(21) |
Oct
(41) |
Nov
(35) |
Dec
(12) |
| 2010 |
Jan
(3) |
Feb
(35) |
Mar
(28) |
Apr
(20) |
May
(5) |
Jun
(14) |
Jul
(6) |
Aug
(8) |
Sep
(20) |
Oct
(20) |
Nov
(10) |
Dec
(12) |
| 2011 |
Jan
(14) |
Feb
(10) |
Mar
(14) |
Apr
(14) |
May
(13) |
Jun
(43) |
Jul
(13) |
Aug
(50) |
Sep
(30) |
Oct
(23) |
Nov
(15) |
Dec
(49) |
| 2012 |
Jan
(15) |
Feb
(28) |
Mar
(7) |
Apr
|
May
(12) |
Jun
(13) |
Jul
(28) |
Aug
(11) |
Sep
(19) |
Oct
(27) |
Nov
(5) |
Dec
(25) |
| 2013 |
Jan
(18) |
Feb
(19) |
Mar
(56) |
Apr
(26) |
May
(38) |
Jun
(24) |
Jul
(42) |
Aug
(24) |
Sep
(4) |
Oct
(3) |
Nov
(18) |
Dec
(4) |
| 2014 |
Jan
(10) |
Feb
(9) |
Mar
(3) |
Apr
|
May
(12) |
Jun
(34) |
Jul
(8) |
Aug
(18) |
Sep
(3) |
Oct
(27) |
Nov
(2) |
Dec
(1) |
| 2015 |
Jan
|
Feb
(10) |
Mar
(49) |
Apr
(2) |
May
(4) |
Jun
(7) |
Jul
(1) |
Aug
(17) |
Sep
(7) |
Oct
(35) |
Nov
(40) |
Dec
(4) |
| 2016 |
Jan
(9) |
Feb
|
Mar
(6) |
Apr
|
May
(10) |
Jun
(2) |
Jul
|
Aug
|
Sep
(5) |
Oct
|
Nov
|
Dec
(1) |
| 2017 |
Jan
(2) |
Feb
(4) |
Mar
(1) |
Apr
(4) |
May
(31) |
Jun
(9) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(2) |
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Richard W. <ri...@no...> - 2014-06-02 20:46:35
|
Am 02.06.2014 22:42, schrieb Nalli, Sanketh: > Nope, but here is some bootlog Hmm, I have no idea so far. Applications running under valgrind or other debuggers suffered from the issue that /proc/pid/exe is empty. > The host does not have skas3 patch > Do you think that is the problem ? Nope. SKAS0 works fine. > Which host shd I use that already has this patch > (I mean I cud patch the host myself but if there is one > Already present, that is good !) > > Core dump limits : > soft - 0 > hard - NONE > Checking that ptrace can change system call numbers...OK > Checking syscall emulation patch for ptrace...OK > Checking advanced syscall emulation patch for ptrace...OK > Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm > Checking PROT_EXEC mmap in /tmp/...OK > Checking for new_mm and switch_mm support in the host: > /proc/self/mm ... Failed - > No such file or directory > Checking for the skas3 patch in the host: > - /proc/mm...not found: No such file or directory > - PTRACE_FAULTINFO...not found > - PTRACE_LDT...not found > UML running in SKAS0 mode > Adding 20606976 bytes to physical memory to account for exec-shield gap > Linux version 2.6.24-g91525300-dirty (jd...@am...) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 Mon Jan 28 12:03:41 EST 2008 Wow. This UML is horrible old. Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 20:43:40
|
Nope, but here is some bootlog
The host does not have skas3 patch
Do you think that is the problem ?
Which host shd I use that already has this patch
(I mean I cud patch the host myself but if there is one
Already present, that is good !)
Core dump limits :
soft - 0
hard - NONE
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking for tmpfs mount on /dev/shm...nothing mounted on /dev/shm
Checking PROT_EXEC mmap in /tmp/...OK
Checking for new_mm and switch_mm support in the host:
/proc/self/mm ... Failed -
No such file or directory
Checking for the skas3 patch in the host:
- /proc/mm...not found: No such file or directory
- PTRACE_FAULTINFO...not found
- PTRACE_LDT...not found
UML running in SKAS0 mode
Adding 20606976 bytes to physical memory to account for exec-shield gap
Linux version 2.6.24-g91525300-dirty (jd...@am...) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 Mon Jan 28 12:03:41 EST 2008
-----Original Message-----
From: Richard Weinberger [mailto:ri...@no...]
Sent: Monday, June 02, 2014 1:41 PM
To: Nalli, Sanketh
Cc: use...@li...
Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes
Are you running UML under a debugger?
Thanks,
//richard
Am 02.06.2014 22:16, schrieb Nalli, Sanketh:
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan
> nalli@haris-crashnburn:/proc/4755$ ls -la
> ls: cannot read symbolic link exe: No such file or directory total 0
> dr-xr-xr-x 9 nalli nalli 0 Jun 2 13:07 .
> dr-xr-xr-x 346 root root 0 May 23 10:18 ..
> dr-xr-xr-x 2 nalli nalli 0 Jun 2 13:07 attr
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 autogroup
> -r-------- 1 nalli nalli 0 Jun 2 13:07 auxv
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cgroup
> --w------- 1 nalli nalli 0 Jun 2 13:07 clear_refs
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cmdline
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 comm
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 coredump_filter
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cpuset
> lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 cwd -> /home/nalli/cache_cow/linux-3.5
> -r-------- 1 nalli nalli 0 Jun 2 13:07 environ
> lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 exe
> dr-x------ 2 nalli nalli 0 Jun 2 13:07 fd
> dr-x------ 2 nalli nalli 0 Jun 2 13:07 fdinfo
> -r-------- 1 nalli nalli 0 Jun 2 13:07 io
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 latency
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 limits
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 loginuid
> dr-x------ 2 nalli nalli 0 Jun 2 13:07 map_files
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 maps
> -rw------- 1 nalli nalli 0 Jun 2 13:07 mem
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 mountinfo
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 mounts
> -r-------- 1 nalli nalli 0 Jun 2 13:07 mountstats
> dr-xr-xr-x 5 nalli nalli 0 Jun 2 13:07 net
> dr-x--x--x 2 nalli nalli 0 Jun 2 13:07 ns
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 numa_maps
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_adj
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_score
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_score_adj
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 pagemap
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 personality
> lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 root -> /
> -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 sched
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 schedstat
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 sessionid
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 smaps
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 stack
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 stat
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 statm
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 status
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 syscall
> dr-xr-xr-x 3 nalli nalli 0 Jun 2 13:07 task
> -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan
> nalli@haris-crashnburn:/proc/4755$ killall linux
> nalli@haris-crashnburn:/proc/4755$
>
> -----Original Message-----
> From: Richard Weinberger [mailto:ri...@no...]
> Sent: Monday, June 02, 2014 1:15 PM
> To: Nalli, Sanketh
> Cc: use...@li...
> Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes
>
> Am 02.06.2014 22:11, schrieb Nalli, Sanketh:
>> Nothing..just lists all the contents including the hidden Ones in a
>> long listing fashion.
>
> Please show it verbatim.
>
> Thanks,
> //richard
>
>> -----Original Message-----
>> From: Richard Weinberger [mailto:ri...@no...]
>> Sent: Monday, June 02, 2014 12:20 PM
>> To: Nalli, Sanketh
>> Cc: use...@li...
>> Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes
>>
>>
>>
>> Am 02.06.2014 21:16, schrieb Nalli, Sanketh:
>>> nalli@haris-crashnburn:~$ cd /proc/6188
>>> nalli@haris-crashnburn:/proc/6188$ ls -l exe
>>
>> What does "ls -la /proc/6188" show?
>>
>> Thanks,
>> //richard
>>
|
|
From: Richard W. <ri...@no...> - 2014-06-02 20:40:54
|
Are you running UML under a debugger? Thanks, //richard Am 02.06.2014 22:16, schrieb Nalli, Sanketh: > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan > nalli@haris-crashnburn:/proc/4755$ ls -la > ls: cannot read symbolic link exe: No such file or directory > total 0 > dr-xr-xr-x 9 nalli nalli 0 Jun 2 13:07 . > dr-xr-xr-x 346 root root 0 May 23 10:18 .. > dr-xr-xr-x 2 nalli nalli 0 Jun 2 13:07 attr > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 autogroup > -r-------- 1 nalli nalli 0 Jun 2 13:07 auxv > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cgroup > --w------- 1 nalli nalli 0 Jun 2 13:07 clear_refs > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cmdline > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 comm > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 coredump_filter > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cpuset > lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 cwd -> /home/nalli/cache_cow/linux-3.5 > -r-------- 1 nalli nalli 0 Jun 2 13:07 environ > lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 exe > dr-x------ 2 nalli nalli 0 Jun 2 13:07 fd > dr-x------ 2 nalli nalli 0 Jun 2 13:07 fdinfo > -r-------- 1 nalli nalli 0 Jun 2 13:07 io > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 latency > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 limits > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 loginuid > dr-x------ 2 nalli nalli 0 Jun 2 13:07 map_files > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 maps > -rw------- 1 nalli nalli 0 Jun 2 13:07 mem > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 mountinfo > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 mounts > -r-------- 1 nalli nalli 0 Jun 2 13:07 mountstats > dr-xr-xr-x 5 nalli nalli 0 Jun 2 13:07 net > dr-x--x--x 2 nalli nalli 0 Jun 2 13:07 ns > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 numa_maps > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_adj > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_score > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_score_adj > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 pagemap > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 personality > lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 root -> / > -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 sched > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 schedstat > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 sessionid > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 smaps > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 stack > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 stat > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 statm > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 status > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 syscall > dr-xr-xr-x 3 nalli nalli 0 Jun 2 13:07 task > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan > nalli@haris-crashnburn:/proc/4755$ killall linux > nalli@haris-crashnburn:/proc/4755$ > > -----Original Message----- > From: Richard Weinberger [mailto:ri...@no...] > Sent: Monday, June 02, 2014 1:15 PM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > Am 02.06.2014 22:11, schrieb Nalli, Sanketh: >> Nothing..just lists all the contents including the hidden Ones in a >> long listing fashion. > > Please show it verbatim. > > Thanks, > //richard > >> -----Original Message----- >> From: Richard Weinberger [mailto:ri...@no...] >> Sent: Monday, June 02, 2014 12:20 PM >> To: Nalli, Sanketh >> Cc: use...@li... >> Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes >> >> >> >> Am 02.06.2014 21:16, schrieb Nalli, Sanketh: >>> nalli@haris-crashnburn:~$ cd /proc/6188 >>> nalli@haris-crashnburn:/proc/6188$ ls -l exe >> >> What does "ls -la /proc/6188" show? >> >> Thanks, >> //richard >> |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 20:17:00
|
-r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan nalli@haris-crashnburn:/proc/4755$ ls -la ls: cannot read symbolic link exe: No such file or directory total 0 dr-xr-xr-x 9 nalli nalli 0 Jun 2 13:07 . dr-xr-xr-x 346 root root 0 May 23 10:18 .. dr-xr-xr-x 2 nalli nalli 0 Jun 2 13:07 attr -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 autogroup -r-------- 1 nalli nalli 0 Jun 2 13:07 auxv -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cgroup --w------- 1 nalli nalli 0 Jun 2 13:07 clear_refs -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cmdline -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 comm -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 coredump_filter -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 cpuset lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 cwd -> /home/nalli/cache_cow/linux-3.5 -r-------- 1 nalli nalli 0 Jun 2 13:07 environ lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 exe dr-x------ 2 nalli nalli 0 Jun 2 13:07 fd dr-x------ 2 nalli nalli 0 Jun 2 13:07 fdinfo -r-------- 1 nalli nalli 0 Jun 2 13:07 io -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 latency -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 limits -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 loginuid dr-x------ 2 nalli nalli 0 Jun 2 13:07 map_files -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 maps -rw------- 1 nalli nalli 0 Jun 2 13:07 mem -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 mountinfo -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 mounts -r-------- 1 nalli nalli 0 Jun 2 13:07 mountstats dr-xr-xr-x 5 nalli nalli 0 Jun 2 13:07 net dr-x--x--x 2 nalli nalli 0 Jun 2 13:07 ns -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 numa_maps -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_adj -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_score -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 oom_score_adj -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 pagemap -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 personality lrwxrwxrwx 1 nalli nalli 0 Jun 2 13:07 root -> / -rw-r--r-- 1 nalli nalli 0 Jun 2 13:07 sched -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 schedstat -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 sessionid -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 smaps -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 stack -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 stat -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 statm -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 status -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 syscall dr-xr-xr-x 3 nalli nalli 0 Jun 2 13:07 task -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan nalli@haris-crashnburn:/proc/4755$ killall linux nalli@haris-crashnburn:/proc/4755$ -----Original Message----- From: Richard Weinberger [mailto:ri...@no...] Sent: Monday, June 02, 2014 1:15 PM To: Nalli, Sanketh Cc: use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 22:11, schrieb Nalli, Sanketh: > Nothing..just lists all the contents including the hidden Ones in a > long listing fashion. Please show it verbatim. Thanks, //richard > -----Original Message----- > From: Richard Weinberger [mailto:ri...@no...] > Sent: Monday, June 02, 2014 12:20 PM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > Am 02.06.2014 21:16, schrieb Nalli, Sanketh: >> nalli@haris-crashnburn:~$ cd /proc/6188 >> nalli@haris-crashnburn:/proc/6188$ ls -l exe > > What does "ls -la /proc/6188" show? > > Thanks, > //richard > |
|
From: Richard W. <ri...@no...> - 2014-06-02 20:14:45
|
Am 02.06.2014 22:11, schrieb Nalli, Sanketh: > Nothing..just lists all the contents including the hidden > Ones in a long listing fashion. Please show it verbatim. Thanks, //richard > -----Original Message----- > From: Richard Weinberger [mailto:ri...@no...] > Sent: Monday, June 02, 2014 12:20 PM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > Am 02.06.2014 21:16, schrieb Nalli, Sanketh: >> nalli@haris-crashnburn:~$ cd /proc/6188 >> nalli@haris-crashnburn:/proc/6188$ ls -l exe > > What does "ls -la /proc/6188" show? > > Thanks, > //richard > |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 20:12:52
|
Nothing..just lists all the contents including the hidden Ones in a long listing fashion. -----Original Message----- From: Richard Weinberger [mailto:ri...@no...] Sent: Monday, June 02, 2014 12:20 PM To: Nalli, Sanketh Cc: use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 21:16, schrieb Nalli, Sanketh: > nalli@haris-crashnburn:~$ cd /proc/6188 > nalli@haris-crashnburn:/proc/6188$ ls -l exe What does "ls -la /proc/6188" show? Thanks, //richard |
|
From: Richard W. <ri...@no...> - 2014-06-02 19:20:15
|
Am 02.06.2014 21:16, schrieb Nalli, Sanketh: > nalli@haris-crashnburn:~$ cd /proc/6188 > nalli@haris-crashnburn:/proc/6188$ ls -l exe What does "ls -la /proc/6188" show? Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 19:17:25
|
nalli@haris-crashnburn:~$ cd /proc/6188 nalli@haris-crashnburn:/proc/6188$ ls -l exe ls: cannot read symbolic link exe: No such file or directory lrwxrwxrwx 1 nalli nalli 0 May 30 07:45 exe nalli@haris-crashnburn:/proc/6188$ killall linux -----Original Message----- From: Nalli, Sanketh Sent: Monday, June 02, 2014 12:12 PM To: Richard Weinberger Cc: use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Also, This is how I compile and run : make defconfig ARCH=um make menuconfig ARCH=um ( set the CONFIG_X86_64 = y) make -j 24 ARCH=um ./linux rootfstype=hostfs rw mem=1G init=/bin/bash -----Original Message----- From: Richard Weinberger [mailto:ri...@no...] Sent: Monday, June 02, 2014 12:06 PM To: Nalli, Sanketh Cc: enjoy mindful; use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. When you run a program in side UML it shows up on HOST as "linux" > in the ps -e listing > > 2. the "exe" symlink of that "linux" process in the /proc of the HOST > Is EMPTY !!! Not here: rw@sandpuppy:~> for i in `pidof linux` ; do ls -l /proc/$i/exe ; done lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31270/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31269/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31266/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31250/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31248/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31245/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31244/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31243/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31237/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30784/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30783/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30759/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30686/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30685/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30684/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30683/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30676/exe -> /home/rw/linux/linux What host kernel are you using? Thanks, //richard ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 19:12:36
|
Also, This is how I compile and run : make defconfig ARCH=um make menuconfig ARCH=um ( set the CONFIG_X86_64 = y) make -j 24 ARCH=um ./linux rootfstype=hostfs rw mem=1G init=/bin/bash -----Original Message----- From: Richard Weinberger [mailto:ri...@no...] Sent: Monday, June 02, 2014 12:06 PM To: Nalli, Sanketh Cc: enjoy mindful; use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. When you run a program in side UML it shows up on HOST as "linux" > in the ps -e listing > > 2. the "exe" symlink of that "linux" process in the /proc of the HOST > Is EMPTY !!! Not here: rw@sandpuppy:~> for i in `pidof linux` ; do ls -l /proc/$i/exe ; done lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31270/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31269/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31266/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31250/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31248/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31245/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31244/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31243/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31237/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30784/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30783/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30759/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30686/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30685/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30684/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30683/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30676/exe -> /home/rw/linux/linux What host kernel are you using? Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 19:10:42
|
The host kernel is linux 3.5 And for guest I've tried Linux 3.9, 3.4 and 3.5. The distro is RHEL6 and Ubuntu 12.04 -----Original Message----- From: Richard Weinberger [mailto:ri...@no...] Sent: Monday, June 02, 2014 12:06 PM To: Nalli, Sanketh Cc: enjoy mindful; use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. When you run a program in side UML it shows up on HOST as "linux" > in the ps -e listing > > 2. the "exe" symlink of that "linux" process in the /proc of the HOST > Is EMPTY !!! Not here: rw@sandpuppy:~> for i in `pidof linux` ; do ls -l /proc/$i/exe ; done lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31270/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31269/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31266/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31250/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31248/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31245/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31244/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31243/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31237/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30784/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30783/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30759/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30686/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30685/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30684/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30683/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30676/exe -> /home/rw/linux/linux What host kernel are you using? Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 19:08:24
|
-----Original Message----- From: Nalli, Sanketh Sent: Monday, June 02, 2014 11:54 AM To: Richard Weinberger Cc: use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes And that symlink is crucial to the workload I am trying to run !!!!! -----Original Message----- From: Nalli, Sanketh Sent: Monday, June 02, 2014 11:53 AM To: 'Richard Weinberger' Cc: enjoy mindful; use...@li... Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes >>And why does the /proc/PID/exe NOT point to anything in >> >> The host ? (PID is the pid of a dummy program running in UML) >Host PID != Guest PID Yes I know that. That’s not what I meant. What I am trying to say is this : 1. When you run a program in side UML it shows up on HOST as "linux" in the ps -e listing 2. the "exe" symlink of that "linux" process in the /proc of the HOST Is EMPTY !!! -----Original Message----- From: Richard Weinberger [mailto:ric...@gm...] Sent: Monday, June 02, 2014 11:41 AM To: Nalli, Sanketh Cc: enjoy mindful; use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh <san...@hp...> wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > > > From: enjoy mindful [mailto:enj...@gm...] > Sent: Friday, May 30, 2014 12:06 AM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > let me answer your second question. > > I did this analysis with kernel linux-3.12.6: > > 1) make ARCH=um cscope > 2) search functions which called 'clone' > File Function Line > 0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp, > CLONE_FILES | > CLONE_VM, NULL); > 1 helper.c start_io_thread 74 pid = clone(helper_child, (void *) sp, > CLONE_VM, &data); > 2 helper.c start_io_thread 124 pid = clone(proc, (void *) sp, flags, > arg); > 3 process.c start_userspace 300 pid = clone(userspace_tramp, (void > *) sp, flags, (void *) > stub_stack); > 4 lguest.c create_thread 1048 vq->thread = clone(do_thread, stack + > 32768, CLONE_VM | > SIGCHLD, vq); > > 3) insert some printk statement in those function > 4) build and run, then watch the booting process output > [root@localhost ~]# dmesg | grep 6436 > [ 0.190000] run_helper_thread : clone success, pid = 6436 > [root@localhost ~]# dmesg | grep 6437 > [ 0.190000] start_io_thread - clone success : pid = 6437 > [root@localhost ~]# dmesg | grep 6438 > [ 0.190000] run_helper_thread : clone success, pid = 6438 > > [real@real runuml]$ ps -ef | grep patch > real 6423 1553 6 16:17 pts/0 00:00:02 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6436 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6437 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6438 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6439 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6459 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6479 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6492 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6565 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6567 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6572 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6573 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6576 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6605 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6619 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6621 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6707 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6715 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6765 6423 0 16:18 pts/0 00:00:00 [linux_patched] > > [root@localhost ~]# dmesg | grep proc > [ 0.090000] run_helper_thread : clone success, pid = 8387, proc=0806471d > [ 0.100000] run_helper_thread : clone success, pid = 8389, proc=080663a3 > > [real@real linux-3.12.6]$ grep 0806471d System.map 0806471d t > aio_thread [real@real linux-3.12.6]$ grep 080663a3 System.map > 080663a3 t write_sigio_thread > > so, the four processes are: > 1) uml kernel main thread > 2) aio_thread > 3) io_thread > 4) write_sigio_thread > > > > On Fri, May 30, 2014 at 9:22 AM, Nalli, Sanketh <san...@hp...> > wrote: > > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/8 00:00:00 linux > > 6180 pts/8 00:00:00 linux > > 6181 pts/8 00:00:00 linux > > 6182 pts/8 00:00:00 linux > > 6183 pts/8 00:00:00 linux > > 6188 pts/8 00:00:13 linux > > > > > > The last item in the list with PID is 6188 is my program. > > I can tell because my_prog increments a counter in an infinite loop > > And consumes CPU cycles. It shows up on “top” as the dominant process. > > > > My question: > > 1. /proc/6188/exe is invalid. Why ?? > > I mean, it doesn’t point to anything. > > Shouldn’t it point to my_prog or something ? > > > > 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is > /bin/bash whos “exe” symlink is also doesn’t point to anything !!) > > 3. When a UML process, say my_prog (PID 6188) makes a system call, > where is the system call executed – is it within the addr space of > 6173 (the UML kernel process) or 6188 (my_prog running in UML ??) > > > > -Sanketh > > > > > > > ---------------------------------------------------------------------- > -------- Time is money. Stop wasting it! Get your web API in 5 > minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > ---------------------------------------------------------------------- > -------- Learn Graph Databases - Download FREE O'Reilly Book "Graph > Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, this > first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > -- Thanks, //richard ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ User-mode-linux-user mailing list Use...@li... https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user |
|
From: Richard W. <ri...@no...> - 2014-06-02 19:06:22
|
Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. When you run a program in side UML it shows up on HOST > as "linux" in the ps -e listing > > 2. the "exe" symlink of that "linux" process in the /proc of the HOST > Is EMPTY !!! Not here: rw@sandpuppy:~> for i in `pidof linux` ; do ls -l /proc/$i/exe ; done lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31270/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31269/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31266/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31250/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31248/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31245/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31244/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31243/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/31237/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30784/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30783/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30759/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30686/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30685/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30684/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30683/exe -> /home/rw/linux/linux lrwxrwxrwx 1 rw users 0 2. Jun 21:05 /proc/30676/exe -> /home/rw/linux/linux What host kernel are you using? Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 18:54:48
|
And that symlink is crucial to the workload I am trying to run !!!!! -----Original Message----- From: Nalli, Sanketh Sent: Monday, June 02, 2014 11:53 AM To: 'Richard Weinberger' Cc: enjoy mindful; use...@li... Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes >>And why does the /proc/PID/exe NOT point to anything in >> >> The host ? (PID is the pid of a dummy program running in UML) >Host PID != Guest PID Yes I know that. That’s not what I meant. What I am trying to say is this : 1. When you run a program in side UML it shows up on HOST as "linux" in the ps -e listing 2. the "exe" symlink of that "linux" process in the /proc of the HOST Is EMPTY !!! -----Original Message----- From: Richard Weinberger [mailto:ric...@gm...] Sent: Monday, June 02, 2014 11:41 AM To: Nalli, Sanketh Cc: enjoy mindful; use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh <san...@hp...> wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > > > From: enjoy mindful [mailto:enj...@gm...] > Sent: Friday, May 30, 2014 12:06 AM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > let me answer your second question. > > I did this analysis with kernel linux-3.12.6: > > 1) make ARCH=um cscope > 2) search functions which called 'clone' > File Function Line > 0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp, > CLONE_FILES | > CLONE_VM, NULL); > 1 helper.c start_io_thread 74 pid = clone(helper_child, (void *) sp, > CLONE_VM, &data); > 2 helper.c start_io_thread 124 pid = clone(proc, (void *) sp, flags, > arg); > 3 process.c start_userspace 300 pid = clone(userspace_tramp, (void > *) sp, flags, (void *) > stub_stack); > 4 lguest.c create_thread 1048 vq->thread = clone(do_thread, stack + > 32768, CLONE_VM | > SIGCHLD, vq); > > 3) insert some printk statement in those function > 4) build and run, then watch the booting process output > [root@localhost ~]# dmesg | grep 6436 > [ 0.190000] run_helper_thread : clone success, pid = 6436 > [root@localhost ~]# dmesg | grep 6437 > [ 0.190000] start_io_thread - clone success : pid = 6437 > [root@localhost ~]# dmesg | grep 6438 > [ 0.190000] run_helper_thread : clone success, pid = 6438 > > [real@real runuml]$ ps -ef | grep patch > real 6423 1553 6 16:17 pts/0 00:00:02 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6436 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6437 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6438 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6439 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6459 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6479 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6492 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6565 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6567 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6572 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6573 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6576 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6605 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6619 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6621 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6707 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6715 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6765 6423 0 16:18 pts/0 00:00:00 [linux_patched] > > [root@localhost ~]# dmesg | grep proc > [ 0.090000] run_helper_thread : clone success, pid = 8387, proc=0806471d > [ 0.100000] run_helper_thread : clone success, pid = 8389, proc=080663a3 > > [real@real linux-3.12.6]$ grep 0806471d System.map 0806471d t > aio_thread [real@real linux-3.12.6]$ grep 080663a3 System.map > 080663a3 t write_sigio_thread > > so, the four processes are: > 1) uml kernel main thread > 2) aio_thread > 3) io_thread > 4) write_sigio_thread > > > > On Fri, May 30, 2014 at 9:22 AM, Nalli, Sanketh <san...@hp...> > wrote: > > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/8 00:00:00 linux > > 6180 pts/8 00:00:00 linux > > 6181 pts/8 00:00:00 linux > > 6182 pts/8 00:00:00 linux > > 6183 pts/8 00:00:00 linux > > 6188 pts/8 00:00:13 linux > > > > > > The last item in the list with PID is 6188 is my program. > > I can tell because my_prog increments a counter in an infinite loop > > And consumes CPU cycles. It shows up on “top” as the dominant process. > > > > My question: > > 1. /proc/6188/exe is invalid. Why ?? > > I mean, it doesn’t point to anything. > > Shouldn’t it point to my_prog or something ? > > > > 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is > /bin/bash whos “exe” symlink is also doesn’t point to anything !!) > > 3. When a UML process, say my_prog (PID 6188) makes a system call, > where is the system call executed – is it within the addr space of > 6173 (the UML kernel process) or 6188 (my_prog running in UML ??) > > > > -Sanketh > > > > > > > ---------------------------------------------------------------------- > -------- Time is money. Stop wasting it! Get your web API in 5 > minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > ---------------------------------------------------------------------- > -------- Learn Graph Databases - Download FREE O'Reilly Book "Graph > Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, this > first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > -- Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 18:54:08
|
>>And why does the /proc/PID/exe NOT point to anything in >> >> The host ? (PID is the pid of a dummy program running in UML) >Host PID != Guest PID Yes I know that. That’s not what I meant. What I am trying to say is this : 1. When you run a program in side UML it shows up on HOST as "linux" in the ps -e listing 2. the "exe" symlink of that "linux" process in the /proc of the HOST Is EMPTY !!! -----Original Message----- From: Richard Weinberger [mailto:ric...@gm...] Sent: Monday, June 02, 2014 11:41 AM To: Nalli, Sanketh Cc: enjoy mindful; use...@li... Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh <san...@hp...> wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > > > From: enjoy mindful [mailto:enj...@gm...] > Sent: Friday, May 30, 2014 12:06 AM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > let me answer your second question. > > I did this analysis with kernel linux-3.12.6: > > 1) make ARCH=um cscope > 2) search functions which called 'clone' > File Function Line > 0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp, > CLONE_FILES | > CLONE_VM, NULL); > 1 helper.c start_io_thread 74 pid = clone(helper_child, (void *) sp, > CLONE_VM, &data); > 2 helper.c start_io_thread 124 pid = clone(proc, (void *) sp, flags, > arg); > 3 process.c start_userspace 300 pid = clone(userspace_tramp, (void > *) sp, flags, (void *) > stub_stack); > 4 lguest.c create_thread 1048 vq->thread = clone(do_thread, stack + > 32768, CLONE_VM | > SIGCHLD, vq); > > 3) insert some printk statement in those function > 4) build and run, then watch the booting process output > [root@localhost ~]# dmesg | grep 6436 > [ 0.190000] run_helper_thread : clone success, pid = 6436 > [root@localhost ~]# dmesg | grep 6437 > [ 0.190000] start_io_thread - clone success : pid = 6437 > [root@localhost ~]# dmesg | grep 6438 > [ 0.190000] run_helper_thread : clone success, pid = 6438 > > [real@real runuml]$ ps -ef | grep patch > real 6423 1553 6 16:17 pts/0 00:00:02 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6436 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6437 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6438 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6439 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6459 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6479 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6492 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6565 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6567 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6572 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6573 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6576 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6605 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6619 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6621 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6707 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6715 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6765 6423 0 16:18 pts/0 00:00:00 [linux_patched] > > [root@localhost ~]# dmesg | grep proc > [ 0.090000] run_helper_thread : clone success, pid = 8387, proc=0806471d > [ 0.100000] run_helper_thread : clone success, pid = 8389, proc=080663a3 > > [real@real linux-3.12.6]$ grep 0806471d System.map 0806471d t > aio_thread [real@real linux-3.12.6]$ grep 080663a3 System.map > 080663a3 t write_sigio_thread > > so, the four processes are: > 1) uml kernel main thread > 2) aio_thread > 3) io_thread > 4) write_sigio_thread > > > > On Fri, May 30, 2014 at 9:22 AM, Nalli, Sanketh <san...@hp...> > wrote: > > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/8 00:00:00 linux > > 6180 pts/8 00:00:00 linux > > 6181 pts/8 00:00:00 linux > > 6182 pts/8 00:00:00 linux > > 6183 pts/8 00:00:00 linux > > 6188 pts/8 00:00:13 linux > > > > > > The last item in the list with PID is 6188 is my program. > > I can tell because my_prog increments a counter in an infinite loop > > And consumes CPU cycles. It shows up on “top” as the dominant process. > > > > My question: > > 1. /proc/6188/exe is invalid. Why ?? > > I mean, it doesn’t point to anything. > > Shouldn’t it point to my_prog or something ? > > > > 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is > /bin/bash whos “exe” symlink is also doesn’t point to anything !!) > > 3. When a UML process, say my_prog (PID 6188) makes a system call, > where is the system call executed – is it within the addr space of > 6173 (the UML kernel process) or 6188 (my_prog running in UML ??) > > > > -Sanketh > > > > > > > ---------------------------------------------------------------------- > -------- Time is money. Stop wasting it! Get your web API in 5 > minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > ---------------------------------------------------------------------- > -------- Learn Graph Databases - Download FREE O'Reilly Book "Graph > Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, this > first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > -- Thanks, //richard |
|
From: Richard W. <ric...@gm...> - 2014-06-02 18:40:43
|
On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh <san...@hp...> wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > And why does the /proc/PID/exe NOT point to anything in > > The host ? (PID is the pid of a dummy program running in UML) Host PID != Guest PID > > > From: enjoy mindful [mailto:enj...@gm...] > Sent: Friday, May 30, 2014 12:06 AM > To: Nalli, Sanketh > Cc: use...@li... > Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes > > > > let me answer your second question. > > I did this analysis with kernel linux-3.12.6: > > 1) make ARCH=um cscope > 2) search functions which called 'clone' > File Function Line > 0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp, > CLONE_FILES | > CLONE_VM, NULL); > 1 helper.c start_io_thread 74 pid = clone(helper_child, (void *) sp, > CLONE_VM, &data); > 2 helper.c start_io_thread 124 pid = clone(proc, (void *) sp, flags, > arg); > 3 process.c start_userspace 300 pid = clone(userspace_tramp, (void *) sp, > flags, (void *) > stub_stack); > 4 lguest.c create_thread 1048 vq->thread = clone(do_thread, stack + > 32768, CLONE_VM | > SIGCHLD, vq); > > 3) insert some printk statement in those function > 4) build and run, then watch the booting process output > [root@localhost ~]# dmesg | grep 6436 > [ 0.190000] run_helper_thread : clone success, pid = 6436 > [root@localhost ~]# dmesg | grep 6437 > [ 0.190000] start_io_thread - clone success : pid = 6437 > [root@localhost ~]# dmesg | grep 6438 > [ 0.190000] run_helper_thread : clone success, pid = 6438 > > [real@real runuml]$ ps -ef | grep patch > real 6423 1553 6 16:17 pts/0 00:00:02 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6436 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6437 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6438 6423 0 16:17 pts/0 00:00:00 ./linux_patched > ubda=./Fedora20-x86-root_fs mem=256m > real 6439 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6459 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6479 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6492 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6565 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6567 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6572 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6573 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6576 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6605 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6619 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6621 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6707 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6715 6423 0 16:17 pts/0 00:00:00 [linux_patched] > real 6765 6423 0 16:18 pts/0 00:00:00 [linux_patched] > > [root@localhost ~]# dmesg | grep proc > [ 0.090000] run_helper_thread : clone success, pid = 8387, proc=0806471d > [ 0.100000] run_helper_thread : clone success, pid = 8389, proc=080663a3 > > [real@real linux-3.12.6]$ grep 0806471d System.map > 0806471d t aio_thread > [real@real linux-3.12.6]$ grep 080663a3 System.map > 080663a3 t write_sigio_thread > > so, the four processes are: > 1) uml kernel main thread > 2) aio_thread > 3) io_thread > 4) write_sigio_thread > > > > On Fri, May 30, 2014 at 9:22 AM, Nalli, Sanketh <san...@hp...> > wrote: > > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/8 00:00:00 linux > > 6180 pts/8 00:00:00 linux > > 6181 pts/8 00:00:00 linux > > 6182 pts/8 00:00:00 linux > > 6183 pts/8 00:00:00 linux > > 6188 pts/8 00:00:13 linux > > > > > > The last item in the list with PID is 6188 is my program. > > I can tell because my_prog increments a counter in an infinite loop > > And consumes CPU cycles. It shows up on “top” as the dominant process. > > > > My question: > > 1. /proc/6188/exe is invalid. Why ?? > > I mean, it doesn’t point to anything. > > Shouldn’t it point to my_prog or something ? > > > > 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is > /bin/bash whos “exe” symlink is also doesn’t point to anything !!) > > 3. When a UML process, say my_prog (PID 6188) makes a system call, > where is the system call executed – is it within the addr space of 6173 (the > UML kernel process) or 6188 (my_prog running in UML ??) > > > > -Sanketh > > > > > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > -- Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-06-02 17:56:27
|
Thanks a lot.
Do you know why my /proc is empty in the guest
And why does the /proc/PID/exe NOT point to anything in
The host ? (PID is the pid of a dummy program running in UML)
From: enjoy mindful [mailto:enj...@gm...]
Sent: Friday, May 30, 2014 12:06 AM
To: Nalli, Sanketh
Cc: use...@li...
Subject: Re: [uml-user] invalid /proc/PID/exe in UML processes
let me answer your second question.
I did this analysis with kernel linux-3.12.6:
1) make ARCH=um cscope
2) search functions which called 'clone'
File Function Line
0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp, CLONE_FILES |
CLONE_VM, NULL);
1 helper.c start_io_thread 74 pid = clone(helper_child, (void *) sp, CLONE_VM, &data);
2 helper.c start_io_thread 124 pid = clone(proc, (void *) sp, flags, arg);
3 process.c start_userspace 300 pid = clone(userspace_tramp, (void *) sp, flags, (void *)
stub_stack);
4 lguest.c create_thread 1048 vq->thread = clone(do_thread, stack + 32768, CLONE_VM |
SIGCHLD, vq);
3) insert some printk statement in those function
4) build and run, then watch the booting process output
[root@localhost ~]# dmesg | grep 6436
[ 0.190000] run_helper_thread : clone success, pid = 6436
[root@localhost ~]# dmesg | grep 6437
[ 0.190000] start_io_thread - clone success : pid = 6437
[root@localhost ~]# dmesg | grep 6438
[ 0.190000] run_helper_thread : clone success, pid = 6438
[real@real runuml]$ ps -ef | grep patch
real 6423 1553 6 16:17 pts/0 00:00:02 ./linux_patched ubda=./Fedora20-x86-root_fs mem=256m
real 6436 6423 0 16:17 pts/0 00:00:00 ./linux_patched ubda=./Fedora20-x86-root_fs mem=256m
real 6437 6423 0 16:17 pts/0 00:00:00 ./linux_patched ubda=./Fedora20-x86-root_fs mem=256m
real 6438 6423 0 16:17 pts/0 00:00:00 ./linux_patched ubda=./Fedora20-x86-root_fs mem=256m
real 6439 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6459 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6479 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6492 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6565 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6567 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6572 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6573 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6576 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6605 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6619 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6621 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6707 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6715 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6765 6423 0 16:18 pts/0 00:00:00 [linux_patched]
[root@localhost ~]# dmesg | grep proc
[ 0.090000] run_helper_thread : clone success, pid = 8387, proc=0806471d
[ 0.100000] run_helper_thread : clone success, pid = 8389, proc=080663a3
[real@real linux-3.12.6]$ grep 0806471d System.map
0806471d t aio_thread
[real@real linux-3.12.6]$ grep 080663a3 System.map
080663a3 t write_sigio_thread
so, the four processes are:
1) uml kernel main thread
2) aio_thread
3) io_thread
4) write_sigio_thread
On Fri, May 30, 2014 at 9:22 AM, Nalli, Sanketh <san...@hp...<mailto:san...@hp...>> wrote:
Hi,
So I start UML with the cmdline
./linux rootfstype=hostfs rw mem=1G init=/bin/bash
When the bash shell comes up, I run my prog : ./my_prog
6173 pts/8 00:00:00 linux
6180 pts/8 00:00:00 linux
6181 pts/8 00:00:00 linux
6182 pts/8 00:00:00 linux
6183 pts/8 00:00:00 linux
6188 pts/8 00:00:13 linux
The last item in the list with PID is 6188 is my program.
I can tell because my_prog increments a counter in an infinite loop
And consumes CPU cycles. It shows up on “top” as the dominant process.
My question:
1. /proc/6188/exe is invalid. Why ??
I mean, it doesn’t point to anything.
Shouldn’t it point to my_prog or something ?
2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is /bin/bash whos “exe” symlink is also doesn’t point to anything !!)
3. When a UML process, say my_prog (PID 6188) makes a system call, where is the system call executed – is it within the addr space of 6173 (the UML kernel process) or 6188 (my_prog running in UML ??)
-Sanketh
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download<http://www.restlet.com/download>
http://p.sf.net/sfu/restlet
_______________________________________________
User-mode-linux-user mailing list
Use...@li...<mailto:Use...@li...>
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
|
|
From: Richard W. <ri...@no...> - 2014-05-30 08:51:09
|
Am 30.05.2014 10:08, schrieb enjoy mindful: > Sorry. I know how to use addr2line. But it is not what I'm looking for. > > For example, with i386 kernel, it is easy to find c017e7a5 belong to > function get_user. > > x86]$ vi /hack/linux-3.12.6/Documentation/x86/exception-tables.txt > ............. > 217 or in human readable byte order: > 218 > 219 > c01aa7c4 c017c093 c0199fe0 c017c097 c017c099 ................ > 220 > c01aa7d4 c017c2f6 c0199fe9 c017e7a5 c0199ff5 ................ > 221 ^^^^^^^^^^^^^^^^^ > 222 this is the interesting part! > 223 > c01aa7e4 c0180a08 c019a001 c0180a0a c019a004 ................ > > my question is how to find 0xffdc6eb8 belong to which uml kernel function. Ah ok. I'd decode it from the source side. I.e. start in arch/x86/um/fault.c Thanks, //richard |
|
From: enjoy m. <enj...@gm...> - 2014-05-30 08:08:56
|
Sorry. I know how to use addr2line. But it is not what I'm looking for. For example, with i386 kernel, it is easy to find c017e7a5 belong to function get_user. x86]$ vi /hack/linux-3.12.6/Documentation/x86/exception-tables.txt ............. 217 or in human readable byte order: 218 219 > c01aa7c4 c017c093 c0199fe0 c017c097 c017c099 ................ 220 > c01aa7d4 c017c2f6 c0199fe9 c017e7a5 c0199ff5 ................ 221 ^^^^^^^^^^^^^^^^^ 222 this is the interesting part! 223 > c01aa7e4 c0180a08 c019a001 c0180a0a c019a004 ................ my question is how to find 0xffdc6eb8 belong to which uml kernel function. thanks On Fri, May 30, 2014 at 3:45 PM, Richard Weinberger <ric...@gm...> wrote: > On Fri, May 30, 2014 at 9:29 AM, enjoy mindful <enj...@gm...> wrote: >> Hi, all >> I build linux-3.12.6 uml with default configure. >> >> tar -jxf linux-3.12.6.tar.bz2 >> cd linux-3.12.6 >> make ARCH=um defconfig >> make ARCH=um linux >> >> I'm confused about the exception table of the uml kernel. >> >> >> $ objdump --full-contents --section=__ex_table linux >> >> linux: file format elf32-i386 >> >> Contents of section __ex_table: >> 82a5048 3e6fdcff bcbaf6ff 396fdcff b4baf6ff >o......9o...... >> 82a5058 336fdcff acbaf6ff 306fdcff bfbaf6ff 3o......0o...... >> 82a5068 2b6fdcff 9cbaf6ff 286fdcff afbaf6ff +o......(o...... >> 82a5078 236fdcff 8cbaf6ff 206fdcff 9fbaf6ff #o...... o...... >> 82a5088 1b6fdcff 7cbaf6ff 186fdcff 8fbaf6ff .o..|....o...... >> 82a5098 136fdcff 6cbaf6ff 106fdcff 7fbaf6ff .o..l....o...... >> 82a50a8 0b6fdcff 5cbaf6ff 086fdcff 6fbaf6ff .o..\....o..o... >> 82a50b8 036fdcff 4cbaf6ff 006fdcff 5fbaf6ff .o..L....o.._... >> 82a50c8 fb6edcff 3cbaf6ff f86edcff 4fbaf6ff .n..<....n..O... >> 82a50d8 f36edcff 2cbaf6ff f06edcff 3fbaf6ff .n..,....n..?... >> 82a50e8 eb6edcff 1cbaf6ff e86edcff 2fbaf6ff .n.......n../... >> 82a50f8 e36edcff 0cbaf6ff e06edcff 1fbaf6ff .n.......n...... >> 82a5108 db6edcff fcb9f6ff d86edcff 0fbaf6ff .n.......n...... >> 82a5118 d36edcff ecb9f6ff d06edcff ffb9f6ff .n.......n...... >> 82a5128 cb6edcff dcb9f6ff c86edcff efb9f6ff .n.......n...... >> 82a5138 c36edcff ccb9f6ff c06edcff dfb9f6ff .n.......n...... >> 82a5148 bb6edcff bcb9f6ff b86edcff cfb9f6ff .n.......n...... >> 82a5158 ce6edcff acb9f6ff cc6edcff bfb9f6ff .n.......n...... >> 82a5168 cf6edcff 9cb9f6ff c96edcff afb9f6ff .n.......n...... >> >> Let pick the first instruction location '3e6fdcff' (in human readable >> is 0xffdc6f3e). My question is how to find which function in UML >> kernel has an instruction in location 0xffdc6f3e? > > Not sure whether I understand your question correctly. > Isn't addr2line what you need? > >> >> In i386 platform, the kernel address greater than the __PAGE_OFFSET >> (0xC0000000). However, as skas0 sperate the uml kernel and user >> process address space, it dose work by search address greater than the >> __PAGE_OFFSET for UML. >> >> thanks >> >> ------------------------------------------------------------------------------ >> Time is money. Stop wasting it! Get your web API in 5 minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> User-mode-linux-user mailing list >> Use...@li... >> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user > > > > -- > Thanks, > //richard |
|
From: Richard W. <ric...@gm...> - 2014-05-30 07:45:34
|
On Fri, May 30, 2014 at 9:29 AM, enjoy mindful <enj...@gm...> wrote: > Hi, all > I build linux-3.12.6 uml with default configure. > > tar -jxf linux-3.12.6.tar.bz2 > cd linux-3.12.6 > make ARCH=um defconfig > make ARCH=um linux > > I'm confused about the exception table of the uml kernel. > > > $ objdump --full-contents --section=__ex_table linux > > linux: file format elf32-i386 > > Contents of section __ex_table: > 82a5048 3e6fdcff bcbaf6ff 396fdcff b4baf6ff >o......9o...... > 82a5058 336fdcff acbaf6ff 306fdcff bfbaf6ff 3o......0o...... > 82a5068 2b6fdcff 9cbaf6ff 286fdcff afbaf6ff +o......(o...... > 82a5078 236fdcff 8cbaf6ff 206fdcff 9fbaf6ff #o...... o...... > 82a5088 1b6fdcff 7cbaf6ff 186fdcff 8fbaf6ff .o..|....o...... > 82a5098 136fdcff 6cbaf6ff 106fdcff 7fbaf6ff .o..l....o...... > 82a50a8 0b6fdcff 5cbaf6ff 086fdcff 6fbaf6ff .o..\....o..o... > 82a50b8 036fdcff 4cbaf6ff 006fdcff 5fbaf6ff .o..L....o.._... > 82a50c8 fb6edcff 3cbaf6ff f86edcff 4fbaf6ff .n..<....n..O... > 82a50d8 f36edcff 2cbaf6ff f06edcff 3fbaf6ff .n..,....n..?... > 82a50e8 eb6edcff 1cbaf6ff e86edcff 2fbaf6ff .n.......n../... > 82a50f8 e36edcff 0cbaf6ff e06edcff 1fbaf6ff .n.......n...... > 82a5108 db6edcff fcb9f6ff d86edcff 0fbaf6ff .n.......n...... > 82a5118 d36edcff ecb9f6ff d06edcff ffb9f6ff .n.......n...... > 82a5128 cb6edcff dcb9f6ff c86edcff efb9f6ff .n.......n...... > 82a5138 c36edcff ccb9f6ff c06edcff dfb9f6ff .n.......n...... > 82a5148 bb6edcff bcb9f6ff b86edcff cfb9f6ff .n.......n...... > 82a5158 ce6edcff acb9f6ff cc6edcff bfb9f6ff .n.......n...... > 82a5168 cf6edcff 9cb9f6ff c96edcff afb9f6ff .n.......n...... > > Let pick the first instruction location '3e6fdcff' (in human readable > is 0xffdc6f3e). My question is how to find which function in UML > kernel has an instruction in location 0xffdc6f3e? Not sure whether I understand your question correctly. Isn't addr2line what you need? > > In i386 platform, the kernel address greater than the __PAGE_OFFSET > (0xC0000000). However, as skas0 sperate the uml kernel and user > process address space, it dose work by search address greater than the > __PAGE_OFFSET for UML. > > thanks > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > User-mode-linux-user mailing list > Use...@li... > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user -- Thanks, //richard |
|
From: Richard W. <ric...@gm...> - 2014-05-30 07:38:01
|
On Fri, May 30, 2014 at 3:22 AM, Nalli, Sanketh <san...@hp...> wrote: > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/8 00:00:00 linux > > 6180 pts/8 00:00:00 linux > > 6181 pts/8 00:00:00 linux > > 6182 pts/8 00:00:00 linux > > 6183 pts/8 00:00:00 linux > > 6188 pts/8 00:00:13 linux > > > > > > The last item in the list with PID is 6188 is my program. > > I can tell because my_prog increments a counter in an infinite loop > > And consumes CPU cycles. It shows up on “top” as the dominant process. > > > > My question: > > 1. /proc/6188/exe is invalid. Why ?? > > I mean, it doesn’t point to anything. This cannot be. On the host side it will point to the UML binary itself and on the guest side to the executed program image. > Shouldn’t it point to my_prog or something ? > > > > 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is > /bin/bash whos “exe” symlink is also doesn’t point to anything !!) See enj...@gm...'s answer. > 3. When a UML process, say my_prog (PID 6188) makes a system call, > where is the system call executed – is it within the addr space of 6173 (the > UML kernel process) or 6188 (my_prog running in UML ??) Within the kernel Process. See arch/um/kernel/skas/syscall.c -- Thanks, //richard |
|
From: enjoy m. <enj...@gm...> - 2014-05-30 07:29:45
|
Hi, all I build linux-3.12.6 uml with default configure. tar -jxf linux-3.12.6.tar.bz2 cd linux-3.12.6 make ARCH=um defconfig make ARCH=um linux I'm confused about the exception table of the uml kernel. $ objdump --full-contents --section=__ex_table linux linux: file format elf32-i386 Contents of section __ex_table: 82a5048 3e6fdcff bcbaf6ff 396fdcff b4baf6ff >o......9o...... 82a5058 336fdcff acbaf6ff 306fdcff bfbaf6ff 3o......0o...... 82a5068 2b6fdcff 9cbaf6ff 286fdcff afbaf6ff +o......(o...... 82a5078 236fdcff 8cbaf6ff 206fdcff 9fbaf6ff #o...... o...... 82a5088 1b6fdcff 7cbaf6ff 186fdcff 8fbaf6ff .o..|....o...... 82a5098 136fdcff 6cbaf6ff 106fdcff 7fbaf6ff .o..l....o...... 82a50a8 0b6fdcff 5cbaf6ff 086fdcff 6fbaf6ff .o..\....o..o... 82a50b8 036fdcff 4cbaf6ff 006fdcff 5fbaf6ff .o..L....o.._... 82a50c8 fb6edcff 3cbaf6ff f86edcff 4fbaf6ff .n..<....n..O... 82a50d8 f36edcff 2cbaf6ff f06edcff 3fbaf6ff .n..,....n..?... 82a50e8 eb6edcff 1cbaf6ff e86edcff 2fbaf6ff .n.......n../... 82a50f8 e36edcff 0cbaf6ff e06edcff 1fbaf6ff .n.......n...... 82a5108 db6edcff fcb9f6ff d86edcff 0fbaf6ff .n.......n...... 82a5118 d36edcff ecb9f6ff d06edcff ffb9f6ff .n.......n...... 82a5128 cb6edcff dcb9f6ff c86edcff efb9f6ff .n.......n...... 82a5138 c36edcff ccb9f6ff c06edcff dfb9f6ff .n.......n...... 82a5148 bb6edcff bcb9f6ff b86edcff cfb9f6ff .n.......n...... 82a5158 ce6edcff acb9f6ff cc6edcff bfb9f6ff .n.......n...... 82a5168 cf6edcff 9cb9f6ff c96edcff afb9f6ff .n.......n...... Let pick the first instruction location '3e6fdcff' (in human readable is 0xffdc6f3e). My question is how to find which function in UML kernel has an instruction in location 0xffdc6f3e? In i386 platform, the kernel address greater than the __PAGE_OFFSET (0xC0000000). However, as skas0 sperate the uml kernel and user process address space, it dose work by search address greater than the __PAGE_OFFSET for UML. thanks |
|
From: enjoy m. <enj...@gm...> - 2014-05-30 07:06:01
|
let me answer your second question.
I did this analysis with kernel linux-3.12.6:
1) make ARCH=um cscope
2) search functions which called 'clone'
File Function Line
0 ubd_user.c start_io_thread 43 pid = clone(io_thread, (void *) sp,
CLONE_FILES |
CLONE_VM, NULL);
1 helper.c start_io_thread 74 pid = clone(helper_child, (void *) sp,
CLONE_VM, &data);
2 helper.c start_io_thread 124 pid = clone(proc, (void *) sp, flags,
arg);
3 process.c start_userspace 300 pid = clone(userspace_tramp, (void *) sp,
flags, (void *)
stub_stack);
4 lguest.c create_thread 1048 vq->thread = clone(do_thread, stack +
32768, CLONE_VM |
SIGCHLD, vq);
3) insert some printk statement in those function
4) build and run, then watch the booting process output
[root@localhost ~]# dmesg | grep 6436
[ 0.190000] run_helper_thread : clone success, pid = 6436
[root@localhost ~]# dmesg | grep 6437
[ 0.190000] start_io_thread - clone success : pid = 6437
[root@localhost ~]# dmesg | grep 6438
[ 0.190000] run_helper_thread : clone success, pid = 6438
[real@real runuml]$ ps -ef | grep patch
real 6423 1553 6 16:17 pts/0 00:00:02 ./linux_patched
ubda=./Fedora20-x86-root_fs mem=256m
real 6436 6423 0 16:17 pts/0 00:00:00 ./linux_patched
ubda=./Fedora20-x86-root_fs mem=256m
real 6437 6423 0 16:17 pts/0 00:00:00 ./linux_patched
ubda=./Fedora20-x86-root_fs mem=256m
real 6438 6423 0 16:17 pts/0 00:00:00 ./linux_patched
ubda=./Fedora20-x86-root_fs mem=256m
real 6439 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6459 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6479 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6492 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6565 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6567 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6572 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6573 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6576 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6605 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6619 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6621 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6707 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6715 6423 0 16:17 pts/0 00:00:00 [linux_patched]
real 6765 6423 0 16:18 pts/0 00:00:00 [linux_patched]
[root@localhost ~]# dmesg | grep proc
[ 0.090000] run_helper_thread : clone success, pid = 8387, proc=0806471d
[ 0.100000] run_helper_thread : clone success, pid = 8389, proc=080663a3
[real@real linux-3.12.6]$ grep 0806471d System.map
0806471d t aio_thread
[real@real linux-3.12.6]$ grep 080663a3 System.map
080663a3 t write_sigio_thread
so, the four processes are:
1) uml kernel main thread
2) aio_thread
3) io_thread
4) write_sigio_thread
On Fri, May 30, 2014 at 9:22 AM, Nalli, Sanketh <san...@hp...>
wrote:
> Hi,
>
> So I start UML with the cmdline
>
> ./linux rootfstype=hostfs rw mem=1G init=/bin/bash
>
>
>
> When the bash shell comes up, I run my prog : ./my_prog
>
>
>
> 6173 pts/8 00:00:00 linux
>
> 6180 pts/8 00:00:00 linux
>
> 6181 pts/8 00:00:00 linux
>
> 6182 pts/8 00:00:00 linux
>
> 6183 pts/8 00:00:00 linux
>
> 6188 pts/8 00:00:13 linux
>
>
>
>
>
> The last item in the list with PID is 6188 is my program.
>
> I can tell because my_prog increments a counter in an infinite loop
>
> And consumes CPU cycles. It shows up on “top” as the dominant process.
>
>
>
> My question:
>
> 1. /proc/6188/exe is invalid. Why ??
>
> I mean, it doesn’t point to anything.
>
> Shouldn’t it point to my_prog or something ?
>
>
>
> 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is
> /bin/bash whos “exe” symlink is also doesn’t point to anything !!)
>
> 3. When a UML process, say my_prog (PID 6188) makes a system call,
> where is the system call executed – is it within the addr space of 6173
> (the UML kernel process) or 6188 (my_prog running in UML ??)
>
>
>
> -Sanketh
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> User-mode-linux-user mailing list
> Use...@li...
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>
>
|
|
From: Nalli, S. <san...@hp...> - 2014-05-30 01:24:20
|
Hi, So I start UML with the cmdline ./linux rootfstype=hostfs rw mem=1G init=/bin/bash When the bash shell comes up, I run my prog : ./my_prog 6173 pts/8 00:00:00 linux 6180 pts/8 00:00:00 linux 6181 pts/8 00:00:00 linux 6182 pts/8 00:00:00 linux 6183 pts/8 00:00:00 linux 6188 pts/8 00:00:13 linux The last item in the list with PID is 6188 is my program. I can tell because my_prog increments a counter in an infinite loop And consumes CPU cycles. It shows up on "top" as the dominant process. My question: 1. /proc/6188/exe is invalid. Why ?? I mean, it doesn't point to anything. Shouldn't it point to my_prog or something ? 2. What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is /bin/bash whos "exe" symlink is also doesn't point to anything !!) 3. When a UML process, say my_prog (PID 6188) makes a system call, where is the system call executed - is it within the addr space of 6173 (the UML kernel process) or 6188 (my_prog running in UML ??) -Sanketh |
|
From: Richard W. <ric...@gm...> - 2014-05-28 21:40:46
|
On Wed, May 28, 2014 at 10:39 PM, Nalli, Sanketh <san...@hp...> wrote: > Hey, > > Has anyone successfully tried running UML with PIN attached to it ? I have never used this tool. If you want to debug the UML kernel you need to teach your debugger that it has to ignore SIGSEGV. UML is using this signal for page faults. > https://software.intel.com/en-us/articles/pin-a-dynamic-binary-instrumentation-tool > > > > Also, can you explain the output of ps –e, after I run UML : > > 1256 pts/7 00:00:00 linux > > 1266 pts/7 00:00:00 linux > > 1267 pts/7 00:00:00 linux > > 1268 pts/7 00:00:00 linux > > 1269 pts/7 00:00:00 linux > > > > Why are there these many processes ? Every UML guest process has a twin on the host side. Actually it is a thread (not a pthread). > What is a good resource to understand UML better ? The source. :-) Feel free to ask if you have questions. -- Thanks, //richard |
|
From: Nalli, S. <san...@hp...> - 2014-05-28 20:41:19
|
Hey, Has anyone successfully tried running UML with PIN attached to it ? https://software.intel.com/en-us/articles/pin-a-dynamic-binary-instrumentation-tool Also, can you explain the output of ps -e, after I run UML : 1256 pts/7 00:00:00 linux 1266 pts/7 00:00:00 linux 1267 pts/7 00:00:00 linux 1268 pts/7 00:00:00 linux 1269 pts/7 00:00:00 linux Why are there these many processes ? What is a good resource to understand UML better ? |