public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep
@ 2015-08-05 15:50 Aapo Vienamo
  2015-08-24  2:45 ` Doug Anderson
  0 siblings, 1 reply; 6+ messages in thread
From: Aapo Vienamo @ 2015-08-05 15:50 UTC (permalink / raw)
  To: dianders, keescook, nico; +Cc: linux-arm-kernel, linux-kernel

Hi,

The breakpoint setting code in arch/arm/kernel/kgdb.c calls
patch_text(), which ends up trying to sleep while in interrupt context.
The bug was introduced by commit: 23a4e40 arm: kgdb: Handle read-only
text / modules. The resulting behavior is "BUG: scheduling while
atomic..." when setting a breakpoint in kgdb. This was tested on an
Nvidia Jetson TK1 board with 4.2.0-rc5-next-20150805 kernel.

Regards,
Aapo Vienamo

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

end of thread, other threads:[~2015-08-25 22:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 15:50 [BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep Aapo Vienamo
2015-08-24  2:45 ` Doug Anderson
2015-08-24 17:46   ` Kees Cook
2015-08-24 23:56     ` Doug Anderson
2015-08-25  5:20       ` Kees Cook
2015-08-25 22:06       ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox