From: Oleg Kutkov <elenbert@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Problem with set_memory_rw
Date: Thu, 04 Feb 2010 07:26:25 +0200 [thread overview]
Message-ID: <4B6A5A81.2030207@gmail.com> (raw)
Hello, this is my first post in a mailing list, so excuse me if
something wrong...
I'm new in kernel and try to do some manipulation with memory pages.
For manipulating memory page attributes i used set_memory_rw(),
but function returning 0 and i can't continue writing to memory,
because page, that i want to change, is read only by default.
This is part of my code:
long unsigned addr;
addr = 0x0509940; //this is addres in memory, that i want
to overwrite (read only, for default)
set_memory_rw(addr, 1); //try to set rw permission on this addres for
one memory page.
So, function return zero, this is error, as i can understand. If i try
to write by this address - kernel write in log error messages, such as
"Unable to handle kernel request at address 0x0509940".
This is kernel bug or something wrong in my code?
Thank for any help.
Best regards,
Oleg.
next reply other threads:[~2010-02-04 5:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 5:26 Oleg Kutkov [this message]
2010-02-04 5:45 ` Problem with set_memory_rw KAMEZAWA Hiroyuki
[not found] ` <5e9821061002040006p258c2738y87a26c769c04bcfd@mail.gmail.com>
2010-02-04 8:09 ` Fwd: " Oleg Kutkov
2010-02-04 8:51 ` KAMEZAWA Hiroyuki
2010-02-04 9:12 ` Nick Piggin
-- strict thread matches above, loose matches on Subject: below --
2010-02-04 8:42 Oleg Kutkov
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=4B6A5A81.2030207@gmail.com \
--to=elenbert@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox