From a84b047061c24799ef1e8e7d92f26e5b2f51b0d0 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 29 Nov 2022 14:21:45 +0100 Subject: [PATCH] ucode: fix a memory corruption the uloop binding was not closing the uloop epoll fd correcttl when forking. Signed-off-by: John Crispin --- feeds/ucentral/ucode/patches/0002-ubus-fix.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 feeds/ucentral/ucode/patches/0002-ubus-fix.patch diff --git a/feeds/ucentral/ucode/patches/0002-ubus-fix.patch b/feeds/ucentral/ucode/patches/0002-ubus-fix.patch new file mode 100644 index 000000000..dd3d63987 --- /dev/null +++ b/feeds/ucentral/ucode/patches/0002-ubus-fix.patch @@ -0,0 +1,13 @@ +Index: ucode-2022-04-07-7fa59ce4/lib/uloop.c +=================================================================== +--- ucode-2022-04-07-7fa59ce4.orig/lib/uloop.c ++++ ucode-2022-04-07-7fa59ce4/lib/uloop.c +@@ -971,6 +971,8 @@ uc_uloop_task(uc_vm_t *vm, size_t nargs) + err_return(errno); + + if (pid == 0) { ++ uloop_done(); ++ + patch_devnull(0, false); + patch_devnull(1, true); + patch_devnull(2, true);