]> git.ipfire.org Git - thirdparty/systemd.git/commit
pidfd/cgroup-util: use fully-sized filehandle buffers
authorJeff Layton <jlayton@kernel.org>
Wed, 28 Jan 2026 13:25:10 +0000 (08:25 -0500)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Jan 2026 15:57:03 +0000 (00:57 +0900)
commiteb2e91b9815bcbc59997c1092d7b52fc18930bff
tree0c92e9626fadd5d8344e52d1f7e90ae57623472d
parent2e14be9a84e1edb295d285db75e555695575108c
pidfd/cgroup-util: use fully-sized filehandle buffers

The current code assumes that FILEID_KERNFS filehandles will never grow
in size. This is not a safe assumption and userland shouldn't be trying
to guess the size of the filehandle it'll get.

We have a macro for that: MAX_HANDLE_SZ.
src/basic/cgroup-util.c
src/basic/pidfd-util.c