android_kernel_motorola_sm6375/arch/um
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Johannes Berg 6cbe83680f um: chan_user: Fix winch_tramp() return value
commit 57ae0b67b747031bc41fb44643aa5344ab58607e 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: ccf1236ecac4 ("um: fix error return code in winch_tramp()")
Reported-and-tested-by: Nathan Chancellor <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
Cc: [email protected]
Signed-off-by: Richard Weinberger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-06-14 18:11:48 +02:00
..
configs um: configs: Remove useless UEVENT_HELPER_PATH 2019-07-02 23:27:41 +02:00
drivers um: chan_user: Fix winch_tramp() return value 2022-06-14 18:11:48 +02:00
include ptrace/um: Replace PT_DTRACE with TIF_SINGLESTEP 2022-06-14 18:11:24 +02:00
kernel ptrace/um: Replace PT_DTRACE with TIF_SINGLESTEP 2022-06-14 18:11:24 +02:00
os-Linux um: registers: Rename function names to avoid conflicts and build problems 2022-01-27 09:19:45 +01:00
scripts
.gitignore
Kconfig um: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-05-22 11:38:28 +02:00
Makefile um: ensure make ARCH=um mrproper removes arch/$(SUBARCH)/include/generated/ 2020-05-02 08:48:53 +02:00
Makefile-os-Linux
Makefile-skas