Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4147150rdh; Fri, 29 Sep 2023 12:35:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGamvI2Z7XJkEniBYhh3qWVetY1JF+ukV1VIPDUoyQwDW3KIAmZB50rot1x4U3yaJfcF6Q+ X-Received: by 2002:a05:6a20:1441:b0:14c:a2e1:65fd with SMTP id a1-20020a056a20144100b0014ca2e165fdmr5635091pzi.9.1696016155149; Fri, 29 Sep 2023 12:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696016155; cv=none; d=google.com; s=arc-20160816; b=rISjI7yLpJrhJMA90p7mjpVdL/EiJz6u0rSEB14VtseyDERnObrDrqzY82Ut82DeAe nKDoGOYD/1NZ8+hvmB05/9ldMsYoDYC33mxhqZ2+DQ/Aadx/eyKzTFo0fs8qiPqrhRU5 QL5hlDE7J/WRnj4Pcbua9kpm/1TzRGrc6Hm1sZv6DGhfRrhV0efp2rby6THCdRk2iQTc eWFXJt+wgsiOzZuVAZzDjwrUrm6OFcpjAtdyd+LQ+Y2VKH7Fp8fBdXIb8qcQM9CBYZgZ sQo6eMykmJ/0lV7TQC5kSTatlmPbP0hWsq/93tv6hDS7ILBfwAQgb3f0jRDZoJCIuJuM yv9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7PhJ/1snztbIAvJzVIeW/P7/Qyzopbj/fqKd87GFOjI=; fh=eTT99y32eKNMBFE8zgf3atQb9Uouw8udoF0PIbaSDRY=; b=qVtdeptMHzXoT7AJe13t0ECgtagt8DlccFslWtknXq4uSD/YLvUnWIFlwAuBZN/QJC jWN54bvOXMtUJvyLHUWWg073RpBU3WPl2KMjLsCTvDPYRaxAjdcOuaUIfCR1XNXIlWMn mGl93c1s1VqVRnhvMG52aWm0B6n1b3a06hxkCv7KYUQza3cIFADb8h+8pvvQOpTT9LrS gdB7vP59U5wgbLNLxyrXte2Cq3EPpjrpOmlvH5kGPE2Rr3GBmvrDkESMNACItDFaB7/t O0vxObraliKtXXsJxtXVk1IiIwXtOpXmhqUiKN3ce7qo/Kn5bfzY8UydmVFZ+z1WtIZp +aiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JvWkNCdm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v17-20020a62c311000000b0068fb9c0bb07si20466389pfg.13.2023.09.29.12.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 12:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=JvWkNCdm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 431308329A03; Fri, 29 Sep 2023 00:23:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232793AbjI2HXR (ORCPT + 99 others); Fri, 29 Sep 2023 03:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232663AbjI2HXP (ORCPT ); Fri, 29 Sep 2023 03:23:15 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9DEF1A7; Fri, 29 Sep 2023 00:23:13 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38T7IwHe007287; Fri, 29 Sep 2023 07:23:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=7PhJ/1snztbIAvJzVIeW/P7/Qyzopbj/fqKd87GFOjI=; b=JvWkNCdmW0gayqaeAt12E5fXacPwzAndTdKfTynixTBsBHnFWCZyPPwQV3k+pkhypmmX 3qrN/PDXTwurSuVV2FTK1VHtweOjk9VLjEaP6d8UraQR2W2XEyfbSdArbaLxtQnrDuFX EeDwN2RGhebG7NxjrD4VUq5aDtQD4ZJP2f5vkaBKhcbIkSxj9Pi3vpySh6FvYf1hh/Th v+m+trK24qBinMSePRJFHl41Hehs0m943rMTHwIv/yyVc1zWr1X+uIXPjGvmqrk59a7g jj4njaoE/HDfESOZMFuPJoj2dZWHly+L2zH4KqowAAe8RGs7/3WxDrnY/sKWUZ7m622x Lw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3td3ggav1k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 07:23:09 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38T7N8RC026214 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Sep 2023 07:23:08 GMT Received: from [10.204.67.150] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Fri, 29 Sep 2023 00:23:06 -0700 Message-ID: <6e9200a1-cf3c-27ca-ceef-7d9b70297530@quicinc.com> Date: Fri, 29 Sep 2023 12:53:02 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1] misc: fastrpc: Reset metadata buffer to avoid incorrect free Content-Language: en-US To: Greg KH CC: , , , , References: <1693463723-16937-1-git-send-email-quic_ekangupt@quicinc.com> <2023092840-balmy-proved-e337@gregkh> From: Ekansh Gupta In-Reply-To: <2023092840-balmy-proved-e337@gregkh> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: TRkRo4syH3r5Z65fY3-QKNzkUsm3-fWc X-Proofpoint-ORIG-GUID: TRkRo4syH3r5Z65fY3-QKNzkUsm3-fWc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-29_05,2023-09-28_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=806 priorityscore=1501 bulkscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309290061 X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 29 Sep 2023 00:23:25 -0700 (PDT) On 9/28/2023 6:38 PM, Greg KH wrote: > On Thu, Aug 31, 2023 at 12:05:23PM +0530, Ekansh Gupta wrote: >> Metadata buffer is allocated during get_args for any remote call. >> This buffer carries buffers, fdlists and other payload information >> for the call. If the buffer is not reset, put_args might find some >> garbage FDs in the fdlist which might have an existing mapping in >> the list. This could result in improper freeing of FD map when DSP >> might still be using the buffer. Added change to reset the metadata >> buffer after allocation. >> >> Signed-off-by: Ekansh Gupta > > What commit id does this fix? > > And you sent 3 patches, but not in a list, what order are they to be > applied in? > Thanks for reviewing the patches, Greg. I'll send the 3 patches as a patch series for better understanding. -ekansh > thanks, > > greg k-h