diff options
| author | Alexei Starovoitov <[email protected]> | 2016-04-07 01:43:28 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-04-08 01:04:26 +0000 |
| commit | 32bbe0078afe86a8bf4c67c6b3477781b15e94dc (patch) | |
| tree | 8c5290f51108de3a2c98cb7171942fb9d5e36ab2 /samples/bpf/bpf_load.c | |
| parent | bpf: support bpf_get_stackid() and bpf_perf_event_output() in tracepoint prog... (diff) | |
| download | kernel-32bbe0078afe86a8bf4c67c6b3477781b15e94dc.tar.gz kernel-32bbe0078afe86a8bf4c67c6b3477781b15e94dc.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'samples/bpf/bpf_load.c')
0 files changed, 0 insertions, 0 deletions
