All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] RIXI fixes.
@ 2015-07-23  9:34 Ralf Baechle
  2015-07-23  9:10 ` [PATCH 1/2] MIPS: Handle page faults of executable but unreadable pages correctly Ralf Baechle
  2015-07-23  9:10 ` [PATCH 2/2] MIPS: Partially disable RIXI support Ralf Baechle
  0 siblings, 2 replies; 8+ messages in thread
From: Ralf Baechle @ 2015-07-23  9:34 UTC (permalink / raw)
  To: linux-mips, David Daney, Markos Chandras, James Hogan

As part of unrelated work I ran into issus with RIXI support which allows
the creation of pages that are executable but not readable.  Problems
arise with instruction emulation on such pages, for example when a load
or store instruction is taking an unaligned exception, is an FPU
instruction that requires emulation, a trap or break instruction of
which the break code needs to bread and more.

A better solution would be to create a temporary mapping using
kmap_coherent() but that's more complex so left for a later stage.

These patches have been sitting in a shady git tree for years but seem to
work for me.  Nevertheless Comments appreciated.

Cheers,

  Ralf

Ralf Baechle (2):
  MIPS: Handle page faults of executable but unreadable pages correctly.
  MIPS: Partially disable RIXI support.

 arch/mips/mm/cache.c | 8 ++++----
 arch/mips/mm/fault.c | 3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

-- 
2.4.3

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

end of thread, other threads:[~2015-07-23 12:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23  9:34 [PATCH 0/2] RIXI fixes Ralf Baechle
2015-07-23  9:10 ` [PATCH 1/2] MIPS: Handle page faults of executable but unreadable pages correctly Ralf Baechle
2015-07-23 10:15   ` James Hogan
2015-07-23 10:15     ` James Hogan
2015-07-23 12:35     ` Ralf Baechle
2015-07-23  9:10 ` [PATCH 2/2] MIPS: Partially disable RIXI support Ralf Baechle
2015-07-23 10:06   ` James Hogan
2015-07-23 10:06     ` James Hogan

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.