diff options
author | Thomas Weißschuh <[email protected]> | 2024-05-03 15:44:09 +0200 |
---|---|---|
committer | Kees Cook <[email protected]> | 2024-05-03 12:35:12 -0700 |
commit | 0e148d3cca0dc1a7c6063939f6cb9ba4866c39a7 (patch) | |
tree | a2f14853623d0ec84dfca6c5ea7616447c0a708f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7d78a77733552092361239b1d8afaf8412f5dffd (diff) |
stackleak: Use a copy of the ctl_table argument
Sysctl handlers are not supposed to modify the ctl_table passed to them.
Adapt the logic to work with a temporary variable, similar to how it is
done in other parts of the kernel.
This is also a prerequisite to enforce the immutability of the argument
through the callbacks.
Reviewed-by: Luis Chamberlain <[email protected]>
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Tycho Andersen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions