Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp33875rdg; Tue, 10 Oct 2023 03:32:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFU1pOBC0s3MwAxDzaXNp2u8Da/TUNgDoJwDWSGwHeBZ9qNoLCxa8Jl0cO0EILhqIyPbJBs X-Received: by 2002:a05:6a21:a5a5:b0:153:a461:d96e with SMTP id gd37-20020a056a21a5a500b00153a461d96emr19851560pzc.47.1696933971008; Tue, 10 Oct 2023 03:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696933970; cv=none; d=google.com; s=arc-20160816; b=Gjomwz2AyZGx5sWFJqj/Pjq3qIFQY1hxzy75mzQaiu4IYsaYY1LaSfoGn0r7xyQe/+ yFRcmkUB2Er20tj/B8THtWnV5+Ytxm8ZkmEzalKhnhZPtwRz/A42rk2vx9DKb8Vflfsq cCCgtUBreqIrnLl7AODNlcp+0fGXAEbFmWbkcZ9e00jBpaefigKrkp934PFgmlLRfLS2 hKnhd2lU6UV950PuOE7OJtlXt6NzZZeC1uvl5DMvxth6NleIrgcXRuLtRhWflNa47aHb RJmugoIhSt+1GaiBYAq29PbXKHPA/v0XECQ3IO6rHLMxXYFIGCha41iXSw3WMCI3IMIz eFtw== 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=G4ZN2prybdRxjNMpLfgdIP1IbuHzdG4M/LEnYvyrvaY=; fh=lfGg2GgnHLTwjxm2aoICk7hT3yrD/lh0aCoVlnT4MbM=; b=Hid0mhak6otTVvVAnY38xZkvq2+rEaPuP8rld5Djq+n7Mk27TQpLhzg/QssxPSd8CV 4oUWN0FpKE2H3ceZsl74cW+Ajnx3B/n1Tp3nnAcEvLm8hhYTnPKpVdoCqRkaeEiZERbX +w5T5+6xkPWxn2qpNTyl+vxlZzrwIWxQ85xkIhVaZgIlALUwrj8aixok+AZB018RsI9y 0kW9JBcI1T8bXC3UyE/2jbhTy/tSFGTizpJYHgQy1MnQgWQTwE18S/Uyx0LUCFBTQSk8 4ncT8Ru6XwUUK1sdwKAC440TA7WTrv3jd30RIYNPtj24N6lhLxvMazXY4ci4AHieG8xl 77dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=RkPHVsJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id kw14-20020a170902f90e00b001c72c893ad0si11141537plb.48.2023.10.10.03.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 03:32:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=RkPHVsJv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A3F59836D91A; Tue, 10 Oct 2023 03:32:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjJJKcg (ORCPT + 99 others); Tue, 10 Oct 2023 06:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbjJJKce (ORCPT ); Tue, 10 Oct 2023 06:32:34 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72B16C4; Tue, 10 Oct 2023 03:32:32 -0700 (PDT) Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39AAMUIK022219; Tue, 10 Oct 2023 10:32:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=G4ZN2prybdRxjNMpLfgdIP1IbuHzdG4M/LEnYvyrvaY=; b=RkPHVsJvnXXq9AlQIeRc8ezYAw+NDvivDQn3zjpKZN8Q38KlxaixLM/HSvveNvlFstqX tQZaUaW//CmxpMhv3aWvHNRle3RhkPfzv4o0ZRfmWF0ZQgy6fpAn3PJH5kyLy3vIG3F3 5KMnq/fPx3AY0XK90qL30fl4QJCQM5DIl0nwkCRdq4vIJZa8f6ePmAA4ciZjZibQrtTA FnhQPrRa7r5j6PF9uFZHbTqDbC787/iS0YEAd3Li/yO2ZGevfsFpt5f8ul12VbuLYySN kGmDBTg2aaCUiBgQMRLzOw0M8fDoloaop2ZT5ggDPr2JYaKkk7ztmpWf2Vllh+iyOKDr FQ== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3tn4t4gaf8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Oct 2023 10:32:31 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39A88wJ3025927; Tue, 10 Oct 2023 10:32:30 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3tkjnn7p11-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Oct 2023 10:32:30 +0000 Received: from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com [10.20.54.105]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39AAWQ2Y46137614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 Oct 2023 10:32:26 GMT Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BB4952004D; Tue, 10 Oct 2023 10:32:26 +0000 (GMT) Received: from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D8BC20040; Tue, 10 Oct 2023 10:32:26 +0000 (GMT) Received: from localhost (unknown [9.171.24.117]) by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTPS; Tue, 10 Oct 2023 10:32:25 +0000 (GMT) Date: Tue, 10 Oct 2023 12:32:24 +0200 From: Vasily Gorbik To: Peter Oberparleiter Cc: Dinghao Liu , Vineeth Vijayan , Heiko Carstens , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Halil Pasic , Julian Wiedmann , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] s390/cio: Fix a memleak in css_alloc_subchannel Message-ID: References: <20230921071412.13806-1-dinghao.liu@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 9T8T13insnaSR3sdLLL219eJzjiz1LHd X-Proofpoint-GUID: 9T8T13insnaSR3sdLLL219eJzjiz1LHd 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-10-10_05,2023-10-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 spamscore=0 mlxscore=0 phishscore=0 adultscore=0 clxscore=1011 lowpriorityscore=0 bulkscore=0 mlxlogscore=706 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310100078 X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 03:32:45 -0700 (PDT) X-Spam-Level: ** On Thu, Oct 05, 2023 at 05:12:54PM +0200, Peter Oberparleiter wrote: > On 21.09.2023 09:14, Dinghao Liu wrote: > > When dma_set_coherent_mask() fails, sch->lock has not been > > freed, which is allocated in css_sch_create_locks(), leading > > to a memleak. > > > > Fixes: 4520a91a976e ("s390/cio: use dma helpers for setting masks") > > Signed-off-by: Dinghao Liu > > Looks good to me. > > Reviewed-by: Peter Oberparleiter Applied, thank you.