[PATCH] kthread: Fix return value of kthread_create() upon SIGKILL.

David Rientjes rientjes at google.com
Tue Jun 3 21:35:31 UTC 2014


On Tue, 3 Jun 2014, Tetsuo Handa wrote:

> >From c41fa0b9294900a86167d6c8db392d99dde09774 Mon Sep 17 00:00:00 2001
> From: Tetsuo Handa <penguin-kernel at I-love.SAKURA.ne.jp>
> Date: Tue, 3 Jun 2014 21:46:24 +0900
> Subject: [PATCH] kthread: Fix return value of kthread_create() upon SIGKILL.
> 
> Commit 786235eeb "kthread: make kthread_create() killable" meant for
> allowing kthread_create() to abort as soon as killed by the OOM-killer.
> But returning -ENOMEM is wrong if killed by SIGKILL from userspace.
> Change kthread_create() to return -EINTR upon SIGKILL.
> 
> Signed-off-by: Tetsuo Handa <penguin-kernel at I-love.SAKURA.ne.jp>
> Cc: Oleg Nesterov <oleg at redhat.com>
> Cc: David Rientjes <rientjes at google.com>
> Cc: stable <stable at kernel.org> [3.13+]

Acked-by: David Rientjes <rientjes at google.com>




More information about the kernel-team mailing list