Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1847334pxb; Mon, 20 Sep 2021 06:44:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQKwhErwBVTScwae2U+Ehd8znkffGlzlzfqCr3MfXT7eUMsJQP9DO5qrDl1yKY5VqqggC0 X-Received: by 2002:a02:6405:: with SMTP id t5mr19559938jac.136.1632145444989; Mon, 20 Sep 2021 06:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632145444; cv=none; d=google.com; s=arc-20160816; b=Sh6apfQ2FNKqEsn3TvSamY9GC4rcLPhckdAH8WfRAs1BdSdMcQuxkmzc5vrWS2HMuU DsxKk2yVR2SYxaIANkeUz7oWaQVXcC4HcjWsQWjAxQx/wqzkXkcVbKWEgaoTO2Y9iGtu n3VUUjjArWyD8wqq2Jd4jKuhrxuTDYJbsXdqst+8dOqHD/Gv55MqUrVnvkqlQTNQF5Vv J0WSRiKgOhySaoZkVVeDVZmrOE+3Bsi2QkafdhzcuAVb8SAnSmgcN9eFuYp1sQb90nxK 7K+9hem/TEdPa0SZong3sGiwlC8P/RakndO0TNkCyQyx4VTemLG6J7L+xIMu1iO+e7ly NcKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SZgXL59hG9bGl6wCz88+Qp6WJv3gUptMTFWblIAJmvs=; b=K88tc72bIX9WY/jjXode8NJgPXiDQmfPaQgmR2P2F9ku5ezCw5ptEAKQmw7Llh/YgZ yqdlEpLZoAPRB08RYgrv6+5kkftin8KKnuM2VXb3AUThbTkZC03nQVZ3SJ2bCAx7y/ek 5LAnWZAsGrx91vSgsN/HgohcT8QiHqez5tTbZSXEN021eQtiQNMMquiMlFKUgkQHQsvF wuF1Ks2tx42d5t70dIDwBYznZU6/VBtnciBBMRzgC8txE7GemENAZRG5yg6cCp7NkwCY 31NDyp4cG2OkJ5yQIVTNQ0uc01KSC9yyv9IkNSOEl/iQeVQYZ5XqKcoY5plRfCElsNtI lL+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VKb6amyn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d186si17466579iog.78.2021.09.20.06.43.47; Mon, 20 Sep 2021 06:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VKb6amyn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235136AbhITJrx (ORCPT + 99 others); Mon, 20 Sep 2021 05:47:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:35660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbhITJrx (ORCPT ); Mon, 20 Sep 2021 05:47:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C11260F6C; Mon, 20 Sep 2021 09:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632131186; bh=YEoeV/QfWDkv+OhStvmdBt8Qe0SbbH1I9HWpYSUrcO8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VKb6amynafkBVDsG5kxHh/XaICyEDWQ9/gTeAfesiiZHpIM9wr33m29IKllbaeXZO g7ZNHplhl1TUpMMEQdrGvcLIc3laPj93uuD6JA1Khf8/C5r/tKgvvedlls5tgwvquy lp/uSPo23BHxFc3QtkdIrk8QCxNb3f9nN1PQLgX4= Date: Mon, 20 Sep 2021 11:46:24 +0200 From: Greg KH To: jeyr@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, srinivas.kandagatla@linaro.org, linux-kernel@vger.kernel.org, fastrpc.upstream@qti.qualcomm.com Subject: Re: [PATCH] misc: fastrpc: fix improper packet size calculation Message-ID: References: <1632125731-18768-1-git-send-email-jeyr@codeaurora.org> <6b3663fcadfdc5bc0cc82eedce533905@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b3663fcadfdc5bc0cc82eedce533905@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 20, 2021 at 03:01:07PM +0530, jeyr@codeaurora.org wrote: > On 2021-09-20 14:38, Greg KH wrote: > > On Mon, Sep 20, 2021 at 01:45:31PM +0530, Jeya R wrote: > > > The buffer list is sorted and this is not being > > > considered while calculating packet size. This > > > would lead to improper copy length calculation > > > for non-dmaheap buffers which would eventually > > > cause sending improper buffers to DSP. > > > > You do have the full 72 columns to use :) > > Thanks, will update the commit message considering this. > > > > > > > > > Signed-off-by: Jeya R > > > --- > > > drivers/misc/fastrpc.c | 13 +++++++++---- > > > 1 file changed, 9 insertions(+), 4 deletions(-) > > > > What commit does this fix? > > > > thanks, > > > > greg k-h > > Payload calculation function was modified to handle buffer overlapping > calculation in this commit: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/misc/fastrpc.c?h=v5.15-rc2&id=25e8dfb83cda0a123bb1e091d6c3599cde050d76 > > Here during buffer overlap calculation, the buffer list is getting sorted. > This needs to be considered during the calculation of payload size also by > using unsorted buffer index "raix". Ok, then please add a "Fixes:" tag when you resend this. thanks, greg k-h