alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V0 0/1] ASoC: msm: fix integer overflow for long duration compress offload playback
@ 2022-03-09 14:22 Raghu Bankapur
  2022-03-09 14:22 ` [PATCH V0 1/1] ASoC: msm: fix integer overflow for long duration " Raghu Bankapur
  0 siblings, 1 reply; 6+ messages in thread
From: Raghu Bankapur @ 2022-03-09 14:22 UTC (permalink / raw)
  To: Vinod Koul, Jaroslav Kysela, Takashi Iwai, Raghu Bankapur,
	alsa-devel, linux-kernel
  Cc: Krishna Jha

32 bit variable is used for storing number of bytes copied to DSP,
which can overflow when playback duration goes beyond 24 hours.
Change data type for this variable to uint64_t to prevent overflow
and related playback anomaly.

below are the steps used to reproduce
Steps:-
1. play all clips from music app with Repeat All Songs enabled
2. one of clip is 1hr duration - 5.1_16bit_192khz_1hr.m4a
3. ACTUAL BEHAVIOUR:- there is no audio playback & progress bar was at 
end of stream, but time stamp continues to update till 31hrs for 1hr clip

Raghu Bankapur (1):
  ASoC: msm: fix integer overflow for long duration offload playback

 include/uapi/sound/compress_offload.h | 2 +-
 sound/core/compress_offload.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-03-09 22:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09 14:22 [PATCH V0 0/1] ASoC: msm: fix integer overflow for long duration compress offload playback Raghu Bankapur
2022-03-09 14:22 ` [PATCH V0 1/1] ASoC: msm: fix integer overflow for long duration " Raghu Bankapur
2022-03-09 14:51   ` Amadeusz Sławiński
2022-03-09 15:15     ` Pierre-Louis Bossart
2022-03-09 18:23   ` kernel test robot
2022-03-09 22:17   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).