aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/shared
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-01-13 22:09:42 +0100
committerRichard Weinberger <richard@nod.at>2021-02-12 21:34:33 +0100
commit84b2789d61156db0224724806b20110c0d34b07c (patch)
tree2af3dfceb3fb3fc0271c0cc742db74b9c10afffe /arch/um/include/shared
parentum: defer killing userspace on page table update failures (diff)
downloadlinux-dev-84b2789d61156db0224724806b20110c0d34b07c.tar.xz
linux-dev-84b2789d61156db0224724806b20110c0d34b07c.zip
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>
Diffstat (limited to 'arch/um/include/shared')
-rw-r--r--arch/um/include/shared/skas/stub-data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/shared/skas/stub-data.h b/arch/um/include/shared/skas/stub-data.h
index 6b01d97a9386..5e3ade3fb38b 100644
--- a/arch/um/include/shared/skas/stub-data.h
+++ b/arch/um/include/shared/skas/stub-data.h
@@ -11,7 +11,7 @@
struct stub_data {
unsigned long offset;
int fd;
- long err;
+ long parent_err, child_err;
};
#endif