aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorDaniel Borkmann <[email protected]>2016-06-10 21:19:06 +0200
committerDavid S. Miller <[email protected]>2016-06-10 18:00:57 -0700
commita70b506efe899dc8d650eafcc0b11fc9ee746627 (patch)
treee938bd0ddcc06c32df59b527d148ffa7aab9f636 /tools/perf/scripts/python/syscall-counts.py
parentf2a4d086ed4c588d32fe9b7aa67fead7280e7bf1 (diff)
bpf: enforce recursion limit on redirects
Respect the stack's xmit_recursion limit for calls into dev_queue_xmit(). Currently, they are not handeled by the limiter when attached to clsact's egress parent, for example, and a buggy program redirecting it to the same device again could run into stack overflow eventually. It would be good if we could notify an admin to give him a chance to react. We reuse xmit_recursion instead of having one private to eBPF, so that the stack's current recursion depth will be taken into account as well. Follow-up to commit 3896d655f4d4 ("bpf: introduce bpf_clone_redirect() helper") and 27b29f63058d ("bpf: add bpf_redirect() helper"). Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions