Skip to content

590.48.01 doesn't build on Linux kernel 6.19 #1021

Open

Description

@Sukijaki

NVIDIA Open GPU Kernel Modules Version

590.48.01

Operating System and Version

Ubuntu 25.10

Kernel Release

Linux fractal-desktop 6.19.0-fractal #1 SMP PREEMPT_DYNAMIC

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Build Command

I tried installing the driver using .run file.

Terminal output/Build Log

make.log
nvidia-installer.log

More Info

I'm compiling the kernel on my own, with some custom options, like PREEMPT and 1000Hz. I'm attaching the config.

config-6.19.0-fractal.txt

Activity

  1. aritger commented on Feb 9, 2026

    @aritger
    Collaborator

    Thanks. We're aware, and hope to release an updated GPU driver soon.

  2. ptr1337 commented on Feb 10, 2026

    @ptr1337
  3. Fjodor42 commented on Feb 10, 2026

    @Fjodor42

    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).

  4. Sukijaki commented on Feb 10, 2026

    @Sukijaki
    Author

    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.

  5. aaravrav commented on Feb 26, 2026

    @aaravrav

    Thanks. We're aware, and hope to release an updated GPU driver soon.

    Hi, thank you. Is this still being worked on?

  6. aritger commented on Feb 26, 2026

    @aritger
    Collaborator

    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.

  7. aritger commented on Feb 27, 2026

    @aritger
    Collaborator

    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
    
  8. alcortazzo commented on Feb 28, 2026

    @alcortazzo

    Hi, just wondering if there’s any rough ETA for the 595.xx release? Thanks!

  9. aritger commented on Mar 2, 2026

    @aritger
    Collaborator

    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.

  10. jaadth commented on Mar 6, 2026

    @jaadth

    The March 5th 595.45.04 release still hasn't fixed the issue for me.

    6.19.6-1-t2-noble #1 SMP PREEMPT_DYNAMIC Wed Mar 4 18:16:54 UTC 2026 x86_64 GNU/Linux

    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

  11. aaravrav commented on Mar 20, 2026

    @aaravrav

    Can this issue be closed?

  12. CPioGH2002 commented on Mar 24, 2026

    @CPioGH2002

    Still present in recent 595.58.03 driver. The DKMS module fails to build.

  13. aritger commented on Mar 24, 2026

    @aritger
    Collaborator

    @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)

  14. Fjodor42 commented on Mar 24, 2026

    @Fjodor42

    @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.

    To make it work, I do what I describe at #1015 (comment)

  15. CPioGH2002 commented on Mar 24, 2026

    @CPioGH2002

    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).
    

    make.log

  16. aritger commented on Mar 24, 2026

    @aritger
    Collaborator

    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.

  17. CPioGH2002 commented on Mar 24, 2026

    @CPioGH2002

    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.

  18. decanbay commented on Mar 29, 2026

    @decanbay

    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
  19. aritger commented on Mar 30, 2026

    @aritger
    Collaborator

    @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.

  20. Fjodor42 commented on Mar 30, 2026

    @Fjodor42

    @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.

  21. aritger commented on Mar 31, 2026

    @aritger
    Collaborator

    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.

  22. Fjodor42 commented on Mar 31, 2026

    @Fjodor42

    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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions