From: n0ano@indstorage.com
To: Luis Miguel Correia Henriques <umiguel@alunos.deis.isec.pt>
Cc: linux-kernel@vger.kernel.org
Subject: Re: copy to user
Date: Tue, 20 Nov 2001 15:02:32 -0700 [thread overview]
Message-ID: <20011120150232.A890@tlaloc.indstorage.com> (raw)
In-Reply-To: <Pine.LNX.4.31.0111202040180.23000-100000@mail.deis.isec.pt>
In-Reply-To: <Pine.LNX.4.31.0111202040180.23000-100000@mail.deis.isec.pt>; from umiguel@alunos.deis.isec.pt on Tue, Nov 20, 2001 at 08:54:42PM +0000
Ignoring the merits of what you are trying to do why don't you put your
new code on the target's stack? This avoids all of the problems associated
with changing the code section (which is doable but tricky, after all if
`gdb' can change the code section you certainly could).
On Tue, Nov 20, 2001 at 08:54:42PM +0000, Luis Miguel Correia Henriques wrote:
> The reason that I need it to spend CPU time is that I'm developing a fault
> injector. The purpose of a fault injection tool is, as you could imagine,
> to test some critical systems and it's capacity to recover from fails. The
> reason for changing the code of a process is that process must be delayed
> but without leaving the CPU - everything must look like nothing wrong is
> happening, except for other processes that are waiting for something from
> the delayed process...
>
> Maybe I should have explained this before... sorry.
>
> I suppose now you can understand why SIGSTOP won't work. Hope you can help
> me :)
>
> About using udelay... this soluction seemed fine to me at first but if I
> hang the CPU with udelay the scheduler will no be doing it's job (isn't
> it?). This would give me even more intrusiveness (another requirement: the
> less intrusiveness as possible).
>
> Isn't there any doubt that copy_to_user can handle my problem? When I use
> it to change CS, this function returns the correct number of bytes (and no
> error) but, when I try to read... the old data is still there. I suppose
> there is a page/segment protection against writing to CS, isn't it?
>
> Luis Henriques
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
n0ano@indstorage.com
Ph: 303/652-0870x117
next prev parent reply other threads:[~2001-11-20 22:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-20 20:54 copy to user Luis Miguel Correia Henriques
2001-11-20 21:28 ` John Alvord
2001-11-20 21:44 ` Andreas Dilger
2001-11-21 11:02 ` Luís Henriques
2001-11-20 22:02 ` n0ano [this message]
2001-11-20 22:05 ` Chris Wright
2001-11-21 8:43 ` Mathijs Mohlmann
2001-11-21 10:12 ` Jan Hudec
-- strict thread matches above, loose matches on Subject: below --
2001-11-25 21:58 Marco C. Mason
2010-12-23 0:59 copy_to_user Hemanth Kumar
2010-12-23 1:18 ` copy_to_user Dexter Haslem
2010-12-23 2:15 ` copy_to_user Hemanth Kumar
2010-12-23 4:35 ` copy_to_user Srinivas G.
2010-12-23 5:18 ` copy_to_user Hemanth Kumar
2010-12-23 5:37 ` copy_to_user mukti jain
2010-12-23 12:21 ` copy_to_user Hemanth Kumar
2010-12-24 6:07 ` copy_to_user Hemanth Kumar
2010-12-24 7:59 ` copy_to_user Nilesh Tayade
2010-12-24 9:00 ` copy_to_user Dave Hylands
2010-12-24 9:20 ` copy_to_user Nilesh Tayade
2010-12-24 10:00 ` copy_to_user Hemanth Kumar
2010-12-24 9:26 ` copy_to_user Hemanth Kumar
[not found] <589679.60204.qm@web94707.mail.in2.yahoo.com>
2010-12-24 18:31 ` copy_to_user Mulyadi Santosa
2010-12-26 1:33 ` copy_to_user Hemanth Kumar
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=20011120150232.A890@tlaloc.indstorage.com \
--to=n0ano@indstorage.com \
--cc=linux-kernel@vger.kernel.org \
--cc=umiguel@alunos.deis.isec.pt \
/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.