[systemd-devel] systemd failing to close unwanted file descriptors & FDS spawning and crashing

Mantas Mikulėnas grawity at gmail.com
Fri Mar 4 10:18:42 UTC 2022


On Fri, Mar 4, 2022 at 11:26 AM Christopher Obbard <
chris.obbard at collabora.com> wrote:

> Right, so it looks like the call to close_range fails. This is a 5.4
> kernel which doesn;t have close_range - so this is understandable.
>

No, if it was just a missing syscall, it would fail with -ENOSYS instead
(triggering systemd's fallback to a traditional close() loop). That's what
happens on vanilla 5.4 and older kernels.

If you're getting -EINVAL, then either your downstream patches tried to
backport close_range (unsuccessfully), or... added a whole different
syscall at the same syscall number, so check what your kernel's
arch/**/syscall.tbl says about number 436?

-- 
Mantas Mikulėnas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220304/88eeb923/attachment.htm>


More information about the systemd-devel mailing list