Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1200938 > unrolled thread

[BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep

Started byAapo Vienamo <avienamo@nvidia.com>
First post2015-08-05 18:00 +0200
Last post2015-08-05 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep Aapo Vienamo <avienamo@nvidia.com> - 2015-08-05 18:00 +0200

#1200938 — [BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep

FromAapo Vienamo <avienamo@nvidia.com>
Date2015-08-05 18:00 +0200
Subject[BUG] arm: kgdb: patch_text() in kgdb_arch_set_breakpoint() may sleep
Message-ID<pU9gL-5S2-35@gated-at.bofh.it>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web