From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:56616 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729978AbfJNGS5 (ORCPT ); Mon, 14 Oct 2019 02:18:57 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9E67Q2e131574 for ; Mon, 14 Oct 2019 02:18:56 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vmk3fgwyg-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 14 Oct 2019 02:18:56 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 Oct 2019 07:18:53 +0100 Date: Mon, 14 Oct 2019 08:18:46 +0200 From: Heiko Carstens Subject: Re: [PATCH 4/4] s390/zcrypt: fix memleak at release References: <20191010131333.23635-1-johan@kernel.org> <20191010131333.23635-5-johan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010131333.23635-5-johan@kernel.org> Message-Id: <20191014061846.GA6834@osiris> Sender: linux-s390-owner@vger.kernel.org List-ID: To: Johan Hovold Cc: Rob Clark , Sean Paul , Fabien Dessenne , Mauro Carvalho Chehab , Harald Freudenberger , David Airlie , Daniel Vetter , Vasily Gorbik , Christian Borntraeger , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-s390@vger.kernel.org, Greg Kroah-Hartman , stable , Martin Schwidefsky On Thu, Oct 10, 2019 at 03:13:33PM +0200, Johan Hovold wrote: > If a process is interrupted while accessing the crypto device and the > global ap_perms_mutex is contented, release() could return early and > fail to free related resources. > > Fixes: 00fab2350e6b ("s390/zcrypt: multiple zcrypt device nodes support") > Cc: stable # 4.19 > Cc: Harald Freudenberger > Cc: Martin Schwidefsky > Signed-off-by: Johan Hovold > --- > drivers/s390/crypto/zcrypt_api.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied, thanks!