All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] MIPS: Prevent users killing the kernel or spamming its log
@ 2017-09-22  6:44 ` Paul Burton
  0 siblings, 0 replies; 13+ messages in thread
From: Paul Burton @ 2017-09-22  6:44 UTC (permalink / raw)
  To: linux-mips; +Cc: Paul Burton

This series fixes up an issue discovered running crashme - user code can
cause the kernel to die() by performing unaligned accesses to the GIC
user page. The first patch fixes this by allowing the kernel to recover
from bus errors resulting from bad accesses to the GIC user page (or
anywhere else we expect might fault). The remaining 3 patches silence
kernel log output from such bus errors in cases where they are somewhat
expected.

It'd be great to get these into v4.14, but especially patch 1 in order
to prevent users killing the kernel.

Thanks,
    Paul

Paul Burton (4):
  MIPS: Search main exception table for data bus errors
  MIPS: Don't dump CM error state for fixed up bus errors
  MIPS: Allow bus error handlers to request quiet behaviour
  MIPS: Silence kernel log output for GIC user page bus errors

 arch/mips/include/asm/mips-cm.h | 11 ++++++++---
 arch/mips/include/asm/traps.h   |  1 +
 arch/mips/kernel/mips-cm.c      | 39 ++++++++++++++++++++++++++++++++++-----
 arch/mips/kernel/traps.c        | 15 +++++++++------
 4 files changed, 52 insertions(+), 14 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2017-09-22 19:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22  6:44 [PATCH 0/4] MIPS: Prevent users killing the kernel or spamming its log Paul Burton
2017-09-22  6:44 ` Paul Burton
2017-09-22  6:44 ` [PATCH 1/4] MIPS: Search main exception table for data bus errors Paul Burton
2017-09-22  6:44   ` Paul Burton
2017-09-22  9:47   ` Ralf Baechle
2017-09-22 19:02     ` Paul Burton
2017-09-22 19:02       ` Paul Burton
2017-09-22  6:44 ` [PATCH 2/4] MIPS: Don't dump CM error state for fixed up " Paul Burton
2017-09-22  6:44   ` Paul Burton
2017-09-22  6:44 ` [PATCH 3/4] MIPS: Allow bus error handlers to request quiet behaviour Paul Burton
2017-09-22  6:44   ` Paul Burton
2017-09-22  6:44 ` [PATCH 4/4] MIPS: Silence kernel log output for GIC user page bus errors Paul Burton
2017-09-22  6:44   ` Paul Burton

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.