diff options
| author | Sonali Pradhan <sonalipradhan@google.com> | 2026-07-28 20:24:32 +0000 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-29 08:25:27 +0200 |
| commit | 8d7a30c50c2e58a6839634ed0acde14466d1dc61 (patch) | |
| tree | 1bc37bc357dde5edb0be61a42d39bf2ab99ee857 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | d0199ae1666ff9ae2d1d568d64c3430d4c47f0e5 (diff) | |
ALSA: usb-audio: Clamp frame size in implicit-feedback mode
snd_usb_handle_sync_urb() scales received sync packet sizes by the sender's
stride and stores the result directly in out_packet->packet_size[i]. If a
connected USB device sends an oversized sync packet, this frame count can
exceed ep->maxframesize.
The un-clamped frame count then propagates to the playback endpoint queue,
potentially driving packet transfers beyond the endpoint's hardware frame
limits.
Cap the calculated frame count against ep->maxframesize in
snd_usb_handle_sync_urb() to prevent oversized packets from entering the
playback queue.
Fixes: 28acb12014fb ("ALSA: usb-audio: use sender stride for implicit feedback")
Cc: stable@vger.kernel.org
Assisted-by: Jetski:Gemini-3.6-Flash
Signed-off-by: Sonali Pradhan <sonalipradhan@google.com>
Link: https://patch.msgid.link/20260728202432.2354994-1-sonalipradhan@google.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
