summaryrefslogtreecommitdiff
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2018-01-20 03:24:29 +0300
committerAlexei Starovoitov <ast@kernel.org>2018-01-20 05:36:59 +0300
commit901334159419afc8c1b8556243fc53e9617472d2 (patch)
tree85f3cee68edbfc230e11a2662cd0677b79944a44 /scripts/cleanpatch
parent417f1d9f217922d822b64e8323458d7d03a12d4f (diff)
downloadlinux-901334159419afc8c1b8556243fc53e9617472d2.tar.xz
bpf, verifier: detect misconfigured mem, size argument pair
I've seen two patch proposals now for helper additions that used ARG_PTR_TO_MEM or similar in reg_X but no corresponding ARG_CONST_SIZE in reg_X+1. Verifier won't complain in such case, but it will omit verifying the memory passed to the helper thus ending up badly. Detect such buggy helper function signature and bail out during verification rather than finding them through review. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions