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 D3814C55160 for ; Thu, 30 Jul 2026 13:28:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9062610E189; Thu, 30 Jul 2026 13:28:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="k7gMXnwz"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5CC4C10E189 for ; Thu, 30 Jul 2026 13:28:54 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 450CF4364D; Thu, 30 Jul 2026 13:28:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CC901F000E9; Thu, 30 Jul 2026 13:28:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785418134; bh=1uI4tJ7xGc2eMJhqniziQajONsKmGOf3FSq7Y1HXWsU=; h=Subject:To:Cc:From:Date; b=k7gMXnwzoT50XjU/oxqr8qbE7Rt3V+vBecMRpVgcR+d7cWUEPJCSmg/s2TH3y0Ce9 H0DdVGWIAasW2OnBZokGFaSvnI9r6kWeROICPlBh9j47uxXOKhva5yB+6Tq8U1jtnq 70KsDICYDC8vtkh+lP9bHaobHsf+m5ywD3UXzTYU= Subject: Patch "gpu: Fix uninitialized buddy for built-in drivers" has been added to the 6.18-stable tree To: airlied@redhat.com, gregkh@linuxfoundation.org, intel-xe@lists.freedesktop.org, joelagnelf@nvidia.com, koen.koning@linux.intel.com, peter.senna@linux.intel.com Cc: From: Date: Thu, 30 Jul 2026 15:28:26 +0200 Message-ID: <2026073026-tiny-trustless-b505@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit X-stable: commit X-Patchwork-Hint: ignore 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" This is a note to let you know that I've just added the patch titled gpu: Fix uninitialized buddy for built-in drivers to the 6.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: gpu-fix-uninitialized-buddy-for-built-in-drivers.patch and it can be found in the queue-6.18 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From cc27314c67516c138ee3829197d1c3b998e29fae Mon Sep 17 00:00:00 2001 From: Koen Koning Date: Fri, 13 Feb 2026 16:20:47 +0100 Subject: gpu: Fix uninitialized buddy for built-in drivers From: Koen Koning commit cc27314c67516c138ee3829197d1c3b998e29fae upstream. Move buddy to the start of the link order, so its __init runs before any other built-in drivers that may depend on it. Otherwise, a built-in driver that tries to use the buddy allocator will run into a kernel NULL pointer dereference because slab_blocks is uninitialized. Specifically, this fixes drm/xe (as built-in) running into a kernel panic during boot, because it uses buddy during device probe. Fixes: ba110db8e1bc ("gpu: Move DRM buddy allocator one level up (part two)") Cc: Joel Fernandes Cc: Dave Airlie Cc: intel-xe@lists.freedesktop.org Reviewed-by: Dave Airlie Tested-by: Peter Senna Tschudin Signed-off-by: Koen Koning Signed-off-by: Dave Airlie Link: https://patch.msgid.link/20260213152047.179628-1-koen.koning@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/Makefile +++ b/drivers/gpu/Makefile @@ -2,8 +2,9 @@ # drm/tegra depends on host1x, so if both drivers are built-in care must be # taken to initialize them in the correct order. Link order is the only way # to ensure this currently. +# Similarly, buddy must come first since it is used by other drivers. +obj-$(CONFIG_GPU_BUDDY) += buddy.o obj-y += host1x/ drm/ vga/ tests/ obj-$(CONFIG_IMX_IPUV3_CORE) += ipu-v3/ obj-$(CONFIG_TRACE_GPU_MEM) += trace/ obj-$(CONFIG_NOVA_CORE) += nova-core/ -obj-$(CONFIG_GPU_BUDDY) += buddy.o Patches currently in stable-queue which might be from koen.koning@linux.intel.com are queue-6.18/gpu-fix-uninitialized-buddy-for-built-in-drivers.patch