diff options
| author | George Wilson <gcwilson@linux.ibm.com> | 2026-08-07 11:59:00 -0500 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-08-08 10:34:28 +0530 |
| commit | fb442a6673ff1046bf67754957d95880fdb394b5 (patch) | |
| tree | 6db05eca26990aac5401028f2c316676cfacecf5 /tools/perf/scripts/python/flamegraph.py | |
| parent | 649c10bff5cb7a514bf299094833ec8c9190aac3 (diff) | |
powerpc/pseries: lparcfg - fix kbuf[] underflow
In lparcfg_write(), a count of 0 results in kbuf[] being indexed at -1.
Check for count == 0 in the existing check for count > sizeof(kbuf) and
return -EINVAL if true.
Fixes: 74422e2b1939 ("powerpc/pseries: Remove VLA from lparcfg_write()")
Acked-by: Nayna Jain <nayna@linux.ibm.com>
Tested-by: R Nageswara Sastry <rnsastry@linux.ibm.com>
Cc: stable@vger.kernel.org # 4.20
Signed-off-by: George Wilson <gcwilson@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
