Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nvidia-open-driver-G06-signed for 
openSUSE:Factory checked in at 2026-06-27 18:03:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nvidia-open-driver-G06-signed (Old)
 and      /work/SRC/openSUSE:Factory/.nvidia-open-driver-G06-signed.new.11887 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nvidia-open-driver-G06-signed"

Sat Jun 27 18:03:01 2026 rev:95 rq:1359838 version:580.159.03

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/nvidia-open-driver-G06-signed/nvidia-open-driver-G06-signed.changes
      2026-05-29 18:04:49.420690713 +0200
+++ 
/work/SRC/openSUSE:Factory/.nvidia-open-driver-G06-signed.new.11887/nvidia-open-driver-G06-signed.changes
   2026-06-27 18:03:20.758434756 +0200
@@ -1,0 +2,15 @@
+Tue Jun 16 19:39:34 UTC 2026 - Stefan Dirsch <[email protected]>
+
+- linux-7.1.patch
+  * improved patch in order to avoid Use-After-Free (found by AI
+    review; proposal fix by Michal Suchanek)
+
+-------------------------------------------------------------------
+Tue Jun 16 12:13:14 UTC 2026 - Stefan Dirsch <[email protected]>
+
+- linux-7.1.patch:
+  * fixes build against kernel 7.1 (currently blocking our
+    kernel 7.1 release for TW); stolen from changes for 580.159.04
+    release (boo#1268331)
+
+-------------------------------------------------------------------

New:
----
  linux-7.1.patch

----------(New B)----------
  New:
- linux-7.1.patch
  * improved patch in order to avoid Use-After-Free (found by AI
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nvidia-open-driver-G06-signed.spec ++++++
--- /var/tmp/diff_new_pack.YedkTF/_old  2026-06-27 18:03:21.706466536 +0200
+++ /var/tmp/diff_new_pack.YedkTF/_new  2026-06-27 18:03:21.710466670 +0200
@@ -105,6 +105,7 @@
 Patch1:         fix-objtool-warnings.patch
 %endif
 Patch2:         linux-7.0.patch
+Patch3:         linux-7.1.patch
 BuildRequires:  %{kernel_module_package_buildreqs}
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++

++++++ linux-7.1.patch ++++++
diff -u -r -p 
open-gpu-kernel-modules-580.159.03.orig/kernel-open/common/inc/nv-linux.h 
open-gpu-kernel-modules-580.159.03/kernel-open/common/inc/nv-linux.h
--- open-gpu-kernel-modules-580.159.03.orig/kernel-open/common/inc/nv-linux.h   
2026-06-16 21:28:02.469923407 +0200
+++ open-gpu-kernel-modules-580.159.03/kernel-open/common/inc/nv-linux.h        
2026-06-16 21:37:40.045335932 +0200
@@ -1771,7 +1771,73 @@ typedef enum
 #include <linux/reset.h>
 #include <linux/dma-buf.h>
 #include <linux/gpio.h>
+#if defined(NV_LINUX_OF_GPIO_H_PRESENT)
 #include <linux/of_gpio.h>
+#else
+#include <linux/gpio/driver.h>
+
+/*
+ * of_get_named_gpio() was removed along with linux/of_gpio.h by commit
+ * 51aaf65bbd21 ("gpio: of: Remove <linux/of_gpio.h>"). Provide a compat
+ * implementation using the remaining public GPIO APIs.
+ */
+static inline int of_get_named_gpio(const struct device_node *np,
+                                    const char *propname, int index)
+{
+    struct of_phandle_args gpiospec;
+    struct gpio_device *gdev;
+    struct gpio_desc *desc;
+    int ret;
+
+    if (!np)
+        return -ENOENT;
+
+    ret =
+        of_parse_phandle_with_args_map(np, propname, "gpio", index, &gpiospec);
+    if (ret)
+        return ret;
+
+    gdev = gpio_device_find_by_fwnode(of_fwnode_handle(gpiospec.np));
+    of_node_put(gpiospec.np);
+    if (!gdev)
+        return -EPROBE_DEFER;
+
+    /*
+     * Use the chip's of_xlate callback to translate the DT GPIO
+     * specifier into a linear offset.  Tegra GPIO controllers encode
+     * port and pin in args[0] and of_xlate sums per-port pin counts
+     * to produce the real offset.
+     */
+    {
+        struct gpio_chip *chip = gpio_device_get_chip(gdev);
+        int hwgpio;
+
+#if defined(CONFIG_OF_GPIO)
+        if (chip->of_xlate)
+            hwgpio = chip->of_xlate(chip, &gpiospec, NULL);
+        else
+#endif
+            hwgpio = gpiospec.args[0];
+
+        if (hwgpio < 0) {
+            gpio_device_put(gdev);
+            return hwgpio;
+        }
+
+        desc = gpio_device_get_desc(gdev, hwgpio);
+    }
+
+    int gpio;
+    if (IS_ERR(desc))
+        gpio = PTR_ERR(desc);
+    else
+        gpio = desc_to_gpio(desc);
+
+    gpio_device_put(gdev);
+
+    return gpio;
+}
+#endif
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
 
diff -u -r -p 
open-gpu-kernel-modules-580.159.03.orig/kernel-open/header-presence-tests.mk 
open-gpu-kernel-modules-580.159.03/kernel-open/header-presence-tests.mk
--- 
open-gpu-kernel-modules-580.159.03.orig/kernel-open/header-presence-tests.mk    
    2026-06-16 21:28:02.465923327 +0200
+++ open-gpu-kernel-modules-580.159.03/kernel-open/header-presence-tests.mk     
2026-06-16 21:33:54.484878999 +0200
@@ -38,6 +38,7 @@ NV_HEADER_PRESENCE_TESTS = \
   linux/vfio_pci_core.h \
   linux/cc_platform.h \
   linux/slub_def.h \
+  linux/of_gpio.h \
   asm/mshyperv.h \
   crypto/sig.h
 

Reply via email to