mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nacked] mm-warn-about-vfree-from-atomic-context.patch removed from -mm tree
@ 2016-11-22 22:57 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-11-22 22:57 UTC (permalink / raw)
  To: hch, aryabinin, chris, hpa, joaodias, joelaf, jszhang, mingo,
	tglx, mm-commits


The patch titled
     Subject: mm: warn about vfree from atomic context
has been removed from the -mm tree.  Its filename was
     mm-warn-about-vfree-from-atomic-context.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: Christoph Hellwig <hch@lst.de>
Subject: mm: warn about vfree from atomic context

We can't handle vfree itself from atomic context, but callers
can explicitly use vfree_atomic instead, which defers the actual
vfree to a workqueue.  Unfortunately in_atomic does not work
on non-preemptible kernels, so we can't just do the right thing
by default.

Link: http://lkml.kernel.org/r/1479474236-4139-8-git-send-email-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Joel Fernandes <joelaf@google.com>
Cc: Jisheng Zhang <jszhang@marvell.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: John Dias <joaodias@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/vmalloc.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN mm/vmalloc.c~mm-warn-about-vfree-from-atomic-context mm/vmalloc.c
--- a/mm/vmalloc.c~mm-warn-about-vfree-from-atomic-context
+++ a/mm/vmalloc.c
@@ -1530,6 +1530,7 @@ void vfree_atomic(const void *addr)
 void vfree(const void *addr)
 {
 	BUG_ON(in_nmi());
+	WARN_ON_ONCE(in_atomic());
 
 	kmemleak_free(addr);
 
_

Patches currently in -mm which might be from hch@lst.de are

mm-remove-free_unmap_vmap_area_noflush.patch
mm-remove-free_unmap_vmap_area_addr.patch
mm-refactor-__purge_vmap_area_lazy.patch
mm-mark-all-calls-into-the-vmalloc-subsystem-as-potentially-sleeping.patch
mm-turn-vmap_purge_lock-into-a-mutex.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-22 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-22 22:57 [nacked] mm-warn-about-vfree-from-atomic-context.patch removed from -mm tree akpm

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).