From: vamsi krishna <vamsi.krishnak@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Whats in this vaddr segment 0xffffe000-0xfffff000 ---p ?
Date: Fri, 22 Jul 2005 11:55:23 +0530 [thread overview]
Message-ID: <3faf0568050721232547aa2482@mail.gmail.com> (raw)
Hello All,
Sorry to interrupt you.
I have been facing a wierd problem on same kernel version
(2.6.5-7.97.smp) but running on different machines 32-bit and 64-bit
(which can run 32-bit also).
I found that every process running in this kernel version has a
virtual address mapping in /proc/<pid>/maps file as follows
<-------------------------------------------------------------------------------------------------->
ffffe000-ffff000 ---p 00000000 00:00 0
<-------------------------------------------------------------------------------------------------->
You can find this vaddr mapping at end of maps file.
on a 64-bit(uname --all == 'Linux host 2.6.5-7.97.smp #1 <time stamp>
x86_64 x86_64 x86_64 GNU/Linux) machine which is running the same
kernel, I try to write the contents of the virtual address on to file
with
(r = write(fd,0xffffe000,4096) ). The write on this machine is
successful. But if I try to write the same segment on 32-bit machine
(uname --all == Linux host 2.6.5-7.97-smp #1 <timestamp> i686 i686
i386 GNU/Linux).
The write on this 32-bit machine fails with EFAULT(14), but if memcpy
to a buffer from this virtual address seems to work fine i.e if I do
'memcpy(buf1,0xffffe000,4096)' it write perfectly the contents of this
virtual address segment into the buf1.
I had a hard time googling about this I could'nt find any information
on why this happens. May be some mm hackers may share some of their
thoughts.
Really appreciate your inputs on this.
Sincerely,
Vamsi kundeti
PS: BTW I'am running suse distribution and will glibc will have any
effect on write behaviour ? (I though that since write is a syscall
the issue might be with the kernel the thus skipping the glibc
details)
next reply other threads:[~2005-07-22 6:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-22 6:25 vamsi krishna [this message]
2005-07-22 7:46 ` Whats in this vaddr segment 0xffffe000-0xfffff000 ---p ? Jan Engelhardt
2005-07-22 14:27 ` Bhanu Kalyan Chetlapalli
2005-07-22 15:18 ` vamsi krishna
2005-07-22 15:56 ` linux-os (Dick Johnson)
2005-07-22 17:56 ` vamsi krishna
2005-07-22 19:32 ` linux-os (Dick Johnson)
2005-07-22 21:07 ` vamsi krishna
2005-07-22 23:30 ` Jirka Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3faf0568050721232547aa2482@mail.gmail.com \
--to=vamsi.krishnak@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.