All of lore.kernel.org
 help / color / mirror / Atom feed
* using mprotect to write to .text
@ 2011-10-10 20:02 Joe Buehler
  2011-10-11 16:36 ` David Daney
  0 siblings, 1 reply; 7+ messages in thread
From: Joe Buehler @ 2011-10-10 20:02 UTC (permalink / raw)
  To: linux-mips

I intend to use mprotect in a running binary to allow it to modify its .text
section.  The detailed behavior of mprotect for a multithreaded program on SMP
hardware is not documented as far as I can tell.

Can I depend on the LINUX mprotect call to take care of icache flushing,
handling of hazards, etc.?  I am using Octeon CN5650 on 2.6.21.7 and 2.6.27.7 if
it matters.

Joe Buehler

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-11 23:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 20:02 using mprotect to write to .text Joe Buehler
2011-10-11 16:36 ` David Daney
2011-10-11 17:31   ` Joe Buehler
2011-10-11 18:06     ` David Daney
2011-10-11 18:35       ` Joe Buehler
2011-10-11 18:43         ` David Daney
2011-10-11 23:17           ` Ralf Baechle

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.