summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorKe Sun <sunke@kylinos.cn>2026-08-10 14:35:43 +0800
committerMiguel Ojeda <ojeda@kernel.org>2026-08-12 11:58:50 +0200
commit643a7c306b8ce32743d4f94dd700c8588be37e66 (patch)
tree2b674c77faeac039762495d1c7e004b2b52242f4 /tools/perf/scripts/python/stackcollapse.py
parentfb7d645176189d2b068d69861e230fa5aceb4922 (diff)
rust: fmt: route {:p} through HashedPtr to prevent address leaks
Define a custom `kernel::fmt::Pointer` trait and `HashedPtr` wrapper so that `{:p}` formatting uses the kernel's `%p` hashed format instead of printing raw pointer values, preventing kernel address space leaks. Signed-off-by: Ke Sun <sunke@kylinos.cn> Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260810-hashedptr-v15-2-eafd27d36476@kylinos.cn [ Fixed KUnit failure when the CRNG is not ready. Then, as suggested, replaced the `scnprintf` comment (with v16's), changed width to 100, replaced cast with `without_provenance`. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions