nvidia-open-egpu-dkms
nvidia-open-egpu
scanned 2026-10-29 00:13:55.229276
The package downloads the official NVIDIA open kernel module source from download.nvidia.com, which is NVIDIA's legitimate domain, and applies known patches; building kernel modules from official vendor sources is standard practice and not inherently dangerous.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads the official NVIDIA open kernel module source from download.nvidia.com, which is NVIDIA's legitimate domain, and applies known patches; building kernel modules from official vendor sources is standard practice and not inherently dangerous.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:24
source=("https://download.nvidia.com/XFree86/NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-${pkgver}.tar.xz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Bohdan Dymchenko <dmbohdan@gmail.com>
# NOTE: This package requires headers matching your kernel.
# For linux: install linux-headers
# For linux-lts: install linux-lts-headers
# For linux-zen: install linux-zen-headers
# For linux-cachyos: install linux-cachyos-headers
# For linux-cachyos-lts: install linux-cachyos-lts-headers
# etc.
pkgbase=nvidia-open-egpu
pkgname=(
'nvidia-open-egpu'
'nvidia-open-egpu-dkms')
pkgver=615.78.08
pkgrel=5
epoch=1
pkgdesc='NVIDIA open kernel modules with thunderbolt 4 force egpu and hotplug patches'
arch=('x86_64')
url='https://github.com/NVIDIA/open-gpu-kernel-modules'
license=('MIT AND GPL-2.0-only')
makedepends=() # Requires kernel headers matching your kernel (linux-headers, linux-cachyos-headers, etc.)
options=('!buildflags' '!lto' '!strip')
install=nvidia-open-egpu.install
source=("https://download.nvidia.com/XFree86/NVIDIA-kernel-module-source/NVIDIA-kernel-module-source-${pkgver}.tar.xz"
'110-nvidia-open-change-dkms-conf.patch'
'120-nvidia-open-linux-rt-gift.patch'
'130-nvidia-open-reproducible-build.patch'
'140-nvidia-open-gcc-sls.patch'
'160-nvidia-open-thunderbolt-egpu-hotplug.patch'
'170-nvidia-open-force-external-gpu.patch'
'180-nvidia-open-bar1-unmap-overhang.patch'
'190-nvidia-open-bar1-kernel-client-contiguous.patch'
'200-nvidia-open-rebar-failure-nonfatal.patch'
'210-nvidia-open-bar1-mapping-reuse.patch'
'220-nvidia-open-procfs-external-gpu.patch'
'nvidia-egpu-hotplug.rules'
'nvidia-egpu-hotplug.sh')
sha256sums=('17b4f3d195a5ab1fad9aa1f195c9d3a4ad03aceda18bb9fb68a8bd33d7a000f6'
'70a13159e43b78df1fb03601cd594d9c39893e8351b0318daa7a3cf1fd692738'
'b0f62a78f749ff3a104197c12b6d885352adcf35fb5ecf00c4cd4c51b4195e45'
'5340f33cdd19024a4501fee3d475af152c39f277d44422c65d447db263a0d501'
'22aa6f5be5d3c23762230df4322b1edabb16217c6b40b95b63fbe92753c33e30'
'3f01480b81af4708b755941a2cdc8e580193eac9d9f8d58abc4d267f84831c79'
'fb18cacdf323f985208dae3fcd174c9f6aad42a77d06229be082849a9d7d9f42'
'7762f80d131ed1a8fee86f46d86d33a3a01f9a9fd1d6a66f95336df42aa0e5a1'
'954254e280f819cd14b06abb219700b9b93aee4c4e50ecd01b76297fbe064c09'
'de65235573dce384ee4b865f4164c67af84fd11a78c4f58f7ce8d52d77c12a91'
'85c9dd29bca475e4d8d816191bb36d4a8c67f76a074c67c2928a0683ca3fef42'
'e40eb621ef6832f7bd3f577e1c041e9fc280334040f8dc4b3c8fb32d83c6648c'
'570f66dd11212511193ddadf606dcda611a72584b3bf86c6e55273a6b7945567'
'dfbdc05ccc3af945d8429b46f06f3b6b81ecf27144dd21272109f3912e7e27b0')
prepare() {
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/110-nvidia-open-change-dkms-conf.patch"
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/120-nvidia-open-linux-rt-gift.patch"
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/130-nvidia-open-reproducible-build.patch"
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/140-nvidia-open-gcc-sls.patch"
# Thunderbolt eGPU hotplug support: https://github.com/bdandy/open-gpu-kernel-modules/tree/fix/hotunplug
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/160-nvidia-open-thunderbolt-egpu-hotplug.patch"
# https://github.com/NVIDIA/open-gpu-kernel-modules/pull/984 - force eGPU mode for TB4/5 enclosures
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/170-nvidia-open-force-external-gpu.patch"
# BAR1 mapping fixes: https://github.com/NVIDIA/open-gpu-kernel-modules/pull/1354 and #1403
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/180-nvidia-open-bar1-unmap-overhang.patch"
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/190-nvidia-open-bar1-kernel-client-contiguous.patch"
# Preserve normal ReBAR attempts and continue probing if resize fails: PR #1109
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/200-nvidia-open-rebar-failure-nonfatal.patch"
# BAR1 mapping reuse cleanup from PR #1426 (source file only)
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/210-nvidia-open-bar1-mapping-reuse.patch"
# Export NVIDIA's existing eGPU classification for the hotplug handler.
patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/220-nvidia-open-procfs-external-gpu.patch"
# Substitute version placeholder in dkms.conf
sed -i "s/@@PKGVER@@/${pkgver}/" "NVIDIA-kernel-module-source-${pkgver}/kernel-open/dkms.conf"
# Kbuild emits LLVM bitcode objects for ThinLTO kernels. Select the
# matching linker for each DKMS target while retaining GNU ld for kernels
# that do not use LLD.
if ! grep -q '^MAKE\[0\].* LD=' "NVIDIA-kernel-module-source-${pkgver}/kernel-open/dkms.conf"; then
sed -i \
's| KERNEL_UNAME=${kernelver} modules"| LD=$(if grep -qs ^CONFIG_LD_IS_LLD=y /lib/modules/${kernelver}/build/.config; then echo ld.lld; else echo ld; fi) KERNEL_UNAME=${kernelver} modules"|' \
"NVIDIA-kernel-module-source-${pkgver}/kernel-open/dkms.conf"
fi
[ -d dkms-src ] && rm -rf dkms-src
cp -a "NVIDIA-kernel-module-source-${pkgver}/kernel-open" dkms-src
}
build() {
local -x KERNEL_UNAME
local _ld
# allow usage of custom kernel and building in a chroot
if [ -d "/usr/lib/modules/$(uname -r)" ]
then
KERNEL_UNAME="$(uname -r)"
else
KERNEL_UNAME="$(find /usr/lib/modules -mindepth 1 -maxdepth 1 -type d | sed -n 's|.*/||;1p')"
fi
unset -v SYSSRC
# Fix build issues with kernels that use ThinLTO (cachyos)
if grep -qs '^CONFIG_LD_IS_LLD=y' "/usr/lib/modules/${KERNEL_UNAME}/build/.config"; then
_ld=ld.lld
else
_ld=ld
fi
make -C "NVIDIA-kernel-module-source-${pkgver}" modules LD="${_ld}"
}
package_nvidia-open-egpu() {
depends=(
'libglvnd'
'linux'
"nvidia-utils>=${pkgver}")
provides=("nvidia-open=${pkgver}" 'NVIDIA-MODULE')
conflicts=('nvidia-open' 'nvidia-open-dkms' 'nvidia-open-egpu-dkms' 'NVIDIA-MODULE')
local _kernver
if [ -d "/usr/lib/modules/$(uname -r)" ]
then
_kernver="$(<"/usr/lib/modules/$(uname -r)/build/version")"
else
_kernver="$(find /usr/lib/modules -mindepth 1 -maxdepth 1 -type d | head -n1)"
_kernver="$(<"/usr/lib/modules/${_kernver##*/}/build/version")"
fi
install -D -m644 "NVIDIA-kernel-module-source-${pkgver}/kernel-open"/*.ko -t "${pkgdir}/usr/lib/modules/${_kernver}/extramodules"
install -D -m644 "NVIDIA-kernel-module-source-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
find "$pkgdir" -name '*.ko' -exec zstd --rm -19 {} +
install -D -m644 <(
printf '%s\n' \
'# Load NVIDIA modules through the eGPU udev handler.' \
'options nvidia NVreg_OpenRmEnableUnsupportedGpus=1' \
'blacklist nvidia' \
'blacklist nvidia-drm' \
'blacklist nvidia-uvm' \
'blacklist nvidia-modeset' \
'blacklist nvidia-nvlink' \
'blacklist nouveau'
) "${pkgdir}/usr/lib/modprobe.d/nvidia-open.conf"
# eGPU hotplug support: udev rules and handler script
install -D -m644 "${srcdir}/nvidia-egpu-hotplug.rules" "${pkgdir}/usr/lib/udev/rules.d/90-nvidia-egpu-hotplug.rules"
install -D -m755 "${srcdir}/nvidia-egpu-hotplug.sh" "${pkgdir}/usr/lib/nvidia-egpu/nvidia-egpu-hotplug.sh"
}
package_nvidia-open-egpu-dkms() {
pkgdesc="$(sed 's/(with Thunderbolt eGPU hotplug support/(Thunderbolt eGPU hotplug support; module sources/' <<< "$pkgdesc")"
depends=(
'dkms'
'libglvnd'
"nvidia-utils>=${pkgver}")
provides=("nvidia-open=${pkgver}" 'NVIDIA-MODULE')
conflicts=('nvidia-open' 'nvidia-open-dkms' 'nvidia-open-egpu' 'NVIDIA-MODULE')
install -D -m644 "NVIDIA-kernel-module-source-${pkgver}/src/nvidia/_out/Linux_x86_64/nv-kernel.o" \
dkms-src/nvidia/nv-kernel.o_binary
install -D -m644 "NVIDIA-kernel-module-source-${pkgver}/src/nvidia-modeset/_out/Linux_x86_64/nv-modeset-kernel.o" \
dkms-src/nvidia-modeset/nv-modeset-kernel.o_binary
install -d -m755 "${pkgdir}/usr/src"
cp -dr --no-preserve='ownership' dkms-src "${pkgdir}/usr/src/nvidia-${pkgver}"
install -D -m644 "NVIDIA-kernel-module-source-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 <(
printf '%s\n' \
'# Load NVIDIA modules through the eGPU udev handler.' \
'options nvidia NVreg_OpenRmEnableUnsupportedGpus=1' \
'blacklist nvidia' \
'blacklist nvidia-drm' \
'blacklist nvidia-uvm' \
'blacklist nvidia-modeset' \
'blacklist nvidia-nvlink' \
'blacklist nouveau'
) "${pkgdir}/usr/lib/modprobe.d/nvidia-open.conf"
# eGPU hotplug support: udev rules and handler script
install -D -m644 "${srcdir}/nvidia-egpu-hotplug.rules" "${pkgdir}/usr/lib/udev/rules.d/90-nvidia-egpu-hotplug.rules"
install -D -m755 "${srcdir}/nvidia-egpu-hotplug.sh" "${pkgdir}/usr/lib/nvidia-egpu/nvidia-egpu-hotplug.sh"
}
Changes since previous scan
--- PKGBUILD @ 2026-10-12 00:18+++ PKGBUILD @ 2026-10-29 00:13@@ -12,7 +12,7 @@ 'nvidia-open-egpu' 'nvidia-open-egpu-dkms') pkgver=615.78.08-pkgrel=4+pkgrel=5 epoch=1 pkgdesc='NVIDIA open kernel modules with thunderbolt 4 force egpu and hotplug patches' arch=('x86_64')@@ -32,6 +32,7 @@ '190-nvidia-open-bar1-kernel-client-contiguous.patch' '200-nvidia-open-rebar-failure-nonfatal.patch' '210-nvidia-open-bar1-mapping-reuse.patch'+ '220-nvidia-open-procfs-external-gpu.patch' 'nvidia-egpu-hotplug.rules' 'nvidia-egpu-hotplug.sh') sha256sums=('17b4f3d195a5ab1fad9aa1f195c9d3a4ad03aceda18bb9fb68a8bd33d7a000f6'@@ -45,8 +46,9 @@ '954254e280f819cd14b06abb219700b9b93aee4c4e50ecd01b76297fbe064c09' 'de65235573dce384ee4b865f4164c67af84fd11a78c4f58f7ce8d52d77c12a91' '85c9dd29bca475e4d8d816191bb36d4a8c67f76a074c67c2928a0683ca3fef42'- '7ce1d553e9b12d6a686c00d0a88039dc29c66fdf995b5dd5e042f169d7515682'- '74ad7d24e2dfdce1f2b52c51c2f2f85b1857d056000fa1d27f342d9aa00d410c')+ 'e40eb621ef6832f7bd3f577e1c041e9fc280334040f8dc4b3c8fb32d83c6648c'+ '570f66dd11212511193ddadf606dcda611a72584b3bf86c6e55273a6b7945567'+ 'dfbdc05ccc3af945d8429b46f06f3b6b81ecf27144dd21272109f3912e7e27b0') prepare() { patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/110-nvidia-open-change-dkms-conf.patch"@@ -66,6 +68,8 @@ patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/200-nvidia-open-rebar-failure-nonfatal.patch" # BAR1 mapping reuse cleanup from PR #1426 (source file only) patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/210-nvidia-open-bar1-mapping-reuse.patch"+ # Export NVIDIA's existing eGPU classification for the hotplug handler.+ patch -d "NVIDIA-kernel-module-source-${pkgver}" -Np1 -i "${srcdir}/220-nvidia-open-procfs-external-gpu.patch" # Substitute version placeholder in dkms.conf sed -i "s/@@PKGVER@@/${pkgver}/" "NVIDIA-kernel-module-source-${pkgver}/kernel-open/dkms.conf"Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |
| 2026-10-12 09:12:50 | Medium | 1 |
| 2026-10-12 00:18:51 | Low | 2 |
| 2026-10-11 21:11:00 | Medium | 1 |