From: Alexey Dobriyan Catch, e. g., 644/0644 typo. Signed-off-by: Alexey Dobriyan Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton --- kernel/sysctl_check.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN kernel/sysctl_check.c~sysctl-check-for-bogus-modes kernel/sysctl_check.c --- a/kernel/sysctl_check.c~sysctl-check-for-bogus-modes +++ a/kernel/sysctl_check.c @@ -1532,6 +1532,8 @@ int sysctl_check_table(struct nsproxy *n sysctl_check_leaf(namespaces, table, &fail); } sysctl_check_bin_path(table, &fail); + if (table->mode > 0777) + set_fail(&fail, table, "bogus .mode"); if (fail) { set_fail(&fail, table, NULL); error = -EINVAL; _