Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp818086pxb; Wed, 3 Nov 2021 12:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyROE4DPT3JU9hgSxkChw5O/vLIr6JMDaanXphaTyx4lG5cSB7TbrgZf9NiiHuqanYjxhr7 X-Received: by 2002:a17:906:180a:: with SMTP id v10mr56627671eje.112.1635969355420; Wed, 03 Nov 2021 12:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635969355; cv=none; d=google.com; s=arc-20160816; b=fkMaMru6aUdXCaSPkVJLzZ7sCwA7ChFdWgrBXvRMyzpUt+XOhTuv9ZEyfvDJMe4T59 idvB24H8B/NDx7LkDb0fjoIRHloZUS+600PHKK4KmujS/5jHXEv0B1p/ttDWrBwT8piQ g1EDdctJWRldFCzzchRMBuNCUU3mZuImKKINs6UJIvpbnd6zeCYiVMO5/f8GDuDBw4KQ 9POKE1mnX50/LK6b6YrWIkOQofTMTj7Gtb7M9G9gX1VJkcBnm1L3qja5vwFb5+J518BA sv1xsWB+qJPq7CpTH7r4hfo1Qs6fhb6zs2nLGjs87Oax3DfnfdcqwY3B2BgfmrKAqqrR lIuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=GnGx1nSe7Zfu+paz9FUEqo8RKNEtedX0po+VZ/0F8eM=; b=I5Mt13lNiPcFYVMfJmCAAuDWyCOopqciptyiE2+3rctQpVdDCRXHFuN6bXwSlV2zBc kHjHE2pswHwvAk9zOG/INn4bOToy7RAMSDULbAnJ1K56VIENeEE+fc5tIKgfexOlz3s8 kpluEFtNv562mub5MQZfwR+TyMtviR/8Y+quaS9EA0l0zNBzLAsJoaPmGOfe8qEwBumj Uu+5jwUDWofq1VETqPDbpqhP5yhSgOJ9ciTh4meiyJFfStL4xiiNlcTpNdEZFbLGPsf7 gZdGglcDED/a4SoQIPajM7QvlZnVuZX44KkltEs6G+Vrf3pUHfw0bdU/JJ0e6L74LqJy MhIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=kw4F9dtH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d8si6547070edm.486.2021.11.03.12.55.02; Wed, 03 Nov 2021 12:55:55 -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=@gmx.net header.s=badeba3b8450 header.b=kw4F9dtH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbhKCTy6 (ORCPT + 99 others); Wed, 3 Nov 2021 15:54:58 -0400 Received: from mout.gmx.net ([212.227.15.19]:47615 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhKCTy6 (ORCPT ); Wed, 3 Nov 2021 15:54:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635969135; bh=FtOL8XmqDS1wLfeizbwtBWc/x+j5u2WFuRH/u2pOQXY=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=kw4F9dtHAhduvVf0SV6QfP/XOKBnH+CbyQV6rxz3NnRVn7lXEWB4HvfwHb9gtPx34 tR+7N/AYSYQgZGdDyiOU1cIaXppexqsKGxldsoYCBVsWzO1R/H4+5wwGX+UK6u/twm YWM4a5tfaoSv7PKifB5wf50zG7Hh6wonxxc/jSdI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([79.223.42.226]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M4axg-1miung46XG-001lEI; Wed, 03 Nov 2021 20:52:15 +0100 Received: by localhost.localdomain (Postfix, from userid 1000) id 260D48009A; Wed, 3 Nov 2021 20:52:13 +0100 (CET) From: Sven Joachim To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Christian =?iso-8859-1?Q?K=F6nig?= , "Erhard F." , Huang Rui , nouveau@lists.freedesktop.org Subject: Re: [PATCH 5.10 32/77] drm/ttm: fix memleak in ttm_transfered_destroy References: <20211101082511.254155853@linuxfoundation.org> <20211101082518.624936309@linuxfoundation.org> Date: Wed, 03 Nov 2021 20:52:13 +0100 In-Reply-To: <20211101082518.624936309@linuxfoundation.org> (Greg Kroah-Hartman's message of "Mon, 1 Nov 2021 10:17:20 +0100") Message-ID: <871r3x2f0y.fsf@turtle.gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:UysYFhltgoAvMidN4mGrSc1JaIBcLgXEQv1Z7ixnmXoDaSvGNnZ pYGq/YV2rMATmZSFwFCpJjT2w7PJUWuyZDeXxSuqQAvG6P9V24KFMUaijstkxir3se5FuRU m7esFvzKhx7FH7FA9o+GHt2kIBL/0LQaYmU3h2p176mefCwrdK999zdeuagakTgVAxLOFeu BdKOxMEkWTOblxmkWWSWg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rfxMpj4gZLI=:QqForyq+zs9hzal1s4WBRh XUquGTDNHFE4XSgR5ct/MH7l7aK/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CQr/l8b2BaY= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-11-01 10:17 +0100, Greg Kroah-Hartman wrote: > From: Christian K=F6nig > > commit 0db55f9a1bafbe3dac750ea669de9134922389b5 upstream. > > We need to cleanup the fences for ghost objects as well. > > Signed-off-by: Christian K=F6nig > Reported-by: Erhard F. > Tested-by: Erhard F. > Reviewed-by: Huang Rui > Bug: https://bugzilla.kernel.org/show_bug.cgi?id=3D214029 > Bug: https://bugzilla.kernel.org/show_bug.cgi?id=3D214447 > CC: > Link: https://patchwork.freedesktop.org/patch/msgid/20211020173211.2247-1= -christian.koenig@amd.com > Signed-off-by: Greg Kroah-Hartman > --- > drivers/gpu/drm/ttm/ttm_bo_util.c | 1 + > 1 file changed, 1 insertion(+) > > --- a/drivers/gpu/drm/ttm/ttm_bo_util.c > +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c > @@ -322,6 +322,7 @@ static void ttm_transfered_destroy(struc > struct ttm_transfer_obj *fbo; >=20=20 > fbo =3D container_of(bo, struct ttm_transfer_obj, base); > + dma_resv_fini(&fbo->base.base._resv); > ttm_bo_put(fbo->bo); > kfree(fbo); > } Alas, this innocuous looking commit causes one of my systems to lock up as soon as run startx. This happens with the nouveau driver, two other systems with radeon and intel graphics are not affected. Also I only noticed it in 5.10.77. Kernels 5.15 and 5.14.16 are not affected, and I do not use 5.4 anymore. I am not familiar with nouveau's ttm management and what has changed there between 5.10 and 5.14, but maybe one of their developers can shed a light on this. Cheers, Sven