* RE: How to access kernel memory?
@ 2001-09-18 14:59 Siders, Keith
2001-09-18 18:41 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Siders, Keith @ 2001-09-18 14:59 UTC (permalink / raw)
To: 'Zhang Fuxin'; +Cc: linux-mips
I have just the opposite requirement. I need to allow any running process
and its threads to be "hot-patched" with executable code. I know you're
thinking "why?". I can't tell you that. I can only say it's a firm
requirement, and I could use some helpful ideas.
Keith
-> -----Original Message-----
-> From: Zhang Fuxin [mailto:fxzhang@ict.ac.cn]
-> Sent: Tuesday, September 18, 2001 9:53 AM
-> To: han han
-> Cc: linux-mips@oss.sgi.com
-> Subject: Re: How to access kernel memory?
->
->
-> hi,han han,
-> There are several ways.For example:
-> 1.You can create a character device , implement its mmap function
-> to map the memory block you allcated.This can be done in a little
-> kernel module.There are some sample code before.
-> 2.via /dev/mem,/dev/kmem etc
->
->
->
->
-> 在 2001-09-18 07:35:00 you wrote:
-> >Hi, All,
-> >
-> >I allocated a block of memory in the kernel space. But
-> >I don't know how to directly access kernel space from
-> >user space. Anyone can help me?
-> >
-> >Thanks in advance.
-> >
-> >piggie
-> >
-> >
-> >__________________________________________________
-> >Terrorist Attacks on U.S. - How can you help?
-> >Donate cash, emergency relief information
-> >http://dailynews.yahoo.com/fc/US/Emergency_Information/
->
-> Regards
-> Zhang Fuxin
-> fxzhang@ict.ac.cn
->
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to access kernel memory?
2001-09-18 14:59 How to access kernel memory? Siders, Keith
@ 2001-09-18 18:41 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2001-09-18 18:41 UTC (permalink / raw)
To: Siders, Keith; +Cc: 'Zhang Fuxin', linux-mips
On Tue, Sep 18, 2001 at 09:59:07AM -0500, Siders, Keith wrote:
> I have just the opposite requirement. I need to allow any running process
> and its threads to be "hot-patched" with executable code. I know you're
> thinking "why?". I can't tell you that. I can only say it's a firm
> requirement, and I could use some helpful ideas.
You can probably do all you need in this case with ptrace() - the
existing ptrace will not be quite adequate for large data sets,
especially if you need some atomicity, but it should have all the
sample kernel code you need.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to access kernel memory?
@ 2001-09-18 15:15 han han
0 siblings, 0 replies; 5+ messages in thread
From: han han @ 2001-09-18 15:15 UTC (permalink / raw)
To: Zhang Fuxin; +Cc: linux-mips
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1320 bytes --]
> There are several ways.For example:
> 1.You can create a character device , implement
> its mmap function
> to map the memory block you allcated.This can be
> done in a little
> kernel module.There are some sample code before.
> 2.via /dev/mem,/dev/kmem etc
If allocating a block memory in the user space. I can
use functions like "map_user_kiobuf()" to lock it in
the physical memory and access it in the kernel space.
Does there exist corresponding methods to give my
application ability to directly access it without
using any kinds of mem/character devices?
>
>
>
>
> ÔÚ 2001-09-18 07:35:00 you wrote£º
> >Hi, All,
> >
> >I allocated a block of memory in the kernel space.
> But
> >I don't know how to directly access kernel space
> from
> >user space. Anyone can help me?
> >
> >Thanks in advance.
> >
> >piggie
> >
> >
> >__________________________________________________
> >Terrorist Attacks on U.S. - How can you help?
> >Donate cash, emergency relief information
>
>http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
> Regards
> Zhang Fuxin
> fxzhang@ict.ac.cn
>
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to access kernel memory?
@ 2001-09-18 14:52 Zhang Fuxin
0 siblings, 0 replies; 5+ messages in thread
From: Zhang Fuxin @ 2001-09-18 14:52 UTC (permalink / raw)
To: han han; +Cc: linux-mips@oss.sgi.com
hi,han han,
There are several ways.For example:
1.You can create a character device , implement its mmap function
to map the memory block you allcated.This can be done in a little
kernel module.There are some sample code before.
2.via /dev/mem,/dev/kmem etc
在 2001-09-18 07:35:00 you wrote:
>Hi, All,
>
>I allocated a block of memory in the kernel space. But
>I don't know how to directly access kernel space from
>user space. Anyone can help me?
>
>Thanks in advance.
>
>piggie
>
>
>__________________________________________________
>Terrorist Attacks on U.S. - How can you help?
>Donate cash, emergency relief information
>http://dailynews.yahoo.com/fc/US/Emergency_Information/
Regards
Zhang Fuxin
fxzhang@ict.ac.cn
^ permalink raw reply [flat|nested] 5+ messages in thread* How to access kernel memory?
@ 2001-09-18 14:35 han han
0 siblings, 0 replies; 5+ messages in thread
From: han han @ 2001-09-18 14:35 UTC (permalink / raw)
To: linux-mips
Hi, All,
I allocated a block of memory in the kernel space. But
I don't know how to directly access kernel space from
user space. Anyone can help me?
Thanks in advance.
piggie
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-09-18 18:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-18 14:59 How to access kernel memory? Siders, Keith
2001-09-18 18:41 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2001-09-18 15:15 han han
2001-09-18 14:52 Zhang Fuxin
2001-09-18 14:35 han han
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox