aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2018-01-20 01:24:29 +0100
committerAlexei Starovoitov <[email protected]>2018-01-19 18:36:59 -0800
commit901334159419afc8c1b8556243fc53e9617472d2 (patch)
tree85f3cee68edbfc230e11a2662cd0677b79944a44 /scripts/gdb/linux/proc.py
parent417f1d9f217922d822b64e8323458d7d03a12d4f (diff)
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 <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions