AUR AI Reviewer

Review Results

Version #3232 of nvidia-470xx-utils · commit 05a13537e0fa · status Reviewed

Risk 0/5 · Safe PKGBUILD
Result #6957

Comment

The change only bumps pkgrel from 8.03 to 8.04 in PKGBUILD. No source URLs, build steps, install scripts, dependencies, permissions, or packaging behavior changed. This is a metadata-only revision with no security impact visible in the provided diff.

@@ -9,7 +9,7 @@
 pkgbase=nvidia-470xx-utils
 pkgname=('nvidia-470xx-utils' 'opencl-nvidia-470xx' 'nvidia-470xx-dkms')
 pkgver=470.256.02
-pkgrel=8.03
+pkgrel=8.04
 arch=('x86_64')
 url="http://www.nvidia.com/"
 license=('custom')
Risk 0/5 · Safe PKGBUILD
Result #6958

Comment

The PKGBUILD change only adds three additional patch sources and applies them during prepare(). I inspected the new patches and they are conventional kernel-compatibility fixes: one adds a timer_delete_sync shim for older kernels, one adapts DRM plane/CRTC callbacks for Linux 7.4, and one makes the build work with Clang by adjusting compiler flags and conftest probes. I did not find any network fetches, shell execution, privilege escalation, persistence mechanisms, or writes outside $pkgdir introduced by this change. The only minor concern is that the package now carries more local patching, but the patch contents are transparent and narrowly scoped to build compatibility.

@@ -30,6 +30,7 @@ source=('nvidia-drm-outputclass.conf'
         "nvidia-470xx-fix-linux-6.13.patch"
         "nvidia-470xx-fix-linux-6.14.patch"
         "nvidia-470xx-fix-linux-6.15.patch"
+        "nvidia-470xx-fix-linux-6.15-followup.patch"
         "nvidia-470xx-fix-linux-6.17.patch"
         "nvidia-470xx-fix-linux-6.19-part1.patch"
         "nvidia-470xx-fix-linux-6.19-part2.patch"
Risk 0/5 · Safe PKGBUILD
Result #6959

Comment

The PKGBUILD change only adds two additional upstream patch files to the declared source list and applies them during prepare(), with matching checksum updates. I reviewed the added patch content: it is a straightforward compatibility fix for newer Linux/Clang builds, touching kernel API conditionals and C prototype declarations. There are no signs of network fetches at build time, privilege escalation, persistence, or installation outside pkgdir in this change. The only notable concern is that the new patch content is fairly large and modifies build logic, but it appears consistent with the package’s existing patch-based maintenance and does not introduce obvious malicious behavior.

@@ -38,13 +39,15 @@ source=('nvidia-drm-outputclass.conf'
         "nvidia-470xx-fix-linux-7.2-part2.patch"
         "nvidia-470xx-fix-linux-7.2-part3.patch"
         "nvidia-470xx-fix-linux-7.3.patch"
+        "nvidia-470xx-fix-linux-7.4.patch"
         "disable-objtool-override.patch"
         "enable-drm-modeset-by-default.patch"
+        "nvidia-470xx-fix-clang.patch"
         )
 
 sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc5067748acf9afd66a3269a6e323461356592fdfc624c86523bf105ff8fe47d3770'
             '4b3ad73f5076ba90fe0b3a2e712ac9cde76f469cd8070280f960c3ce7dc502d1927f525ae18d008075c8f08ea432f7be0a6c3a7a6b49c361126dcf42f97ec499'
-            '4e870d1ec819e74757a65762484a44fea2c71d090f0898c7f8c193fc8539c29f3b14ecec9d1216ed23d6978ade9e7376f81c7d8242b7005c8c067171eb6df40a'
+            'fb2d25c733882f3d35ad736ebbb1ea58a026ac7623442158c9e195e2002a71da27a66433115f68f870af103508663945b1cd697659927f3926f96b7685599e6c'
             'a0183adce78e40853edf7e6b73867e7a8ea5dabac8e8164e42781f64d5232fbe869f850ab0697c3718ebced5cde760d0e807c05da50a982071dfe1157c31d6b8'
             '55def6319f6abb1a4ccd28a89cd60f1933d155c10ba775b8dfa60a2dc5696b4b472c14b252dc0891f956e70264be87c3d5d4271e929a4fc4b1a68a6902814cee'
             'a837946dd24d7945c1962a695f1f31965f3ceb6927f52cd08fd51b8db138b7a888bbeab69243f5c8468a7bd7ccd47f5dbdb48a1ca81264866c1ebb7d88628f88'
Risk 0/5 · Safe PKGBUILD
Result #6960

Comment

The change only adds a new SHA-512 checksum entry in PKGBUILD. There is no evidence of altered source URLs, build commands, install scripts, or packaging logic, and the diff does not introduce any executable code or persistence mechanism. This looks like a routine integrity update for an additional source artifact, with no security red flags in the reviewed hunk.

@@ -57,6 +60,7 @@ sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc50677
             'c577d422799580e6a7b12670439dd7d68f9474ae17e96355144b7037d9a36228f22e53682f317ec7ca0f6a83d2520ede376350d02a2c072d0d195768f4115cba'
             '7f0ab1d27d08fc091e8190ff040115607eb2d0c4a6ab710f8083899c3ed44a30eb4479c0bae8a072ee54409734f9c78a10f0c2555157526e153b4578ccf8aea6'
             '556c6575f413a7e877d40de2533e65b80857d38f26cd31c2257cdde08818293e761105ac689f006829f8d18387ffbf72f5d5c9d03cb57ccab7a620bb98dbe033'
+            'c26381b9dfb46eb3025e8bace7844b366bd404b4758020d0df9f6afa67b338e11239c016f42c26746af4cf81f1d947da15501d6a1efb5fb52babbe4967d64eee'
             '7d68cfc8d088e53a7724104d4093c7b43b863caa0a937598cc4ad22161d69f2e2c15e0c9fc65813c05685d0995966a9f40cdfe86949bb921acfb3de51200453f'
             '9267dfcefbfd1e4e0f7a6661c151aa1626c15b6091766876a23e7e0dd20068a7279b0af2b38153f6ab219ccd5239ee7df0eeecaf754b5ab5dd8286508cb3be34'
             '9962feaf22b32b3fe7e3125eaafe7319a2bb45ab11482260701b06c6994104e64110466156b22ecc6cd9f493f18575ca56365ede90162b6f7d03877e7c679167'
Risk 0/5 · Safe PKGBUILD
Result #6961

Comment

The change only adds two additional SHA-512 checksums to the PKGBUILD source integrity list. There are no new sources, build commands, install scripts, or packaging logic changes in the reviewed hunk. This is a low-risk metadata update consistent with adding/refreshing upstream artifacts, with no evidence of malicious behavior in the diff itself.

@@ -65,8 +69,10 @@ sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc50677
             '89049dd8482e4bea5d79b56301c6e47c86e9e3a766ffbac7a4800511bb1f3f48dff6c8f41270956258ffeccc29da2eb9fdf9abd6a46f681de8201dbdfe49e920'
             'cd3cad8e7de596b16330a38679f927685dc97ff82349604093801268eb5fcb8d28c8fea6acf8c755c6fc0aaed9e96426137ae9c9003baab494b4b57451a24d14'
             'ae0f86c6f0b30e4a0ff5a241e6f7ffe15af0ee7bec7cebb8ac18c7f41a0701e09730c8c3dd7cadb265c2a434e5fb48c86305d41837c816b49ecb0db911f9f261'
+            '405c867ff52d835d1f00997a06cbb4f5882dcfd9f9af07bcbef7206e36b66ab90da71af48549f097d682d7aeb42c6d2e099593cb90956418811ed5700d64edf6'
             '2ced920b879b9c64e3f57269bda5803f25109bd9d0bfeb53a780329beeccb974dac614e9915d798a9678136eee3415b27b7027a7da4b1889fe1286b64ccbeafc'
-            'b753ccf7ee39231e07aad908f907e1a8314f4c055af317b21add6a438dcc1c8b21da027debe5ddda5229f5c250a724a2bb46b739bd2e70633dd08dca19ea7d99')
+            'b753ccf7ee39231e07aad908f907e1a8314f4c055af317b21add6a438dcc1c8b21da027debe5ddda5229f5c250a724a2bb46b739bd2e70633dd08dca19ea7d99'
+            'b436d5fa3a0744e37f6426dfaa95c783c5345e9f03e92a3efaf7f7d30087ec091bd12e040610ea0994bc93d26c194437f621ec39b93acf030d2e05e31a9d4399')
 
 create_links() {
     # create soname links
Risk 0/5 · Safe PKGBUILD
Result #6962

Comment

The change only adds three upstream-style patch files to support newer kernels/Clang and wires them into prepare(). I inspected the added patches: they are straightforward compatibility fixes (timer_delete_sync shim, DRM API rename handling, and Clang build cleanups) with no signs of network access, privilege escalation, persistence, or embedded binaries. The PKGBUILD changes are limited to adding local patch sources and updating checksums; no suspicious external fetches or build-time downloads were introduced. Overall this looks like a routine maintenance update with low security risk.

@@ -103,7 +109,10 @@ prepare() {
     
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.13.patch"
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.14.patch"
+    
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.15.patch"
+    patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.15-followup.patch"
+    
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.17.patch"
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.19-part1.patch"
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.19-part2.patch"
Risk 0/5 · Safe PKGBUILD
Result #6963

Comment

The change only adds additional upstream-style kernel compatibility patches to the PKGBUILD and updates their checksums. I did not see any new network fetches, executable install scripts, privilege escalation, or suspicious packaging behavior in the diff. The added patches are local source files already in the package and appear to be straightforward kernel API compatibility fixes (Linux 7.4 and Clang support).

@@ -116,8 +125,12 @@ prepare() {
 
     patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-7.3.patch"
     
+    patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-7.4.patch"
+    
     patch -p1 -i "${srcdir}/disable-objtool-override.patch"
     patch -p1 -i "${srcdir}/enable-drm-modeset-by-default.patch"
+    
+    patch -p1 -i "${srcdir}/nvidia-470xx-fix-clang.patch"
 
     sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf
     sed -i 's/__JOBS/`nproc`/' dkms.conf
Risk 0/5 · Safe nvidia-470xx-fix-clang.patch
Result #6964

Comment

The patch is a straightforward Clang compatibility fix: it removes an unnecessary -MD from kernel module flags, updates several K&R-style function declarations to proper prototypes to satisfy stricter warnings, and adjusts the compiler-version conftest to use Clang-specific version macros when the detected compiler is Clang. I do not see any supply-chain, persistence, privilege-escalation, or network-related behavior introduced here. The changes are limited to build-time checks and function signatures, with no new execution paths or external fetches.

@@ -0,0 +1,525 @@
+From 54b6a978b64c5c1f9c99a9a82ed0e2e8e402d2e7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
+Date: Sun, 25 Oct 2026 17:29:13 +0000
+Subject: [PATCH] Fix build with Clang
+
+We need to fix 3 issues:
+- Clang seems to treat -Wstrict-prototypes more strictly than GCC,
+  fix the actual root issue.
+- For Clang, we can't use __GNUC__ to the check that the driver
+  is built with the same compiler version as the kernel.
+- Remove the -MD argument Clang complains about.
+  As far as I can't tell, it doesn't serve any purpose anymore.
+---
+ Kbuild                               |  2 +-
+ conftest.sh                          | 50 +++++++++++++++++-----------
+ nvidia-uvm/uvm_common.c              |  2 +-
+ nvidia-uvm/uvm_gpu_access_counters.c |  4 +--
+ nvidia-uvm/uvm_lock.c                |  2 +-
+ nvidia-uvm/uvm_migrate.c             |  4 +--
+ nvidia-uvm/uvm_migrate_pageable.c    |  4 +--
+ nvidia-uvm/uvm_perf_heuristics.c     |  4 +--
+ nvidia-uvm/uvm_perf_prefetch.c       |  4 +--
+ nvidia-uvm/uvm_perf_thrashing.c      |  4 +--
+ nvidia-uvm/uvm_procfs.c              |  8 ++---
+ nvidia-uvm/uvm_push.c                |  4 +--
+ nvidia-uvm/uvm_thread_context.c      |  2 +-
+ nvidia-uvm/uvm_tools.c               |  2 +-
+ nvidia/nvlink_linux.c                |  2 +-
+ nvidia/os-interface.c                |  6 ++--
+ 16 files changed, 57 insertions(+), 47 deletions(-)
+
+diff --git a/Kbuild b/Kbuild
+index 9381ab1..70e12e8 100644
+--- a/Kbuild
++++ b/Kbuild
+@@ -75,7 +75,7 @@ $(foreach _module, $(NV_KERNEL_MODULES), \
+ 
+ ccflags-y += -I$(src)/common/inc
+ ccflags-y += -I$(src)
+-ccflags-y += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-format-extra-args
++ccflags-y += -Wall $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-format-extra-args
+ ccflags-y += -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"470.256.02\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE
+ ccflags-y += $(call cc-option,-Werror=undef,)
+ ccflags-y += -DNV_SPECTRE_V2=$(NV_SPECTRE_V2)
+diff --git a/conftest.sh b/conftest.sh
+index f49cb58..27d9fb7 100755
+--- a/conftest.sh
++++ b/conftest.sh
+@@ -1047,7 +1047,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/mdev.h>
+-            void conftest_mdev_uuid() {
++            void conftest_mdev_uuid(void) {
+                 mdev_uuid();
+             }"
+ 
+@@ -1080,7 +1080,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/mdev.h>
+-            void conftest_mdev_dev() {
++            void conftest_mdev_dev(void) {
+                 mdev_dev();
+             }"
+ 
+@@ -1097,7 +1097,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/mdev.h>
+-            void conftest_mdev_get_type_group_id() {
++            void conftest_mdev_get_type_group_id(void) {
+                 mdev_get_type_group_id();
+             }"
+ 
+@@ -1130,7 +1130,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/mdev.h>
+-            void conftest_mdev_parent_dev() {
++            void conftest_mdev_parent_dev(void) {
+                 mdev_parent_dev();
+             }"
+ 
+@@ -1147,7 +1147,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/mdev.h>
+-            void conftest_mdev_from_dev() {
++            void conftest_mdev_from_dev(void) {
+                 mdev_from_dev();
+             }"
+ 
+@@ -1164,7 +1164,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/mdev.h>
+-            void conftest_mdev_set_iommu_device() {
++            void conftest_mdev_set_iommu_device(void) {
+                 mdev_set_iommu_device();
+             }"
+ 
+@@ -1199,7 +1199,7 @@ compile_test() {
+             CODE="
+             #include <linux/pci.h>
+             #include <linux/msi.h>
+-            void conftest_pci_irq_vector_helpers() {
++            void conftest_pci_irq_vector_helpers(void) {
+                 pci_alloc_irq_vectors();
+                 pci_free_irq_vectors ();
+             }"
+@@ -1700,7 +1700,7 @@ compile_test() {
+                 echo "#define NV_LINUX_OF_H_USABLE" | append_conftest "generic"
+                 CODE="
+                 #include <linux/of.h>
+-                void conftest_of_get_property() {
++                void conftest_of_get_property(void) {
+                     of_get_property();
+                 }"
+ 
+@@ -1734,7 +1734,7 @@ compile_test() {
+                 echo "#define NV_LINUX_OF_H_USABLE" | append_conftest "generic"
+                 CODE="
+                 #include <linux/of.h>
+-                void conftest_of_find_node_by_phandle() {
++                void conftest_of_find_node_by_phandle(void) {
+                     of_find_node_by_phandle();
+                 }"
+ 
+@@ -1772,7 +1772,7 @@ compile_test() {
+                 #include <linux/version.h>
+                 #include <linux/utsname.h>
+                 #include <linux/of.h>
+-                void conftest_of_node_to_nid() {
++                void conftest_of_node_to_nid(void) {
+                     of_node_to_nid();
+                 }"
+ 
+@@ -1792,7 +1792,7 @@ compile_test() {
+             #
+             CODE="
+             #include <linux/pci.h>
+-            void conftest_pnv_pci_get_npu_dev() {
++            void conftest_pnv_pci_get_npu_dev(void) {
+                 pnv_pci_get_npu_dev();
+             }"
+ 
+@@ -1808,7 +1808,7 @@ compile_test() {
+             #
+             CODE="
+             #include <linux/mm.h>
+-            void conftest_node_end_pfn() {
++            void conftest_node_end_pfn(void) {
+                 node_end_pfn();
+             }"
+ 
+@@ -1899,7 +1899,7 @@ compile_test() {
+             #
+             CODE="
+             #include <linux/mm.h>
+-            void conftest_vm_insert_pfn_prot() {
++            void conftest_vm_insert_pfn_prot(void) {
+                 vm_insert_pfn_prot();
+             }"
+ 
+@@ -1915,7 +1915,7 @@ compile_test() {
+             #
+             CODE="
+             #include <linux/mm.h>
+-            void conftest_vmf_insert_pfn_prot() {
++            void conftest_vmf_insert_pfn_prot(void) {
+                 vmf_insert_pfn_prot();
+             }"
+ 
+@@ -2278,7 +2278,7 @@ compile_test() {
+             #
+             CODE="
+             #include <linux/vmalloc.h>
+-            void conftest_vzalloc() {
++            void conftest_vzalloc(void) {
+                 vzalloc();
+             }"
+ 
+@@ -2417,7 +2417,7 @@ compile_test() {
+             #
+             CODE="
+             #include <linux/bitmap.h>
+-            void conftest_bitmap_clear() {
++            void conftest_bitmap_clear(void) {
+                 bitmap_clear();
+             }"
+ 
+@@ -2434,7 +2434,7 @@ compile_test() {
+             CODE="
+             #include <linux/types.h>
+             #include <linux/pci.h>
+-            void conftest_pci_stop_and_remove_bus_device() {
++            void conftest_pci_stop_and_remove_bus_device(void) {
+                 pci_stop_and_remove_bus_device();
+             }"
+ 
+@@ -2451,7 +2451,7 @@ compile_test() {
+             CODE="
+             #include <linux/types.h>
+             #include <linux/pci.h>
+-            void conftest_pci_remove_bus_device() {
++            void conftest_pci_remove_bus_device(void) {
+                 pci_remove_bus_device();
+             }"
+ 
+@@ -3787,7 +3787,7 @@ compile_test() {
+                 echo "#define NV_LINUX_OF_H_USABLE" | append_conftest "generic"
+                 CODE="
+                 #include <linux/of.h>
+-                void conftest_of_find_matching_node() {
++                void conftest_of_find_matching_node(void) {
+                     of_find_matching_node();
+                 }"
+ 
+@@ -5231,8 +5231,18 @@ case "$5" in
+         kernel_cc_major=`echo ${kernel_cc_version} | cut -d '.' -f 1`
+         kernel_cc_minor=`echo ${kernel_cc_version} | cut -d '.' -f 2`
+ 
++        # For GCC, __GNUC__ / __GNUC_MINOR__ matches the compiler version.
++        # For Clang, it doesn't, so we need to check against its macros directly.
++        if echo "${kernel_cc_string}" | grep -q clang; then
++            cc_major_macro=__clang_major__
++            cc_minor_macro=__clang_minor__
++        else
++            cc_major_macro=__GNUC__
++            cc_minor_macro=__GNUC_MINOR__
++        fi
++
+         echo "
+-        #if (__GNUC__ != ${kernel_cc_major}) || (__GNUC_MINOR__ != ${kernel_cc_minor})
++        #if (${cc_major_macro} != ${kernel_cc_major}) || (${cc_minor_macro} != ${kernel_cc_minor})
+         #error \"cc version mismatch\"
+         #endif
+         " > conftest$$.c
+diff --git a/nvidia-uvm/uvm_common.c b/nvidia-uvm/uvm_common.c
+index 36e6280..b357304 100644
+--- a/nvidia-uvm/uvm_common.c
++++ b/nvidia-uvm/uvm_common.c
+@@ -34,7 +34,7 @@ static int uvm_debug_prints = UVM_IS_DEBUG() || UVM_IS_DEVELOP();
+ module_param(uvm_debug_prints, int, S_IRUGO|S_IWUSR);
+ MODULE_PARM_DESC(uvm_debug_prints, "Enable uvm debug prints.");
+ 
+-bool uvm_debug_prints_enabled()
++bool uvm_debug_prints_enabled(void)
+ {
+     return uvm_debug_prints != 0;
+ }
+diff --git a/nvidia-uvm/uvm_gpu_access_counters.c b/nvidia-uvm/uvm_gpu_access_counters.c
+index 25891b4..b55a8c7 100644
+--- a/nvidia-uvm/uvm_gpu_access_counters.c
++++ b/nvidia-uvm/uvm_gpu_access_counters.c
+@@ -1524,7 +1524,7 @@ bool uvm_va_space_has_access_counter_migrations(uvm_va_space_t *va_space)
+     return atomic_read(&va_space_access_counters->params.enable_mimc_migrations);
+ }
+ 
+-NV_STATUS uvm_perf_access_counters_init()
++NV_STATUS uvm_perf_access_counters_init(void)
+ {
+     uvm_perf_module_init("perf_access_counters",
+                          UVM_PERF_MODULE_TYPE_ACCESS_COUNTERS,
+@@ -1535,7 +1535,7 @@ NV_STATUS uvm_perf_access_counters_init()
+     return NV_OK;
+ }
+ 
+-void uvm_perf_access_counters_exit()
++void uvm_perf_access_counters_exit(void)
+ {
+ }
+ 
+diff --git a/nvidia-uvm/uvm_lock.c b/nvidia-uvm/uvm_lock.c
+index b77a22e..fc0b802 100644
+--- a/nvidia-uvm/uvm_lock.c
++++ b/nvidia-uvm/uvm_lock.c
+@@ -334,7 +334,7 @@ bool __uvm_check_all_unlocked(uvm_thread_context_lock_t *uvm_context)
+     return false;
+ }
+ 
+-bool __uvm_thread_check_all_unlocked()
++bool __uvm_thread_check_all_unlocked(void)
+ {
+     return __uvm_check_all_unlocked(uvm_thread_context_lock_get());
+ }
+diff --git a/nvidia-uvm/uvm_migrate.c b/nvidia-uvm/uvm_migrate.c
+index 1da7d1d..023eb77 100644
+--- a/nvidia-uvm/uvm_migrate.c
++++ b/nvidia-uvm/uvm_migrate.c
+@@ -792,7 +792,7 @@ static NV_STATUS uvm_migrate_release_user_sem(const UVM_MIGRATE_PARAMS *params,
+     return NV_OK;
+ }
+ 
+-NV_STATUS uvm_migrate_init()
++NV_STATUS uvm_migrate_init(void)
+ {
+     NV_STATUS status = uvm_migrate_pageable_init();
+     if (status != NV_OK)
+@@ -818,7 +818,7 @@ NV_STATUS uvm_migrate_init()
+     return NV_OK;
+ }
+ 
+-void uvm_migrate_exit()
++void uvm_migrate_exit(void)
+ {
+     uvm_migrate_pageable_exit();
+ }
+diff --git a/nvidia-uvm/uvm_migrate_pageable.c b/nvidia-uvm/uvm_migrate_pageable.c
+index 63aec6f..179a21e 100644
+--- a/nvidia-uvm/uvm_migrate_pageable.c
++++ b/nvidia-uvm/uvm_migrate_pageable.c
+@@ -976,7 +976,7 @@ NV_STATUS uvm_migrate_pageable(uvm_va_space_t *va_space,
+     return status;
+ }
+ 
+-NV_STATUS uvm_migrate_pageable_init()
++NV_STATUS uvm_migrate_pageable_init(void)
+ {
+     g_uvm_migrate_vma_state_cache = NV_KMEM_CACHE_CREATE("migrate_vma_state_t", migrate_vma_state_t);
+     if (!g_uvm_migrate_vma_state_cache)
+@@ -985,7 +985,7 @@ NV_STATUS uvm_migrate_pageable_init()
+     return NV_OK;
+ }
+ 
+-void uvm_migrate_pageable_exit()
++void uvm_migrate_pageable_exit(void)
+ {
+     kmem_cache_destroy_safe(&g_uvm_migrate_vma_state_cache);
+ }
+diff --git a/nvidia-uvm/uvm_perf_heuristics.c b/nvidia-uvm/uvm_perf_heuristics.c
+index 392f914..ffb96ea 100644
+--- a/nvidia-uvm/uvm_perf_heuristics.c
++++ b/nvidia-uvm/uvm_perf_heuristics.c
+@@ -28,7 +28,7 @@
+ #include "uvm_gpu_access_counters.h"
+ #include "uvm_va_space.h"
+ 
+-NV_STATUS uvm_perf_heuristics_init()
++NV_STATUS uvm_perf_heuristics_init(void)
+ {
+     NV_STATUS status;
+ 
+@@ -47,7 +47,7 @@ NV_STATUS uvm_perf_heuristics_init()
+     return NV_OK;
+ }
+ 
+-void uvm_perf_heuristics_exit()
++void uvm_perf_heuristics_exit(void)
+ {
+     uvm_perf_access_counters_exit();
+     uvm_perf_prefetch_exit();
+diff --git a/nvidia-uvm/uvm_perf_prefetch.c b/nvidia-uvm/uvm_perf_prefetch.c
+index ec41239..bba948f 100644
+--- a/nvidia-uvm/uvm_perf_prefetch.c
++++ b/nvidia-uvm/uvm_perf_prefetch.c
+@@ -460,7 +460,7 @@ void uvm_perf_prefetch_unload(uvm_va_space_t *va_space)
+     uvm_perf_module_unload(&g_module_prefetch, va_space);
+ }
+ 
+-NV_STATUS uvm_perf_prefetch_init()
++NV_STATUS uvm_perf_prefetch_init(void)
+ {
+     g_uvm_perf_prefetch_enable = uvm_perf_prefetch_enable != 0;
+ 
+@@ -498,7 +498,7 @@ NV_STATUS uvm_perf_prefetch_init()
+     return NV_OK;
+ }
+ 
+-void uvm_perf_prefetch_exit()
++void uvm_perf_prefetch_exit(void)
+ {
+     if (!g_uvm_perf_prefetch_enable)
+         return;
+diff --git a/nvidia-uvm/uvm_perf_thrashing.c b/nvidia-uvm/uvm_perf_thrashing.c
+index 00add34..f4dac45 100644
+--- a/nvidia-uvm/uvm_perf_thrashing.c
++++ b/nvidia-uvm/uvm_perf_thrashing.c
+@@ -1952,7 +1952,7 @@ NV_STATUS uvm_perf_thrashing_register_gpu(uvm_va_space_t *va_space, uvm_gpu_t *g
+     return NV_OK;
+ }
+ 
+-NV_STATUS uvm_perf_thrashing_init()
++NV_STATUS uvm_perf_thrashing_init(void)
+ {
+     NV_STATUS status;
+ 
+@@ -2011,7 +2011,7 @@ error:
+     return status;
+ }
+ 
+-void uvm_perf_thrashing_exit()
++void uvm_perf_thrashing_exit(void)
+ {
+     cpu_thrashing_stats_exit();
+ 
+diff --git a/nvidia-uvm/uvm_procfs.c b/nvidia-uvm/uvm_procfs.c
+index 8932d14..e2a6203 100644
+--- a/nvidia-uvm/uvm_procfs.c
++++ b/nvidia-uvm/uvm_procfs.c
+@@ -46,7 +46,7 @@ static struct proc_dir_entry *uvm_proc_dir;
+ static struct proc_dir_entry *uvm_proc_gpus;
+ static struct proc_dir_entry *uvm_proc_cpu;
+ 
+-NV_STATUS uvm_procfs_init()
++NV_STATUS uvm_procfs_init(void)
+ {
+     if (!uvm_procfs_is_enabled())
+         return NV_OK;
+@@ -66,7 +66,7 @@ NV_STATUS uvm_procfs_init()
+     return NV_OK;
+ }
+ 
+-void uvm_procfs_exit()
++void uvm_procfs_exit(void)
+ {
+     uvm_procfs_destroy_entry(uvm_proc_dir);
+ }
+@@ -95,12 +95,12 @@ void uvm_procfs_destroy_entry(struct proc_dir_entry *entry)
+     procfs_destroy_entry_with_root(entry, entry);
+ }
+ 
+-struct proc_dir_entry *uvm_procfs_get_gpu_base_dir()
++struct proc_dir_entry *uvm_procfs_get_gpu_base_dir(void)
+ {
+     return uvm_proc_gpus;
+ }
+ 
+-struct proc_dir_entry *uvm_procfs_get_cpu_base_dir()
++struct proc_dir_entry *uvm_procfs_get_cpu_base_dir(void)
+ {
+     return uvm_proc_cpu;
+ }
+diff --git a/nvidia-uvm/uvm_push.c b/nvidia-uvm/uvm_push.c
+index c1d7cb7..8b04e7f 100644
+--- a/nvidia-uvm/uvm_push.c
++++ b/nvidia-uvm/uvm_push.c
+@@ -242,12 +242,12 @@ NV_STATUS __uvm_push_begin_acquire_on_channel_with_info(uvm_channel_t *channel,
+     return status;
+ }
+ 
+-bool uvm_push_info_is_tracking_descriptions()
++bool uvm_push_info_is_tracking_descriptions(void)
+ {
+     return uvm_debug_enable_push_desc != 0;
+ }
+ 
+-bool uvm_push_info_is_tracking_acquires()
++bool uvm_push_info_is_tracking_acquires(void)
+ {
+     return uvm_debug_enable_push_acquire_info != 0;
+ }
+diff --git a/nvidia-uvm/uvm_thread_context.c b/nvidia-uvm/uvm_thread_context.c
+index 93103be..5fc9687 100644
+--- a/nvidia-uvm/uvm_thread_context.c
++++ b/nvidia-uvm/uvm_thread_context.c
+@@ -101,7 +101,7 @@ static DEFINE_PER_CPU(uvm_thread_context_lock_acquired_t, interrupt_thread_conte
+ static void thread_context_non_interrupt_remove(uvm_thread_context_t *thread_context,
+                                                 uvm_thread_context_table_entry_t *thread_context_entry);
+ 
+-bool uvm_thread_context_wrapper_is_used()
++bool uvm_thread_context_wrapper_is_used(void)
+ {
+     // The wrapper contains lock information. While uvm_record_lock_X
+     // routines are a no-op outside of debug mode, unit tests do invoke their
+diff --git a/nvidia-uvm/uvm_tools.c b/nvidia-uvm/uvm_tools.c
+index f0aceaf..7512da3 100644
+--- a/nvidia-uvm/uvm_tools.c
++++ b/nvidia-uvm/uvm_tools.c
+@@ -2141,7 +2141,7 @@ NV_STATUS uvm_api_tools_get_processor_uuid_table(UVM_TOOLS_GET_PROCESSOR_UUID_TA
+     return NV_OK;
+ }
+ 
+-void uvm_tools_flush_events()
++void uvm_tools_flush_events(void)
+ {
+     tools_schedule_completed_events();
+ 
+diff --git a/nvidia/nvlink_linux.c b/nvidia/nvlink_linux.c
+index 16dafad..b4c6242 100644
+--- a/nvidia/nvlink_linux.c
++++ b/nvidia/nvlink_linux.c
+@@ -571,7 +571,7 @@ void nvlink_assert(int cond)
+     }
+ }
+ 
+-void * nvlink_allocLock()
++void * nvlink_allocLock(void)
+ {
+     struct semaphore *sema;
+ 
+diff --git a/nvidia/os-interface.c b/nvidia/os-interface.c
+index bd5904e..bf7230d 100644
+--- a/nvidia/os-interface.c
++++ b/nvidia/os-interface.c
+@@ -1078,14 +1078,14 @@ void NV_API_CALL os_dbg_breakpoint(void)
+ #endif // DEBUG
+ }
+ 
+-NvU32 NV_API_CALL os_get_cpu_number()
++NvU32 NV_API_CALL os_get_cpu_number(void)
+ {
+     NvU32 cpu_id = get_cpu();
+     put_cpu();
+     return cpu_id;
+ }
+ 
+-NvU32 NV_API_CALL os_get_cpu_count()
++NvU32 NV_API_CALL os_get_cpu_count(void)
+ {
+     return NV_NUM_CPUS();
+ }
+@@ -1100,7 +1100,7 @@ NvBool NV_API_CALL os_is_efi_enabled(void)
+     return NV_EFI_ENABLED();
+ }
+ 
+-void NV_API_CALL os_dump_stack()
++void NV_API_CALL os_dump_stack(void)
+ {
+     dump_stack();
+ }
+-- 
+2.56.0
+
Risk 0/5 · Safe nvidia-470xx-fix-linux-6.15-followup.patch
Result #6965

Comment

The patch is a straightforward kernel-compatibility shim for `timer_delete_sync`, adding a conftest probe and a fallback macro to `del_timer_sync` when the newer API is absent. It only touches build-time feature detection and a local header, with no network access, privilege changes, persistence, or packaging-side execution. The only risk is a potential correctness mismatch if the shim is used on kernels where `timer_delete_sync` semantics differ from `del_timer_sync`, but that is a functional compatibility concern rather than a security issue.

@@ -0,0 +1,115 @@
+From b491c4914d6d51c0b46a02c24f91a38d2a7290af Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
+Date: Sun, 18 Oct 2026 19:47:42 +0000
+Subject: [PATCH] Shim timer_delete_sync for old kernels
+
+`timer_delete_sync` wasn't originally present in 5.10 / 5.15 / 6.1
+kernel LTS series, rather it was later backported to them.
+
+So, while the driver works on the latest patches of supported kernels,
+this breaks building on EOL kernels for testing (and perhaps even some
+supported LTS distro that never backported `timer_delete_sync`).
+
+For those cases, detect it via conftest and add a shim.
+With this patch, the driver builds for any reasonably supported kernel.
+---
+ common/inc/nv-timer.h                 |  5 +++++
+ conftest.sh                           | 16 ++++++++++++++++
+ nvidia-modeset/nvidia-modeset-linux.c |  1 +
+ nvidia-modeset/nvidia-modeset.Kbuild  |  1 +
+ nvidia-uvm/nvidia-uvm.Kbuild          |  1 +
+ nvidia/nvidia.Kbuild                  |  1 +
+ 6 files changed, 25 insertions(+)
+
+diff --git a/common/inc/nv-timer.h b/common/inc/nv-timer.h
+index adf559c..ab5b531 100644
+--- a/common/inc/nv-timer.h
++++ b/common/inc/nv-timer.h
+@@ -64,4 +64,9 @@ static inline void nv_timer_setup(struct nv_timer *nv_timer,
+ #endif
+ }
+ 
++#if !defined(NV_TIMER_DELETE_SYNC_PRESENT)
++// Rel. commit "treewide: Switch/rename to timer_delete[_sync]()" (Thomas Gleixner, 5 Apr 2025)
++#define timer_delete_sync(timer) del_timer_sync(timer)
++#endif
++
+ #endif // __NV_TIMER_H__
+diff --git a/conftest.sh b/conftest.sh
+index d41a22b..f49cb58 100755
+--- a/conftest.sh
++++ b/conftest.sh
+@@ -3297,6 +3297,22 @@ compile_test() {
+             compile_check_conftest "$CODE" "NV_TIMER_SETUP_PRESENT" "" "functions"
+         ;;
+ 
++        timer_delete_sync)
++            #
++            # Determine if the function timer_delete_sync() is present.
++            #
++            # Added by commit "treewide: Switch/rename to timer_delete[_sync]()"
++            # (Thomas Gleixner, 5 Apr 2025), and backported to some stable
++            # kernels. Older kernels only have del_timer_sync().
++            #
++            CODE="
++            #include <linux/timer.h>
++            int conftest_timer_delete_sync(void) {
++                return timer_delete_sync();
++            }"
++            compile_check_conftest "$CODE" "NV_TIMER_DELETE_SYNC_PRESENT" "" "functions"
++        ;;
++
+         radix_tree_replace_slot)
+             #
+             # Determine if the radix_tree_replace_slot() function is
+diff --git a/nvidia-modeset/nvidia-modeset-linux.c b/nvidia-modeset/nvidia-modeset-linux.c
+index b5b33d7..dd39257 100644
+--- a/nvidia-modeset/nvidia-modeset-linux.c
++++ b/nvidia-modeset/nvidia-modeset-linux.c
+@@ -39,6 +39,7 @@
+ #include "nv-kthread-q.h"
+ 
+ #include "nv-time.h"
++#include "nv-timer.h"
+ 
+ #include <linux/sched.h>
+ #if defined(NV_LINUX_SCHED_SIGNAL_H_PRESENT)
+diff --git a/nvidia-modeset/nvidia-modeset.Kbuild b/nvidia-modeset/nvidia-modeset.Kbuild
+index d417c28..d008026 100644
+--- a/nvidia-modeset/nvidia-modeset.Kbuild
++++ b/nvidia-modeset/nvidia-modeset.Kbuild
+@@ -97,6 +97,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += pde_data
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += PDE_DATA
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += proc_remove
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_setup
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_delete_sync
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += kthread_create_on_node
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += list_is_first
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += ktime_get_real_ts64
+diff --git a/nvidia-uvm/nvidia-uvm.Kbuild b/nvidia-uvm/nvidia-uvm.Kbuild
+index c9e8740..8bb9558 100644
+--- a/nvidia-uvm/nvidia-uvm.Kbuild
++++ b/nvidia-uvm/nvidia-uvm.Kbuild
+@@ -92,6 +92,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += vmf_insert_pfn
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += cpumask_of_node
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += list_is_first
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_setup
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_delete_sync
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += acquire_console_sem
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += console_lock
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_bus_address
+diff --git a/nvidia/nvidia.Kbuild b/nvidia/nvidia.Kbuild
+index 62689f6..3b91f89 100644
+--- a/nvidia/nvidia.Kbuild
++++ b/nvidia/nvidia.Kbuild
+@@ -143,6 +143,7 @@ NV_CONFTEST_FUNCTION_COMPILE_TESTS += dma_map_resource
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += backlight_device_register
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += get_backlight_device_by_name
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_setup
++NV_CONFTEST_FUNCTION_COMPILE_TESTS += timer_delete_sync
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += pci_enable_msix_range
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += kernel_read_has_pointer_pos_arg
+ NV_CONFTEST_FUNCTION_COMPILE_TESTS += kernel_write
+-- 
+2.56.0
+
Risk 0/5 · Safe nvidia-470xx-fix-linux-7.4.patch
Result #6966

Comment

The patch is a straightforward kernel compatibility fix in a source patch: it conditionally swaps deprecated DRM .reset callbacks for .atomic_create_state based on LINUX_VERSION_CODE, and adds the standard <linux/version.h> include. There are no signs of network access, privilege escalation, persistence, or packaging-time execution. The only risk is the usual one for out-of-tree kernel patches: if the version guard is wrong, it could break the build on some kernel versions, but that is a correctness/compatibility issue rather than a security concern.

@@ -0,0 +1,55 @@
+From ed74c4279b0bba134b40fa8709bfb00079e9e2ec Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com>
+Date: Sun, 20 Sep 2026 10:10:06 +0000
+Subject: [PATCH] Tentative fix for NVIDIA 470.256.02 driver for Linux 7.4-rc1
+
+---
+ nvidia-drm/nvidia-drm-crtc.c | 15 +++++++++++++--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/nvidia-drm/nvidia-drm-crtc.c b/nvidia-drm/nvidia-drm-crtc.c
+index c74f168..dc054c5 100644
+--- a/nvidia-drm/nvidia-drm-crtc.c
++++ b/nvidia-drm/nvidia-drm-crtc.c
+@@ -21,6 +21,7 @@
+  */
+ 
+ #include "nvidia-drm-conftest.h" /* NV_DRM_ATOMIC_MODESET_AVAILABLE */
++#include <linux/version.h>
+ 
+ #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE)
+ 
+@@ -439,9 +440,14 @@ static const struct drm_plane_funcs nv_plane_funcs = {
+     .update_plane           = drm_atomic_helper_update_plane,
+     .disable_plane          = drm_atomic_helper_disable_plane,
+     .destroy                = nv_drm_plane_destroy,
+-    .reset                  = drm_atomic_helper_plane_reset,
+     .atomic_get_property    = nv_drm_plane_atomic_get_property,
+     .atomic_set_property    = nv_drm_plane_atomic_set_property,
++// Rel. commit "drm/plane: Remove reset" (Maxime Ripard, 16 Sep 2026)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(7, 4, 0)
++    .reset                  = drm_atomic_helper_plane_reset,
++#else
++    .atomic_create_state    = drm_atomic_helper_plane_create_state,
++#endif
+     .atomic_duplicate_state = nv_drm_plane_atomic_duplicate_state,
+     .atomic_destroy_state   = nv_drm_plane_atomic_destroy_state,
+ #if defined(NV_DRM_UNIVERSAL_PLANE_INIT_HAS_FORMAT_MODIFIERS_ARG)
+@@ -557,8 +563,13 @@ static void nv_drm_atomic_crtc_destroy_state(struct drm_crtc *crtc,
+ static struct drm_crtc_funcs nv_crtc_funcs = {
+     .set_config             = drm_atomic_helper_set_config,
+     .page_flip              = drm_atomic_helper_page_flip,
+-    .reset                  = drm_atomic_helper_crtc_reset,
+     .destroy                = nv_drm_crtc_destroy,
++// Rel. commit "drm/crtc: Remove reset" (Maxime Ripard, 15 Sep 2026)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(7, 4, 0)
++    .reset                  = drm_atomic_helper_crtc_reset,
++#else
++    .atomic_create_state    = drm_atomic_helper_crtc_create_state,
++#endif
+     .atomic_duplicate_state = nv_drm_atomic_crtc_duplicate_state,
+     .atomic_destroy_state   = nv_drm_atomic_crtc_destroy_state,
+ };
+-- 
+2.55.0
+