Files
systemd/src/basic
Kornilios Kourtis 7ac58157ca process-util: handle pidfd_spawn() returning E2BIG
In some kernels (specifically, 5.4) even though the clone3 syscall is
supported, setting CLONE_INTO_CGROUP is not. The error message returned
in this case is E2BIG.

If posix_spawn_wrapper encounters this error, it does not retry, and
cannot spawn any programs in said kernels.

This commit adds a check for the E2BIG error and retries pidfd_spawn()
without the POSIX_SPAWN_SETCGROUP flag.

If we encounter an E2BIG error, and the pidfd_spawn() succeeds after
removing the POSIX_SPAWN_SETCGROUP flag, then we cache the result so
that we do not retry every time.

Originally, this issue was reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1077204.

Signed-off-by: Kornilios Kourtis <kornilios@gmail.com>
2024-08-21 02:04:57 +09:00
..
2024-06-11 13:55:35 +01:00
2023-06-14 16:44:57 +02:00
…
2024-04-29 16:33:17 +08:00
2024-01-16 10:49:26 -07:00
2024-07-24 18:58:41 +02:00
2024-07-24 18:58:41 +02:00
2023-07-02 11:10:12 +01:00
2024-06-28 18:55:31 +02:00
2024-06-28 18:55:31 +02:00
…
…
2024-03-18 11:04:42 +00:00
2024-03-18 11:04:42 +00:00
2023-10-04 08:58:10 +09:00
2023-08-01 10:14:49 +02:00
2023-02-24 14:11:31 +01:00
2023-12-05 23:50:25 +09:00
2024-03-22 01:44:45 +08:00
2024-03-22 01:44:45 +08:00
…
2022-12-23 23:26:26 +01:00
…
…
2022-09-13 08:13:27 +02:00
2023-11-01 14:07:54 +00:00
2024-05-10 10:11:06 +09:00
2024-08-20 11:11:53 +02:00