summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2026-09-22 15:26:14 +0200
committerMickaël Salaün <mic@digikod.net>2026-09-22 20:52:13 +0200
commite7e0a54300a896e731dffd3e2e8dae5631d6243d (patch)
tree7bc2f571385d6f65e8a07bd7c603ae1b90b2657a /tools/perf/scripts/python/bin
parentbd3a19800dd1ba1ba9a4c307d9dfe50eac443c01 (diff)
downloadlinux-next-e7e0a54300a896e731dffd3e2e8dae5631d6243d.tar.gz
linux-next-e7e0a54300a896e731dffd3e2e8dae5631d6243d.zip
landlock: Widen ruleset versions to 64 bits
Tracepoint consumers use a ruleset ID and version to identify the successful landlock_add_rule(2) call prefix used to create a domain. LANDLOCK_MAX_NUM_RULES bounds distinct stored rules, not successful calls: re-adding already-present rights for an object or port succeeds without increasing num_rules. Because every successful call increments the version, these calls can wrap the 32-bit counter and give different prefixes the same trace identity. Widen the counter and its trace fields to 64 bits so the counter cannot wrap in practice, while preserving the successful-call semantics. Saturating would alias all subsequent histories, while rejecting a call at the limit would change otherwise valid syscall behavior solely for trace metadata. Cc: Günther Noack <gnoack@google.com> Cc: Steven Rostedt <rostedt@goodmis.org> Fixes: 63747c94774d ("landlock: Add landlock_add_rule_fs and landlock_add_rule_net tracepoints") Reviewed-by: Günther Noack <gnoack@google.com> Link: https://patch.msgid.link/20260922132615.1025945-1-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions