lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 9 Apr 2019 00:09:23 +0200 From: Matteo Croce <mcroce@...hat.com> To: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org Cc: Luis Chamberlain <mcgrof@...nel.org>, Kees Cook <keescook@...omium.org>, Alexey Dobriyan <adobriyan@...il.com> Subject: [PATCH 0/2] sysctl: share commonly used constants In the sysctl code there are a lot of duplicate constants used to validate the user input, which could be put in a shared place. Some of them are not even constant, fix this with the following patches. The first one declares the shared constants, the second one makes use of them for the kernel/ sysctls. If merged, I will send separate patches for the other susystems. Matteo Croce (2): proc/sysctl: add shared variables for range check kernel: use sysctl shared variables for range check fs/proc/proc_sysctl.c | 5 ++ include/linux/sysctl.h | 4 + kernel/pid_namespace.c | 3 +- kernel/sysctl.c | 193 ++++++++++++++++++++--------------------- kernel/ucount.c | 6 +- 5 files changed, 107 insertions(+), 104 deletions(-) -- 2.21.0
Powered by blists - more mailing lists