summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorBeau Belgrave <beaub@linux.microsoft.com>2023-04-26 01:51:07 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2023-04-26 04:04:45 +0300
commit41d8fba193b36ac1208d8f8489390b93675fab7b (patch)
tree9ccc495aa71ee5ccf650ab62275e777b6843029e /tools/perf/scripts/python/export-to-sqlite.py
parent97bbce89bfdec9219dfcb60cd62b815a97cb29cb (diff)
downloadlinux-41d8fba193b36ac1208d8f8489390b93675fab7b.tar.xz
tracing/user_events: Limit max fault-in attempts
When event enablement changes, user_events attempts to update a bit in the user process. If a fault is hit, an attempt to fault-in the page and the write is retried if the page made it in. While this normally requires a couple attempts, it is possible a bad user process could attempt to cause infinite loops. Ensure fault-in attempts either sync or async are limited to a max of 10 attempts for each update. When the max is hit, return -EFAULT so another attempt is not made in all cases. Link: https://lkml.kernel.org/r/20230425225107.8525-5-beaub@linux.microsoft.com Suggested-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions