commit | 32bbe0078afe86a8bf4c67c6b3477781b15e94dc | [log] [tgz] |
---|---|---|
author | Alexei Starovoitov <ast@fb.com> | Wed Apr 06 18:43:28 2016 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 07 21:04:26 2016 -0400 |
tree | 8c5290f51108de3a2c98cb7171942fb9d5e36ab2 | |
parent | 9940d67c93b5bb7ddcf862b41b1847cb728186c4 [diff] |
bpf: sanitize bpf tracepoint access during bpf program loading remember the last byte of ctx access and at the time of attaching the program to tracepoint check that the program doesn't access bytes beyond defined in tracepoint fields This also disallows access to __dynamic_array fields, but can be relaxed in the future. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>