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 CCA52C77B7D for ; Wed, 10 May 2023 14:19:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A700C10E4B9; Wed, 10 May 2023 14:19:57 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id B0CFC10E4AB; Wed, 10 May 2023 14:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683728395; x=1715264395; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=JGLhW6k3sEbAFy04V5w4Rs0JDvBItzVc7r5nXUnVhok=; b=UVGA7y6vAcaoywFGkN5/N7Spu0nE7B+MYbx9AgYsrnDwrMhwCnXeZ5hW BhnNXXkHVgf92KBU3kBy/YytULpiDWV0o8tBcrkXqs/EjW2aQA9ca8KJg EdVT9UVnRtPt4rgo1rD/ghkCkV8T1M0bclR8Ww+evF5UPCKtVfiYrow9p jCOat55WLuHsyEFp+lVLmtQsdkW63naRduwHPQ5888AZLR5RBo3MEw9SU KXaIf3WWctiSTULomb4ELDWB1oMr7eAFHXtLfLVHHt5RIxf7v/HcuzrPf 62h0xZRxwp98vUUMFYOrDgZ+bK4M73AvC2eSRgfTde+U4bjJSIHGX34z/ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="339469116" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="339469116" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 07:19:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10706"; a="768931662" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="768931662" Received: from aboreiko-mobl3.ger.corp.intel.com (HELO thellstr-mobl1.intel.com) ([10.249.254.114]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 07:19:43 -0700 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= To: dri-devel@lists.freedesktop.org, intel-xe@lists.freedesktop.org Date: Wed, 10 May 2023 16:19:30 +0200 Message-Id: <20230510141932.413348-1-thomas.hellstrom@linux.intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH 0/2] drm/xe: Fix unprotected rebind_list accesses X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Each VM has two rebind lists, one protected by the VM resv, the other one protected essentially by the VM notifier.list_lock. This series intends to fix two points of illegal access. Patch 1 fixes an access of VM rebind_lists' link without the VM resv held. Patch 2 fixes an issue where the VMA may not be removed from the VM notifier.rebind_list on VMA destruction. Thomas Hellström (2): drm/xe: Fix unlocked access of the vma::rebind_link drm/xe: Properly remove the vma from the vm::notifer::rebind_list when destroyed drivers/gpu/drm/xe/xe_vm.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) -- 2.39.2