diff options
| author | Menglong Dong <[email protected]> | 2023-07-19 19:03:30 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-07-19 09:55:22 -0700 |
| commit | 492e797fdab25f2d8eb1b6bb3236f4aac474f878 (patch) | |
| tree | 001dccfccc121c8309d4da6ff7f9fdfefae595bf /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9df76fe0c5ac7622dfd16c47f98f3d48e890890e (diff) | |
bpf, x86: initialize the variable "first_off" in save_args()
As Dan Carpenter reported, the variable "first_off" which is passed to
clean_stack_garbage() in save_args() can be uninitialized, which can
cause runtime warnings with KMEMsan. Therefore, init it with 0.
Fixes: 473e3150e30a ("bpf, x86: allow function arguments up to 12 for TRACING")
Cc: Hao Peng <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/bpf/[email protected]/
Signed-off-by: Menglong Dong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions