summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorTaeyang Lee <0wn@theori.io>2026-10-16 02:19:05 +0900
committerSteven Rostedt <rostedt@goodmis.org>2026-10-15 18:07:06 -0400
commit803aa6fc2dbea25ab9d3ed19eca1c96d0ab17445 (patch)
tree12ef2694dc024bbdf40160c9b84972bf16fea0c8 /scripts/basic
parent3cc117514d69067a94d6c7479730dce41e678f50 (diff)
downloadlinux-803aa6fc2dbea25ab9d3ed19eca1c96d0ab17445.tar.gz
linux-803aa6fc2dbea25ab9d3ed19eca1c96d0ab17445.zip
tracing: Keep the predicate limit separate from program capacity
predicate_parse() adds two to nr_preds to reserve the terminal TRUE and FALSE entries. It also uses that increased value as the limit for parsed predicates. If the initial count is smaller than the number actually parsed, the program can fill the allocation and subsequent accesses can go past its end. Keep nr_preds as the predicate limit and use a separate value for the allocation size. This leaves space for both terminal entries and a zeroed entry when parsing stops at the limit. Cc: stable@vger.kernel.org Fixes: 39f7c41c908b ("tracing/filters: Enable filtering a cpumask field by another cpumask") Link: https://patch.msgid.link/atELCd1XjKVhrkFL@Taeyangs-MacBook-Pro.local Signed-off-by: Taeyang Lee <0wn@theori.io> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions