The patch titled Subject: kernel/fork: use vfree_atomic() to free thread stack has been added to the -mm tree. Its filename is kernel-fork-use-vfree_atomic-to-free-thread-stack.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/kernel-fork-use-vfree_atomic-to-free-thread-stack.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/kernel-fork-use-vfree_atomic-to-free-thread-stack.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Subject: kernel/fork: use vfree_atomic() to free thread stack vfree() is going to use sleeping lock. Thread stack freed in atomic context, therefore we must use vfree_atomic() here. Link: http://lkml.kernel.org/r/1479474236-4139-6-git-send-email-hch@xxxxxx Signed-off-by: Andrey Ryabinin <aryabinin@xxxxxxxxxxxxx> Signed-off-by: Christoph Hellwig <hch@xxxxxx> Cc: Joel Fernandes <joelaf@xxxxxxxxxx> Cc: Jisheng Zhang <jszhang@xxxxxxxxxxx> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> Cc: John Dias <joaodias@xxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/fork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/fork.c~kernel-fork-use-vfree_atomic-to-free-thread-stack kernel/fork.c --- a/kernel/fork.c~kernel-fork-use-vfree_atomic-to-free-thread-stack +++ a/kernel/fork.c @@ -229,7 +229,7 @@ static inline void free_thread_stack(str } local_irq_restore(flags); - vfree(tsk->stack); + vfree_atomic(tsk->stack); return; } #endif _ Patches currently in -mm which might be from aryabinin@xxxxxxxxxxxxx are mm-add-vfree_atomic.patch kernel-fork-use-vfree_atomic-to-free-thread-stack.patch x86-ldt-use-vfree_atomic-to-free-ldt-entries.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html