Summary
After upgrading to Linux kernel 7.0.11, the NVIDIA Open Kernel Module (595.84) emits the following kernel warning during initialization:
nvidia-bug-report.log.gz (374.2 KB)
Unpatched return thunk in use. This should not happen!
The warning originates from:
nvidia_init_module()
The complete call trace is attached below.
The driver continues loading successfully after the warning.
I have not observed any functional regressions.
Everything works normally:
- OpenGL
- Vulkan
- PRIME Render Offload
- CUDA
- Steam
- Proton
System
Distribution:
Pop!_OS 24.04 LTS
Kernel:
7.0.11-76070011-generic
Driver:
595.84 Open Kernel Module
GPU:
NVIDIA GeForce RTX 4050 Laptop GPU (AD107M)
CPU:
Intel Core i7-13620H
BIOS:
Acer V1.52
Secure Boot:
Disabled
Warning
Unpatched return thunk in use. This should not happen!
Call Trace:
warn_thunk_thunk
nvidia_init_module
do_one_initcall
do_init_module
load_module
…
Observations
The NVIDIA driver loads correctly after the warning:
NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64 595.84
nvidia, nvidia_modeset, nvidia_uvm and nvidia_drm all initialize successfully.
PRIME Render Offload works correctly.
Example:
__NV_PRIME_RENDER_OFFLOAD=1 \
__GLX_VENDOR_LIBRARY_NAME=nvidia \
glxinfo
Output:
OpenGL renderer string:
NVIDIA GeForce RTX 4050 Laptop GPU
Question
Is this warning expected with Linux 7.0.x or is support for the new x86 return thunk validation still being implemented in the Open Kernel Module?