LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-11-2006, 07:14 AM   #1
eskuai
LQ Newbie
 
Registered: Dec 2005
Distribution: fedora 14
Posts: 18

Rep: Reputation: 0
problem with /proc/self/mem ... can i read it?


Hello,
I am trying to learn about vdso and about what is sysenter ...
I am using :
Linux 2.6.17-1.2157_FC5 i686 athlon i386 GNU/Linux
Ok, If i do

># cat /proc/self/maps
00800000-00801000 r-xp 00800000 00:00 0 [vdso]
00801000-0081a000 r-xp 00000000 22:05 2387467 /lib/ld-2.4.so
... // no interesting
b7fa2000-b7fa4000 rw-p b7fa2000 00:00 0
bfc36000-bfc4b000 rw-p bfc36000 00:00 0 [stack]

It shows my [vdso] block . Ok ...Is it the right address?.. then

># ldd /bin/ls that is shows:
linux-gate.so.1 => (0x00800000)
librt.so.1 => /lib/librt.so.1 (0x00dea000)
libacl.so.1 => /lib/libacl.so.1 (0x00111000)

Ok, i wanna see insde linux-gate .. how many bytes?

># cat /proc/self/smaps
00800000-00801000 r-xp 00800000 00:00 0 [vdso]
Size: 4 kB
Rss: 4 kB
Shared_Clean: 4 kB

ok, then:

># dd if=/proc/self/mem of=/tmp/linux-gate.dso bs=4096 skip=8388608 count=1
dd: reading `/proc/self/mem': Input/output error
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.001729 seconds, 0.0 kB/s

what? i/o error? ... i am using <root> ... so strange ...
how about rights ? ... lets me see ...
-r--r--r-- 1 root root 0 Aug 7 11:58 mem

what am i doing wrong ?

thank you
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading /proc/<pid>/mem magnus.therning Programming 2 07-16-2006 08:29 AM
hidden directories under proc... what are they for? : (/proc/.23142) syssyphus Linux - General 1 04-10-2006 03:23 PM
read /proc/net/dev with sscanf? Thinking Linux - General 0 03-30-2005 09:14 AM
How to read from /proc entry in another kernel module? linux_lover2005 Programming 0 01-14-2005 05:44 AM
Nautilus will not read /proc directory RottenMutt Linux - General 1 07-10-2003 01:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration