* [PATCH 14/17] mm,kdb,kgdb: Add a debug reference for the kdb kmap usage [not found] ` <1281019078-6636-14-git-send-email-jason.wessel@windriver.com> @ 2010-08-05 14:37 ` Jason Wessel 0 siblings, 0 replies; only message in thread From: Jason Wessel @ 2010-08-05 14:37 UTC (permalink / raw) To: torvalds Cc: linux-kernel, kgdb-bugreport, Jason Wessel, Andrew Morton, Ingo Molnar, linux-mm The kdb kmap should never get used outside of the kernel debugger exception context. Signed-off-by: Jason Wessel<jason.wessel@windriver.com> CC: Andrew Morton <akpm@linux-foundation.org> CC: Ingo Molnar <mingo@elte.hu> CC: linux-mm@kvack.org --- mm/highmem.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/mm/highmem.c b/mm/highmem.c index 66baa20..7a0aa1b 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -26,6 +26,7 @@ #include <linux/init.h> #include <linux/hash.h> #include <linux/highmem.h> +#include <linux/kgdb.h> #include <asm/tlbflush.h> /* @@ -470,6 +471,12 @@ void debug_kmap_atomic(enum km_type type) warn_count--; } } +#ifdef CONFIG_KGDB_KDB + if (unlikely(type == KM_KDB && atomic_read(&kgdb_active) == -1)) { + WARN_ON(1); + warn_count--; + } +#endif /* CONFIG_KGDB_KDB */ } #endif -- 1.6.3.3 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-05 14:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1281019078-6636-1-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-2-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-3-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-4-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-5-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-6-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-7-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-8-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-9-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-10-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-11-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-12-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-13-git-send-email-jason.wessel@windriver.com>
[not found] ` <1281019078-6636-14-git-send-email-jason.wessel@windriver.com>
2010-08-05 14:37 ` [PATCH 14/17] mm,kdb,kgdb: Add a debug reference for the kdb kmap usage Jason Wessel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).