You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
590.48.01 doesn't build on Linux kernel 6.19 #1021
Reacted by CPioGH2002, Wojciech Sobczak, Brandon Bennett, Muhammad Yahya Muhaimin, Alex Turbov, alcortazzo, davidak, Alex Canepa and Christoph Döllinger
Be aware, though, that depending on your distribution, compilation may still fail, if said kernel is set to treat certain warnings as errors, in which case you will need to do a bit more, as described in #1015 (comment).
An updated 580.xx driver with v6.19 compatibility was released a week or so ago, and a post-580.xx driver with v6.19 compatibility should be released soon. I'm sorry for the delays.
Reacted by M. Yahya (GitHub), Gil V. B. P., Steven Bellock and Omer Faruk Oruc
My apologies: a 595.xx release was supposed to be released by now and would have contained the Linux v6.19 compatibility fixes; that was unfortunately delayed.
For using the current 590.48.01 release with Linux v6.19:
If building from the open-gpu-kernel-modules repo, you can of course use the CachyOS patch that @ptr1337 pointed to earlier in this thread:
cd open-gpu-kernel-modules
patch -p1 < kernel-6.19.patch
make modules modules_install
If using (or repackaging from) the NVIDIA-Linux-x86_64-590.48.01.run file, you can apply the attached 590.48.01_v6.19.patch:
sh ./NVIDIA-Linux-x86_64-590.48.01.run --extract-only
patch -p0 < 590.48.01_v6.19.patch
./NVIDIA-Linux-x86_64-590.48.01/nvidia-installer --silent
That patch is functionally equivalent to the CachyOS patch, but we normally use our conftest.sh script rather than kernel version checks, for compatibility with distribution kernels containing backported changes.
Note: the v6.19 compatibility issue only impacted the open nvidia kernel modules. It isn't preferred, but an alternative work around is to use the proprietary modules:
sh ./NVIDIA-Linux-x86_64-590.48.01.run --silent --kernel-module-type=proprietary
Reacted by Michi, Evan and CPioGH2002
Reacted by Peter Jung, Gil V. B. P., alcortazzo and Angelo Geulin
595.xx release is supposed to be very soon (roughly within the next week), but last-minute problems can cause delays, so I'm reluctant to make any promises. Sorry I can't give anything concrete.
Reacted by Christian Kühn, Gil V. B. P., Evan, Tom Kersting and fazzi
Reacted by alcortazzo, Peter Jung, Lokize, nelande, fazzi and Angelo Geulin
@CPioGH2002: can you please post the build log of your failure? In general, 595.58.03 builds and works with Linux kernel v5.19 (the rethunk mitigation warning mentioned by @jaadth is still present in 595.58.03, but "only" a warning, unless the kconfig enables objtool warnings-as-errors)
@CPioGH2002: can you please post the build log of your failure? In general, 595.58.03 builds and works with Linux kernel v5.19 (the rethunk mitigation warning mentioned by @jaadth is still present in 595.58.03, but "only" a warning, unless the kconfig enables objtool warnings-as-errors)
As for the latter, it is for Ubuntu mainline builds from their kernel team.
Thanks for your input and questions. I tried with the mainline kernels and self-compiled ones. As for fixes: Those are appreciated, but do not render the issue report invalid as the drivers are expected to work without them. Feel free to correct me on that attitude.
Error! Bad return status for module build on kernel: 6.19.8-061908-generic (x86_64)
Consult /var/lib/dkms/nvidia/595.58.03/build/make.log for more information.
Autoinstall on 6.19.8-061908-generic failed for module(s) nvidia(10).
Thank you for the log. I just wanted to check whether the issues were known. From the make.log, this does indeed look like the rethunk mitigation problem. It can be worked around for now by disabling CONFIG_OBJTOOL_WERROR. Yes, it is an NVIDIA bug that will eventually be fixed.
Thanks for the quick look into the log and issue. For the folks using self-compiled kernels or a different .config setup, the workaround (disabling CONFIG_OBJTOOL_WERROR) may suffice for now. :-)
(Update) Reporting on one of the workarounds:
On self-compiled kernels with CONFIG_OBJTOOL_WERROR=n being set in .config, the driver indeed installs without issues and the DKMS is properly build.
Just adding another data point and a confirmed workaround for anyone trying to force this compile through while we wait for an official fix.
Environment:
Kernel: 6.19.10-061910-generic (Ubuntu 24.04)
Driver: 590.48.01 (nvidia-dkms-590-open)
Compiler: GCC 15
The Build Sequence & Workaround:
1. Fix the Memory API Changes (folio_free & zone_device_page_init)
The build initially fails at the C compilation stage due to the 6.19 memory API changes. You have to apply the community patch (like the one from CachyOS) to the open-source modules to get past this.
2. Bypass objtool (MITIGATION_RETHUNK Naked Returns)
After the C code is patched, the build makes it to the linking stage but gets killed by objtool flagging naked returns in the libos functions (libosPreserveLogs, libosLogInit, etc.).
You can successfully force the DKMS build to finish by explicitly bypassing objtool validation for the composite objects. Simply append the bypass flags to your local Kbuild file before triggering DKMS:
echo'$(obj)/nvidia.o: private objtool := true'| sudo tee -a /usr/src/nvidia-590.48.01/Kbuild
echo'$(obj)/nvidia-modeset.o: private objtool := true'| sudo tee -a /usr/src/nvidia-590.48.01/Kbuild
@decanbay : we have no further 590.xx releases planned. Please use either the latest 580.xx or latest 595.xx; both contain Linux kernel 6.19 support.
Would you deem the the following rephrasing of your statement accurate, @aritger?
"[...]both contain Linux kernel 6.19 support in some kernel configurations that allow potentially unsafe handling of naked returns, even though we have been made aware of compiler options that would allow the shipped nv-kernel.o_binary and nv-modeset-kernel.o_binary to handle them in a manner that is, at present, deemed safe and, hence, would also make them supported in kernel configurations that regard such, potentially, unsafe handling as erroneous, which includes, but is not exclusive to, Ubuntu Kernel Team's mainline builds, available at https://kernel.ubuntu.com/mainline/, which is not the case at this point in time."?
Emphasis mine to clarify my proposed addition to your statement.
I sincerely apologize that proper interaction with CONFIG_MITIGATION_RETHUNK has taken so long. You're welcome to rephrase things like that if you like.
To be quite honest, @aritger, I was in quite a bad mood for unrelated reasons, so my apologies for lashing out.
I think what got to me here was the lack of conditionality in your statement about 6.19 support, paired with the long delay with the RETHUNK thing, but obviously, you are not, personally, solely responsible for it.
There may also be issues with my proposed handling, that I am not aware of, but if so, that would probably also be good to make known, instead of just keeping ignoring it, which may also have reasonable explanations, that are just not made known...
Activity
aritger commentedon Feb 9, 2026
Thanks. We're aware, and hope to release an updated GPU driver soon.
ptr1337 commentedon Feb 10, 2026
This patch can be used for now till official solution is available:
https://github.com/CachyOS/CachyOS-PKGBUILDS/blob/master/nvidia/nvidia-utils/kernel-6.19.patch
Fjodor42 commentedon Feb 10, 2026
Be aware, though, that depending on your distribution, compilation may still fail, if said kernel is set to treat certain warnings as errors, in which case you will need to do a bit more, as described in #1015 (comment).
Sukijaki commentedon Feb 10, 2026
Thank you. I have already seen the PR with the patched version, few minutes after I have posted this bug report. And it's working now with the patch.
fix(graphics): patch nvidia-open for kernel 6.19 compatibility
fix(graphics): pin NVIDIA users to kernel 6.18
aaravrav commentedon Feb 26, 2026
Hi, thank you. Is this still being worked on?
aritger commentedon Feb 26, 2026
An updated 580.xx driver with v6.19 compatibility was released a week or so ago, and a post-580.xx driver with v6.19 compatibility should be released soon. I'm sorry for the delays.
aritger commentedon Feb 27, 2026
My apologies: a 595.xx release was supposed to be released by now and would have contained the Linux v6.19 compatibility fixes; that was unfortunately delayed.
For using the current 590.48.01 release with Linux v6.19:
That patch is functionally equivalent to the CachyOS patch, but we normally use our
conftest.shscript rather than kernel version checks, for compatibility with distribution kernels containing backported changes.Note: the v6.19 compatibility issue only impacted the open nvidia kernel modules. It isn't preferred, but an alternative work around is to use the proprietary modules:
alcortazzo commentedon Feb 28, 2026
Hi, just wondering if there’s any rough ETA for the 595.xx release? Thanks!
aritger commentedon Mar 2, 2026
595.xx release is supposed to be very soon (roughly within the next week), but last-minute problems can cause delays, so I'm reluctant to make any promises. Sorry I can't give anything concrete.
jaadth commentedon Mar 6, 2026
The March 5th 595.45.04 release still hasn't fixed the issue for me.
However this does work for now.
https://forums.developer.nvidia.com/t/objtool-naked-return-found-in-mitigation-rethunk-build-with-pre-compiled-blobs-on-kernel-6-19/360610
aaravrav commentedon Mar 20, 2026
Can this issue be closed?
CPioGH2002 commentedon Mar 24, 2026
Still present in recent 595.58.03 driver. The DKMS module fails to build.
aritger commentedon Mar 24, 2026
@CPioGH2002: can you please post the build log of your failure? In general, 595.58.03 builds and works with Linux kernel v5.19 (the rethunk mitigation warning mentioned by @jaadth is still present in 595.58.03, but "only" a warning, unless the kconfig enables objtool warnings-as-errors)
Fjodor42 commentedon Mar 24, 2026
As for the latter, it is for Ubuntu mainline builds from their kernel team.
To make it work, I do what I describe at #1015 (comment)
CPioGH2002 commentedon Mar 24, 2026
Thanks for your input and questions. I tried with the mainline kernels and self-compiled ones. As for fixes: Those are appreciated, but do not render the issue report invalid as the drivers are expected to work without them. Feel free to correct me on that attitude.
make.log
aritger commentedon Mar 24, 2026
Thank you for the log. I just wanted to check whether the issues were known. From the make.log, this does indeed look like the rethunk mitigation problem. It can be worked around for now by disabling CONFIG_OBJTOOL_WERROR. Yes, it is an NVIDIA bug that will eventually be fixed.
CPioGH2002 commentedon Mar 24, 2026
Thanks for the quick look into the log and issue. For the folks using self-compiled kernels or a different .config setup, the workaround (disabling CONFIG_OBJTOOL_WERROR) may suffice for now. :-)
(Update) Reporting on one of the workarounds:
On self-compiled kernels with
CONFIG_OBJTOOL_WERROR=nbeing set in.config, the driver indeed installs without issues and the DKMS is properly build.decanbay commentedon Mar 29, 2026
Just adding another data point and a confirmed workaround for anyone trying to force this compile through while we wait for an official fix.
Environment:
nvidia-dkms-590-open)The Build Sequence & Workaround:
1. Fix the Memory API Changes (
folio_free&zone_device_page_init)The build initially fails at the C compilation stage due to the 6.19 memory API changes. You have to apply the community patch (like the one from CachyOS) to the open-source modules to get past this.
2. Bypass
objtool(MITIGATION_RETHUNKNaked Returns)After the C code is patched, the build makes it to the linking stage but gets killed by
objtoolflagging naked returns in thelibosfunctions (libosPreserveLogs,libosLogInit, etc.).You can successfully force the DKMS build to finish by explicitly bypassing
objtoolvalidation for the composite objects. Simply append the bypass flags to your localKbuildfile before triggering DKMS:aritger commentedon Mar 30, 2026
@decanbay : we have no further 590.xx releases planned. Please use either the latest 580.xx or latest 595.xx; both contain Linux kernel 6.19 support.
Fjodor42 commentedon Mar 30, 2026
Would you deem the the following rephrasing of your statement accurate, @aritger?
"[...]both contain Linux kernel 6.19 support in some kernel configurations that allow potentially unsafe handling of naked returns, even though we have been made aware of compiler options that would allow the shipped
nv-kernel.o_binaryandnv-modeset-kernel.o_binaryto handle them in a manner that is, at present, deemed safe and, hence, would also make them supported in kernel configurations that regard such, potentially, unsafe handling as erroneous, which includes, but is not exclusive to, Ubuntu Kernel Team's mainline builds, available at https://kernel.ubuntu.com/mainline/, which is not the case at this point in time."?Emphasis mine to clarify my proposed addition to your statement.
aritger commentedon Mar 31, 2026
I sincerely apologize that proper interaction with CONFIG_MITIGATION_RETHUNK has taken so long. You're welcome to rephrase things like that if you like.
Fjodor42 commentedon Mar 31, 2026
To be quite honest, @aritger, I was in quite a bad mood for unrelated reasons, so my apologies for lashing out.
I think what got to me here was the lack of conditionality in your statement about 6.19 support, paired with the long delay with the RETHUNK thing, but obviously, you are not, personally, solely responsible for it.
There may also be issues with my proposed handling, that I am not aware of, but if so, that would probably also be good to make known, instead of just keeping ignoring it, which may also have reasonable explanations, that are just not made known...