All of lore.kernel.org
 help / color / mirror / Atom feed
* Endless loop on execution attempt on non-executable page
@ 2016-05-12 10:46 Florian Weimer
  2016-05-12 12:53 ` Ralf Baechle
  0 siblings, 1 reply; 6+ messages in thread
From: Florian Weimer @ 2016-05-12 10:46 UTC (permalink / raw)
  To: linux-mips

The GCC compile farm has a big-endian 64-bit MIPS box.  The kernel is:

Linux erpro8-fsf1 3.14.10-er8mod-00013-ge0fe977 #1 SMP PREEMPT Wed Jan
14 12:33:22 PST 2015 mips64 GNU/Linux

Which is a vendor kernel for the EdgeRouter Pro-8.

/proc/cpuinfo reports:

system type             : UBNT_E200 (CN6120p1.1-1000-NSP)
machine                 : Unknown
processor               : 0
cpu model               : Cavium Octeon II V0.1

While testing W^X (execmod, DEP, NX) stack enforcement, I noticed that 
once I try to execute code off a non-executable page, I do not get a 
signal, but the code appears to enter an infinite loop.  The generated 
function starts with a jump instruction to return to the caller, but 
instead, the program counter does not seem to change at all.

“si” in GDB also hangs (but can be interrupted with ^C).

My test code is here:

   https://pagure.io/execmod-tests

Is this a kernel bug or an issue with the silicon?

Thanks,
Florian

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

end of thread, other threads:[~2016-05-17 10:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 10:46 Endless loop on execution attempt on non-executable page Florian Weimer
2016-05-12 12:53 ` Ralf Baechle
2016-05-12 13:07   ` Florian Weimer
2016-05-12 14:23     ` Ralf Baechle
2016-05-12 15:57       ` David Daney
2016-05-17 10:15         ` Florian Weimer

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.