diff options
author | Joonas Niilola <juippis@gentoo.org> | 2022-04-14 14:48:25 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2022-04-14 14:51:22 +0300 |
commit | ff94e87fa07cb7c93bde70e2676aeec510a78e7d (patch) | |
tree | df5a74c816e7d55c6702070a11f2588e709cda6e /app-containers/lxc/files | |
parent | media-gfx/hydrus: Add 479, drop 473, update 9999 (diff) | |
download | gentoo-ff94e87fa07cb7c93bde70e2676aeec510a78e7d.tar.gz gentoo-ff94e87fa07cb7c93bde70e2676aeec510a78e7d.tar.bz2 gentoo-ff94e87fa07cb7c93bde70e2676aeec510a78e7d.zip |
app-containers/lxc: drop 4.0.11_p1-r1
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-containers/lxc/files')
-rw-r--r-- | app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync1.patch | 29 | ||||
-rw-r--r-- | app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync2.patch | 28 |
2 files changed, 0 insertions, 57 deletions
diff --git a/app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync1.patch b/app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync1.patch deleted file mode 100644 index cd497a755523..000000000000 --- a/app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync1.patch +++ /dev/null @@ -1,29 +0,0 @@ -From aac3f106ff012e1d6835b20c250dcf09c364530c Mon Sep 17 00:00:00 2001 -From: Christian Brauner <christian.brauner@ubuntu.com> -Date: Thu, 28 Oct 2021 17:39:11 +0200 -Subject: [PATCH] mainloop: make sure that descr->ring is allocated - -This is future proofing more than anything else. - -Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> ---- - src/lxc/mainloop.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - -diff --git a/src/lxc/mainloop.c b/src/lxc/mainloop.c -index 7c8f5d86af..17a4d55293 100644 ---- a/src/lxc/mainloop.c -+++ b/src/lxc/mainloop.c -@@ -515,8 +515,10 @@ void lxc_mainloop_close(struct lxc_async_descr *descr) - - if (descr->type == LXC_MAINLOOP_IO_URING) { - #if HAVE_LIBURING -- io_uring_queue_exit(descr->ring); -- munmap(descr->ring, sizeof(struct io_uring)); -+ if (descr->ring) { -+ io_uring_queue_exit(descr->ring); -+ munmap(descr->ring, sizeof(struct io_uring)); -+ } - #else - ERROR("Unsupported io_uring mainloop"); - #endif diff --git a/app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync2.patch b/app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync2.patch deleted file mode 100644 index 33b8554193d3..000000000000 --- a/app-containers/lxc/files/lxc-4.0.11_p1-liburing-sync2.patch +++ /dev/null @@ -1,28 +0,0 @@ -From a585382b972c25ee8489147d94918d001ef439a7 Mon Sep 17 00:00:00 2001 -From: Christian Brauner <christian.brauner@ubuntu.com> -Date: Thu, 28 Oct 2021 17:39:42 +0200 -Subject: [PATCH] start: check event loop type before closing fd - -Since this is a union we might otherwise stomp on io_uring mmap()ed -memory. - -Fixes: #4016 -Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> ---- - src/lxc/start.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/src/lxc/start.c b/src/lxc/start.c -index 8f7173ec8c..1a6046c7a4 100644 ---- a/src/lxc/start.c -+++ b/src/lxc/start.c -@@ -629,7 +629,8 @@ int lxc_poll(const char *name, struct lxc_handler *handler) - TRACE("Mainloop is ready"); - - ret = lxc_mainloop(&descr, -1); -- close_prot_errno_disarm(descr.epfd); -+ if (descr.type == LXC_MAINLOOP_EPOLL) -+ close_prot_errno_disarm(descr.epfd); - if (ret < 0 || !handler->init_died) - goto out_mainloop_console; - |