mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 17:30:47 +00:00
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>
This commit is contained in:
parent
aac3f106ff
commit
a585382b97
@ -629,6 +629,7 @@ int lxc_poll(const char *name, struct lxc_handler *handler)
|
||||
TRACE("Mainloop is ready");
|
||||
|
||||
ret = lxc_mainloop(&descr, -1);
|
||||
if (descr.type == LXC_MAINLOOP_EPOLL)
|
||||
close_prot_errno_disarm(descr.epfd);
|
||||
if (ret < 0 || !handler->init_died)
|
||||
goto out_mainloop_console;
|
||||
|
Loading…
Reference in New Issue
Block a user