writing to process image from deferred work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.

I have a problem and would appreciate some help. The scenario is:

A process executes a trap instruction (0xCC). The debug exception
handler will be
invoked, and I want to be able to change the instruction following the
0xCC, ie, I
need to write to process address space (via access_process_vm ?)

The problem is: I cannot do it from within do_debug, since the
interrupts are disabled,
and access_process_vm compains about it.

So I thought about deferring this to tasklets or workqueues, that will
run with interrupts
enabled. I tried to look for help in Love's book, and it says:

1) "tasklets cannot sleep". Does it imply I cannot use access_process_vm?
2)  "work queues cannot access userspace, since they do not run behalf
of any process".
Does it also imply I cannot use access_process_vm?

I am a bit lost here.

TIA,
Fabiano

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux