Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4009915ybg; Fri, 25 Oct 2019 12:03:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMvWwGMAQo2+tv49spcuL+pShXh2WCf9ijyVpYkSbvceuXdB+kr40eEgohKR83DCy91iyu X-Received: by 2002:a50:c949:: with SMTP id p9mr5602028edh.25.1572030194825; Fri, 25 Oct 2019 12:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572030194; cv=none; d=google.com; s=arc-20160816; b=D52fOccMNTUo0S8qdXIxVhPQg7y9HT406V+DqnWMMAoIFuauQw96lYQm66C58X8tGM boAqA33ioSvUHgnorLPsiq6GBvFdiO+ustbnzD2gGY3JI/IcGr8/MJN40H+wmVo1di27 zS5U1/wZuSt0Adt713Rd97Umr2TRvyVxdWOdfmtAhv9OpAzOplv0MT9UU/XqNcDtipLw sfeFMEmJNOxUvDxeHtSn62gE1k6lNnT/GgtcvxBFy3n53yDiiEosKNYDCNuK1kZm7EFq uIDjs6qSh5EfIXGruLGAdiHcGpWZWkCFNX/n7gADYG/5uRVAmJzHXPLbQL+e0u/NJor0 hc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=vBUB9vvtd3ICPJeMWHrkXP86kl1iGmOMteSQUXJpxiU=; b=I1rx9uVw6cFMpxHjghQXRKPvDaee3PgEon/P8CUdDCZcfKdeH1gV6i55+deIyJ3H2G hcydp69jcZtgLs/RLth+rvOHEI+NXd4lDaKNJNIZH++cUCJZmMi7CxODZm/zvZJ98Lbf vKRruMCxvr6soYC9rEsTC9cGRDHP4PvUZQNMBmMSvlHFQEbtWV738baZGp3lGElsc8ON PwssnjHs5TJNcQ0wk5CP+pOn9ip6b3pmC5nzjuhWgBZIn/22oQJ06pz5qhmsq37G7zrM v2GfJnuRTfkcZHSAUn8JYp/DWWriVI5vJBjpW/PO1dcJLUH5CbVcvTGdkABvf1xOGtNn L5SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=jwX9fOuI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q40si1901701eda.218.2019.10.25.12.02.50; Fri, 25 Oct 2019 12:03:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=jwX9fOuI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392853AbfJXTwA (ORCPT + 99 others); Thu, 24 Oct 2019 15:52:00 -0400 Received: from ozlabs.org ([203.11.71.1]:47283 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390431AbfJXTwA (ORCPT ); Thu, 24 Oct 2019 15:52:00 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 46zdDP46YWz9sPV; Fri, 25 Oct 2019 06:51:48 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1571946716; bh=UWyXQ1Iw+UMZYj2SA6HBAw1NT5T7pfbx2QffwK989yU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jwX9fOuI11zIRK3ojPaBk/qXRXsPsMVeh2/gaacyvzQwL+V0aiYZkAhFPheFd9k0J et2FGYEubuOkFNq4vzQyFgqNJo6wcYfVP2HuSgPzo9JP9B04IjIQFB2GD4D2CW362S RmoMZ2HHnMqnEWbvmOCnSeko+OCrRH1U/t2yVj6g9O1O9Phf3fr5j/9TUDRDTGgSJv JJpGFSBVqVfJyPLUxl37q7A5t/3+kLWuHell801boDx4L5/SwSZLopVdtrSgKgmUHR HlyXd1W/5Q1x4JDtE6HM/ZlzOkwAZigTbqsjCBQeJGumdnSd+iDpplh2FiQA0aDLTr R1fjqzpS8AefQ== Date: Fri, 25 Oct 2019 06:51:35 +1100 From: Stephen Rothwell To: Daniel Vetter Cc: Colin Ian King , Sean Paul , Maxime Ripard , Maarten Lankhorst , Eric Anholt , David Airlie , Navid Emamdoost , Iago Toral Quiroga , dri-devel , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH][next] drm/v3d: fix double free of bin Message-ID: <20191025065135.09175b37@canb.auug.org.au> In-Reply-To: References: <20191024104801.3122-1-colin.king@canonical.com> <20191024123853.GH11828@phenom.ffwll.local> <821f0799-1f37-c853-d2c6-dd95883e02d8@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/xwrizZz4UyloQa1ZZxKFEFk"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/xwrizZz4UyloQa1ZZxKFEFk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Thu, 24 Oct 2019 14:49:36 +0200 Daniel Vetter wrote: > > Ok adding Stephen. There's a merge conflict between drm-misc-fixes and > drm-next (I think) and the merge double-added the kfree(bin). See > above for the relevant sha1. Dave is already on here as a heads-up, > but also adding drm-misc maintainers. >=20 > > >> --- > > >> drivers/gpu/drm/v3d/v3d_gem.c | 1 - > > >> 1 file changed, 1 deletion(-) > > >> > > >> diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d= _gem.c > > >> index 549dde83408b..37515e47b47e 100644 > > >> --- a/drivers/gpu/drm/v3d/v3d_gem.c > > >> +++ b/drivers/gpu/drm/v3d/v3d_gem.c > > >> @@ -568,7 +568,6 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void= *data, > > >> ret =3D v3d_job_init(v3d, file_priv, &bin->base, > > >> v3d_job_free, args->in_sync_bcl); > > >> if (ret) { > > >> - kfree(bin); > > >> v3d_job_put(&render->base); > > >> kfree(bin); > > >> return ret; I will add this as a merge fixup until drm-misc-fixes is merged into the drm tree. --=20 Cheers, Stephen Rothwell --Sig_/xwrizZz4UyloQa1ZZxKFEFk Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl2yAMcACgkQAVBC80lX 0Gy2ZggAiZaoH9RPu5iXGznPgZhzyg1plQKDAAPWiIwMq1c3Bivg6umaIroB14qg LGpurXf9YO+Vj8S06ukixB/b1vAycWSWXfauEZPhe6lF1YGykeZUVDeKCcIoR/oU we0+KgwxN1r854mdr4+OlzjC9VssQ8c3HiGztCldR0PnenNt/BP7m+4mQtmB2gdL H+cQREBnDZFHYKVNiDoIybIlyg34/MXC0nt2JGsY/A/UsBIFoLKEePnMc6j7Jh3O 4mkIfZb2SYcUVz0a6Ds0XuqAOVb9IRKiTHMdE1v59cnSS+AcyNog821sMAgtwAYR lLyleGdyeEodrJ5AFmvnpCvc4bGZ9w== =RhRC -----END PGP SIGNATURE----- --Sig_/xwrizZz4UyloQa1ZZxKFEFk--