]> git.proxmox.com Git - mirror_lxcfs.git/commit
Fix padding for Slab entry in /proc/meminfo
authorMatthew Stickney <fiendishlinux@gmail.com>
Sat, 9 Oct 2021 04:14:27 +0000 (00:14 -0400)
committerMatthew Stickney <fiendishlinux@gmail.com>
Sat, 9 Oct 2021 04:18:58 +0000 (00:18 -0400)
commit6ddc3c0039f58300413cae363a5e9b922ef254cc
tree3ba5f7095db231506cc4708e0898d2cac1480d6f
parent5ad630de2b9595bac9d96a332482642117bbeb4f
Fix padding for Slab entry in /proc/meminfo

The padding used for the 'Slab' entry of /proc/meminfo is three bytes
shorter than the padding used by the kernel. Since we report the host's
file size as the size of the lxcfs file, this means reads would be three
bytes short of the reported file length. In some cases this causes the
client to receive three additional NUL bytes at the end of the file,
which can cause various problems.

Signed-off-by: Matthew Stickney <fiendishlinux@gmail.com>
src/proc_fuse.c