KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
82 stars 5 forks source link

Fix -Wstringop-overflow warnings in kernel/cgroup/cgroup.c #316

Closed GustavoARSilva closed 8 months ago

GustavoARSilva commented 1 year ago

Found in ARM aspeed_g4_defconfig

kernel/cgroup/cgroup.c:1208:16: warning: 'find_existing_css_set' accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
kernel/cgroup/cgroup.c:1258:15: warning: 'css_set_hash' accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
kernel/cgroup/cgroup.c:6089:18: warning: 'css_set_hash' accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
kernel/cgroup/cgroup.c:6153:18: warning: 'css_set_hash' accessing 4 bytes in a region of size 0 [-Wstringop-overflow=]
GustavoARSilva commented 1 year ago

Patch: https://lore.kernel.org/linux-hardening/ZIpm3pcs3iCP9UaR@work/

GustavoARSilva commented 8 months ago

fixed in commit 78d44b824ed04dd1553c55c5b839c9a55cbcaf4e