Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp481938pxp; Wed, 9 Mar 2022 06:49:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDi74T5L9X1xCIMaNlE7qmc7p3fzLnwjXoZ7eDN3gjH0GVqzKlfaT/8Oib2lv1UVX7wtLm X-Received: by 2002:a05:6402:22a3:b0:415:ce95:7eb8 with SMTP id cx3-20020a05640222a300b00415ce957eb8mr21500271edb.388.1646837360415; Wed, 09 Mar 2022 06:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646837360; cv=none; d=google.com; s=arc-20160816; b=JoAHfrApETPR6su6hheyC+cuqACmVrzk4dZFayz23f35WyIFljtq3QVC91Ud4bfPVQ 4SvZtNSE5iJoJ4SvgrOjInrsZ/+rOCYUj1I4SZ/B4CT+yH6rcz0Odbcx/qWtXno+pqss y7RCfqrrpD4p0BWYw8PGRs8UZ9SoUIJuqeAGBlctjjierBwrQpfBmo/jzlb1vWXF4kTI bjoyoQ88V9FXPRAvehddTaDdnSmbt4DP1qi3eydkAyGV9tZzcg1n+aR+KGkm01q3eKgQ 7edwFtYIrV1+dFk5gWaoRZoH/yg8dUMU0uHwqaIL1bp4vzABXfDLSPkaQa076JxwAugV t2ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=L/BoiUwHfGKaBdopgfMfhmCSFdJfogltxoiz1XVAUlg=; b=qSACRtPhuGAOVlyDhZsts5FUDLbMvWDWb3gHZskNlifac+oIOAu/IfSmc/N83Q7XXz 8lBB7vL7XDgv2bYdAq0fDxQf+rR/EFOxVZiGC3/m7wma5rNzE2Axvud7ZipXWC/tlHyW rufxSP8/yt2a0TAPWr0ap+VIqX5ERRZ17H1Fdqjcs6IGl9gihWZYuKsHUhnZjhZp4JpW MvFLiMf+JtrsCbUHaiwRJuVGNH2DYNz96Eybc0x6JNi1O8biJCJ5IoolXMKVEf43jGh+ qlVjjDOB9eV6Dwdsk8drGU0ZQHUNrv43FSQD/baXudfX5GYnt25wSEbf+yGc3Rzkr2gm 9bRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hrBI7Pik; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr19-20020a170906d55300b006d79f572b5dsi1458214ejc.171.2022.03.09.06.48.56; Wed, 09 Mar 2022 06:49:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=hrBI7Pik; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233507AbiCIOYB (ORCPT + 99 others); Wed, 9 Mar 2022 09:24:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233504AbiCIOX5 (ORCPT ); Wed, 9 Mar 2022 09:23:57 -0500 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51AA410855C for ; Wed, 9 Mar 2022 06:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1646835778; x=1678371778; h=from:to:cc:subject:date:message-id:mime-version; bh=L/BoiUwHfGKaBdopgfMfhmCSFdJfogltxoiz1XVAUlg=; b=hrBI7Pik+It/sRmusLnLpp0VLLSfGPctU/hz7mfjaqPUggtGVAjlBs42 kq2rBojQrowxgzJl8MXzi5S+p+4iHkfOtUdp+pUtsnWoX+IiliyNpIDsX mEfAhNo+Y30twBFthKukt2i9A/cfs9nquY9M341+ql+/R3PZSKD9JOmTk g=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-01.qualcomm.com with ESMTP; 09 Mar 2022 06:22:57 -0800 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2022 06:22:57 -0800 Received: from hu-rbankapu-blr.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Wed, 9 Mar 2022 06:22:55 -0800 From: Raghu Bankapur To: Vinod Koul , Jaroslav Kysela , "Takashi Iwai" , Raghu Bankapur , , CC: Krishna Jha Subject: [PATCH V0 0/1] ASoC: msm: fix integer overflow for long duration compress offload playback Date: Wed, 9 Mar 2022 19:52:27 +0530 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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