]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b5b9bcf968588efcb75c233e73325d4a7ba40e5
tree2af3dfceb3fb3fc0271c0cc742db74b9c10afffe
parent9678850c2526b876d8fb1fbb7fd981f85dd304bf
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