summaryrefslogtreecommitdiffstats
path: root/include/linux/hmm.h
diff options
context:
space:
mode:
authorZev Weiss2019-03-12 07:28:06 +0100
committerLinus Torvalds2019-03-12 18:04:00 +0100
commit2bc4fc60fb3e1a4cae429b889720755ebe9085bb (patch)
treefc497f2eb9ef6b496742e1d698830c7e3c8e567b /include/linux/hmm.h
parentkernel/sysctl.c: add missing range check in do_proc_dointvec_minmax_conv (diff)
downloadkernel-qcow2-linux-2bc4fc60fb3e1a4cae429b889720755ebe9085bb.tar.gz
kernel-qcow2-linux-2bc4fc60fb3e1a4cae429b889720755ebe9085bb.tar.xz
kernel-qcow2-linux-2bc4fc60fb3e1a4cae429b889720755ebe9085bb.zip
kernel/sysctl.c: define minmax conv functions in terms of non-minmax versions
do_proc_do[u]intvec_minmax_conv() had included open-coded versions of do_proc_do[u]intvec_conv(); the duplication led to buggy inconsistencies (missing range checks). To reduce the likelihood of such problems in the future, we can instead refactor both to be defined in terms of their non-bounded counterparts (plus the added check). Link: http://lkml.kernel.org/r/20190207165138.5oud57vq4ozwb4kh@hatter.bewilderbeest.net Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Cc: Brendan Higgins <brendanhiggins@google.com> Cc: Iurii Zaikin <yzaikin@google.com> Cc: Kees Cook <keescook@chromium.org> Cc: Luis Chamberlain <mcgrof@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/hmm.h')
0 files changed, 0 insertions, 0 deletions