summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorSunho Park <shpark061104@gmail.com>2026-07-14 19:42:30 +0900
committerJohan Hovold <johan@kernel.org>2026-07-22 11:23:54 +0200
commitfaaddd811c5099f11a5f52e68a6b31a5898cda4f (patch)
tree3cf2daf9f4ca7399d355d19832181de2a300d913 /tools/perf/scripts/python/task-analyzer.py
parent55645e4f3c6022ffb160ad3617d2b624eaa38501 (diff)
USB: serial: io_edgeport: cap received transmit credits
The interrupt-status packet reports transmit credits returned by the device. edge_interrupt_callback() adds the 16-bit value to txCredits without checking maxTxCredits. edge_write() uses txCredits minus the software FIFO count as the amount of data that fits. Since the FIFO is allocated with maxTxCredits bytes, txCredits exceeding maxTxCredits can cause OOB write in ring buffer. Cap accumulated credits at maxTxCredits. Conforming devices should never hit the cap. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Cc: stable@vger.kernel.org Assisted-by: Codex:GPT-5 Signed-off-by: Sunho Park <shpark061104@gmail.com> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions