linux-stable/arch/um
Johannes Berg 8b28302e8a um: chan_user: Fix winch_tramp() return value
commit 57ae0b67b7 upstream.

The previous fix here was only partially correct, it did
result in returning a proper error value in case of error,
but it also clobbered the pid that we need to return from
this function (not just zero for success).

As a result, it returned 0 here, but later this is treated
as a pid and used to kill the process, but since it's now
0 we kill(0, SIGKILL), which makes UML kill itself rather
than just the helper thread.

Fix that and make it more obvious by using a separate
variable for the pid.

Fixes: ccf1236eca ("um: fix error return code in winch_tramp()")
Reported-and-tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-14 16:52:35 +02:00
..
configs arch/defconfig: remove CONFIG_RESOURCE_COUNTERS 2016-05-23 17:04:14 -07:00
drivers um: chan_user: Fix winch_tramp() return value 2022-06-14 16:52:35 +02:00
include um: registers: Rename function names to avoid conflicts and build problems 2022-01-27 08:47:38 +01:00
kernel um: Mark all kernel symbols as local 2021-05-22 10:40:34 +02:00
os-Linux um: registers: Rename function names to avoid conflicts and build problems 2022-01-27 08:47:38 +01:00
scripts
.gitignore
Kconfig.char um: remove used STDIO_CONSOLE Kconfig param 2013-11-17 11:32:27 +01:00
Kconfig.common Merge branch 'for-linus-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml 2016-08-04 19:37:59 -04:00
Kconfig.debug um: Make GCOV depend on !KCOV 2019-12-05 15:34:56 +01:00
Kconfig.net
Kconfig.rest
Kconfig.um um: Add seccomp support 2016-01-10 21:49:49 +01:00
Makefile um: link vmlinux with -no-pie 2018-01-31 12:55:53 +01:00
Makefile-os-Linux
Makefile-skas