mirror of
https://github.com/torvalds/linux.git
synced 2025-11-09 13:10:19 +02:00
MemorySanitizer discovered instances where the instruction op value was
not assigned.:
WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x5581c00a76b3 in intel_pt_sample_flags tools/perf/util/intel-pt.c:1527:17
Uninitialized value was stored to memory at
#0 0x5581c005ddf8 in intel_pt_walk_insn tools/perf/util/intel-pt-decoder/intel-pt-decoder.c:1256:25
The op value is used to set branch flags for branch instructions
encountered when walking the code, so fix by setting op to
INTEL_PT_OP_OTHER in other cases.
Fixes:
|
||
|---|---|---|
| .. | ||
| Build | ||
| intel-pt-decoder.c | ||
| intel-pt-decoder.h | ||
| intel-pt-insn-decoder.c | ||
| intel-pt-insn-decoder.h | ||
| intel-pt-log.c | ||
| intel-pt-log.h | ||
| intel-pt-pkt-decoder.c | ||
| intel-pt-pkt-decoder.h | ||