From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AC5C3E8330 for ; Thu, 28 May 2026 13:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779975370; cv=none; b=FArbkEe6cgwyc9/MWnpaS9ZZLw/NZxumI4Y56sDa0un+/xK5HU7txuE8wxuByjeW9ZNGJF6PL/0coZO15Np49YoJ6CUQHv+tnuOzQ2wwjclcnitp3bphyxcugtOHgUJmZYwx/UtA8fhUv8/ympT3+UBRfxstRw7Z72C9QRrHr2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779975370; c=relaxed/simple; bh=NDfDv/Fi7uq+FVkDpmQMLPoOWvIP6kafQks3TCu6s2c=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=aorm5o/wJAxaY12CmbUkRs/Z7gkLoAGrXuCIRpPSlHksuJnewZPX3jpAeP4bpya1i4SyWQbowX2g7ZE63oX5P8q98Pd0xKyW9FXMneNGSFNfHa0YeLyGO+ox0/C6H1sAjFoI2YoKW4sp5rL1ihaaNjkUxnfjYSqCrOmNHbw9sXo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rJLuN34P; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rJLuN34P" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B3DB1F000E9; Thu, 28 May 2026 13:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779975368; bh=h/VSMs1gfL3xp95zQUN78WID58mLP9y4h3IsxwoWbmQ=; h=Subject:To:Cc:From:Date; b=rJLuN34PE3FAsQHx/cUWN2RQC0EF3vX80fsk6J2kGYPBCoHS6x7FCPFOqAZqwYOKj wgCCs+qbrXV0FvpVe+WwYiWkLQv5kXuEWtmQrMDnelDMxb0qimNSwypSQLb42ndNor Hh3NrfcHvJ8UHGflO1+BQ5EXZfDc6mHgDQW8f2iA= Subject: FAILED: patch "[PATCH] drm/v3d: Release indirect CSD GEM reference on CPU job free" failed to apply to 6.12-stable tree To: mcanal@igalia.com,itoral@igalia.com Cc: From: Date: Thu, 28 May 2026 15:35:15 +0200 Message-ID: <2026052815-arose-kabob-9b34@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.12-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.12.y git checkout FETCH_HEAD git cherry-pick -x 6eb6e5acafa46854d4363e6c34981289995f3ace # git commit -s git send-email --to '' --in-reply-to '2026052815-arose-kabob-9b34@gregkh' --subject-prefix 'PATCH 6.12.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 6eb6e5acafa46854d4363e6c34981289995f3ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= Date: Fri, 15 May 2026 12:07:15 -0300 Subject: [PATCH] drm/v3d: Release indirect CSD GEM reference on CPU job free MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v3d_get_cpu_indirect_csd_params() takes a reference to the indirect BO via drm_gem_object_lookup() and stashes it in cpu_job->indirect_csd.indirect, but nothing on the CPU job teardown path ever drops that reference. Drop the extra reference in v3d_cpu_job_free(). The NULL check covers ioctl errors before the lookup ran and CPU job types other than V3D_CPU_JOB_TYPE_INDIRECT_CSD, which leave the field zero-initialised. Cc: stable@vger.kernel.org Fixes: 18b8413b25b7 ("drm/v3d: Create a CPU job extension for a indirect CSD job") Assisted-by: Claude:claude-opus-4.7 Reviewed-by: Iago Toral Quiroga Link: https://patch.msgid.link/20260515-v3d-cpu-job-leaks-v1-2-7f147cbbf935@igalia.com Signed-off-by: MaĆ­ra Canal diff --git a/drivers/gpu/drm/v3d/v3d_submit.c b/drivers/gpu/drm/v3d/v3d_submit.c index e3a6e7cc7bd5..3ddd53b6f437 100644 --- a/drivers/gpu/drm/v3d/v3d_submit.c +++ b/drivers/gpu/drm/v3d/v3d_submit.c @@ -135,6 +135,9 @@ v3d_cpu_job_free(struct kref *ref) v3d_performance_query_info_free(&job->performance_query, job->performance_query.count); + if (job->indirect_csd.indirect) + drm_gem_object_put(job->indirect_csd.indirect); + v3d_job_free(ref); }