LinuxQuestions.org
Help answer threads with 0 replies.
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 12-16-2010, 11:56 PM   #1
Deep Narayan Dubey
LQ Newbie
 
Registered: Dec 2010
Location: Allahabad, India
Posts: 11

Rep: Reputation: 8
Does vma linear address is strictly inside linear address pointed by task->mm


Hi,
I am making a kernel module for learning purpose. I have taken a running process's task structure and printed the contents of the task->mm->start_code, task->mm->end_code,
task->mm->start_data, task->mm->end_data etc which are as following -
Dec 17 05:11:22 localhost kernel: Start code = 8048000
Dec 17 05:11:22 localhost kernel: End code = 8048588
Dec 17 05:11:22 localhost kernel: Start data = 8049588
Dec 17 05:11:22 localhost kernel: End data = 8049688
Dec 17 05:11:22 localhost kernel: Start brk = 9147000
Dec 17 05:11:22 localhost kernel: Brk = 9168000
Dec 17 05:11:22 localhost kernel: Start stack = bf8ea1c0

I have iterated through the list of vma and printed the start address and end address and offset of the vma-
Dec 17 05:11:22 localhost kernel:
VMA: start = 93f000 ,end = 95f000 ,offset = 0
Dec 17 05:11:22 localhost kernel:
VMA: start = 960000 ,end = 961000 ,offset = 32
Dec 17 05:11:22 localhost kernel:
VMA: start = 961000 ,end = 962000 ,offset = 33
Dec 17 05:11:22 localhost kernel:
VMA: start = 964000 ,end = ad2000 ,offset = 0
Dec 17 05:11:22 localhost kernel:
VMA: start = ad2000 ,end = ad4000 ,offset = 366
Dec 17 05:11:22 localhost kernel:
VMA: start = ad4000 ,end = ad5000 ,offset = 368
Dec 17 05:11:22 localhost kernel:
VMA: start = ad5000 ,end = ad8000 ,offset = 2773
Dec 17 05:11:22 localhost kernel:
VMA: start = 9147000 ,end = 9168000 ,offset = 37191
Dec 17 05:11:22 localhost kernel:
VMA: start = b77a1000 ,end = b77a3000 ,offset = 751521
Dec 17 05:11:22 localhost kernel:
VMA: start = b77c2000 ,end = b77c3000 ,offset = 751554
Dec 17 05:11:22 localhost kernel:
VMA: start = bf456000 ,end = bf8eb000 ,offset = 785259


As obvious from the above that the vma addresses are not inside the linear addresses pointed by the task->mm except for the heap section.

My question is why the linear addresses of the vma is not inside any of the regions pointed by task->mm.
 
  


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
Examples about Logical,Linear and Physical address in Linux Memory Addressing muralis Linux - Kernel 5 08-04-2007 08:18 PM
linear raid does not appear on start up. nass Slackware 1 07-11-2007 09:12 AM
LXer: Linear Optimization with the GNU Linear Programming Kit LXer Syndicated Linux News 0 08-12-2006 04:21 AM
Linear Regression Hjalte Linux - Software 1 11-18-2004 09:33 AM
Linear mode glock19 Linux - General 4 08-31-2001 07:24 PM

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

All times are GMT -5. The time now is 10:03 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