um: separate child and parent errors in clone stub
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jan 2021 21:09:42 +0000 (22:09 +0100)
committerRichard Weinberger <richard@nod.at>
Fri, 12 Feb 2021 20:34:33 +0000 (21:34 +0100)
commit84b2789d61156db0224724806b20110c0d34b07c
tree2af3dfceb3fb3fc0271c0cc742db74b9c10afffe
parenta7d48886cacf8b426e0079bca9639d2657cf2d38
um: separate child and parent errors in clone stub

If the two are mixed up, then it looks as though the parent
returned an error if the child failed (before) the mmap(),
and then the resulting process never gets killed. Fix this
by splitting the child and parent errors, reporting and
using them appropriately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/shared/skas/stub-data.h
arch/um/kernel/skas/clone.c
arch/um/os-Linux/skas/process.c
arch/x86/um/shared/sysdep/stub_32.h
arch/x86/um/shared/sysdep/stub_64.h