From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93444C88E53 for ; Tue, 15 Sep 2026 07:48:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4D2610FAC2; Tue, 15 Sep 2026 07:48:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="dWWyNloe"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 66DE110FAC2 for ; Tue, 15 Sep 2026 07:48:06 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 89CB56025F; Tue, 15 Sep 2026 07:48:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF9131F000FF; Tue, 15 Sep 2026 07:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789458485; bh=TvUcLf8+rRTmqvfUQTEHfEQ9bL4cSuj1HVAg7sRWVO4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=dWWyNloeUy9t2elOLgivLPH+Nw+qnyqwUl8rNlc68jQVNXZW8eHX36dl+krCKfB1/ G1uGwhZ5leA7OZPxwEIp716YL7pzPEBO129pdZCwv5hw39n821nffQtR4k1Vk8l9zD JZyNg+as2qgbWUXImUoYaLWjzZg1LHn439QUwRV9zmQBWoTblFZ85tJGQ7wjO3gAXA yzCV7qg6s91iznnPkHNNnDRlneQ786nRRum7Vne7mTG2OaDpi5t9Ez/tMtDMMKM+tF lc/KeLP/uugvViALHdP8mfWK4Xep7v54BoOlY4oo8wFTOEoN2sXJVCKX6YYXo7+3TQ 0z6X2TPk+gQgg== From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/4] drm/virtio: fix object leak in virtio_gpu_resource_create_ioctl() To: "Junrui Luo" Cc: "Eugenio Perez" , "Michael S. Tsirkin" , dri-devel@lists.freedesktop.org, virtualization@lists.linux.dev In-Reply-To: <20260915-fixes-v2-2-a0d799e4db66@outlook.com> References: <20260915-fixes-v2-0-a0d799e4db66@outlook.com> <20260915-fixes-v2-2-a0d799e4db66@outlook.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Sep 2026 07:48:04 +0000 Message-Id: <20260915074804.EF9131F000FF@smtp.kernel.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" > From: Junrui Luo >=20 > virtio_gpu_resource_create_ioctl() calls drm_gem_object_release() on the > drm_gem_handle_create() error path instead of dropping the reference it > owns, so obj->funcs->free() never runs and the virtio_gpu_object, its > pages and sg table, the resource id and the host-side resource are > leaked. >=20 > Use drm_gem_object_put() instead. >=20 > Fixes: 62fb7a5e1096 ("virtio-gpu: add 3d/virgl support") > Assisted-by: Claude:claude-opus-5 > Signed-off-by: Junrui Luo Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260915-fixes-v2-0= -a0d799e4db66@outlook.com?part=3D2