Public bug reported:
On Kubuntu 24.04.4 with linux-image-7.0.0-28-generic (HWE, noble-updates) and
the DKMS
nvidia module (nvidia-driver-580, 580.159.03), every boot logs a kernel WARNING
with
call trace during nvidia module load:
------------[ cut here ]------------
Unpatched return thunk in use. This should not happen!
WARNING: arch/x86/kernel/cpu/bugs.c:3736 at __warn_thunk+0x10/0x20, CPU#1:
(udev-worker)/576
...
nvidia_init_module+0x29/0x850 [nvidia]
Full trace attached (attachment-nvidia-thunk-warn.txt).
Context that is likely relevant: the kernel command line includes
`mitigations=off`.
The same system, same nvidia-driver-580 DKMS build, and the same
`mitigations=off`
cmdline on linux-image-6.17.0-40-generic produces NO such warning. So either
the 7.0
kernel changed return-thunk patching behaviour under mitigations=off for
out-of-tree
modules, or the warning is newly (perhaps intentionally) surfaced — in which
case it may
still deserve suppression for this configuration, since the taint/WARN fires on
every
boot with no user-visible malfunction (nvidia module works normally afterwards).
Hardware: ASUS VivoBook_ASUSLaptop X580GD_N580GD, i7-8750H (CoffeeLake),
GTX 1050 Mobile, nvidia-driver-580 (580.159.03) via DKMS.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-7.0.0-28-generic 7.0.0-28.28~24.04.1
ProcVersionSignature: Ubuntu 7.0.0-28.28~24.04.1-generic 7.0.12
Uname: Linux 7.0.0-28-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.2-0ubuntu0.1
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: vlad 1720 F.... wireplumber
/dev/snd/seq: vlad 1717 F.... pipewire
CRDA: N/A
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Sun Jul 19 23:47:17 2026
HibernationDevice: RESUME=none
InstallationDate: Installed on 2020-07-28 (2182 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 13d3:56a2 IMC Networks USB2.0 HD UVC WebCam
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card
Reader Controller
Bus 001 Device 004: ID 8087:0036 Intel Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
MachineType: ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X580GD_N580GD
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-7.0.0-28-generic
root=/dev/mapper/vgkubuntu-root ro quiet splash mitigations=off vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No
PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
linux-restricted-modules-7.0.0-28-generic N/A
linux-backports-modules-7.0.0-28-generic N/A
linux-firmware 20240318.git3b128b60-0ubuntu2.27
SourcePackage: linux-hwe-7.0
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/19/2020
dmi.bios.release: 5.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: X580GD.322
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: X580GD
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias:
dmi:bvnAmericanMegatrendsInc.:bvrX580GD.322:bd05/19/2020:br5.13:svnASUSTeKCOMPUTERINC.:pnVivoBook_ASUSLaptopX580GD_N580GD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX580GD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku:pfaVivoBook:
dmi.product.family: VivoBook
dmi.product.name: VivoBook_ASUSLaptop X580GD_N580GD
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.
** Affects: linux-hwe-7.0 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble regression-update
** Attachment added: "extracted warning trace"
https://bugs.launchpad.net/bugs/2161272/+attachment/5984300/+files/attachment-nvidia-thunk-warn.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161272
Title:
Kernel WARNING "Unpatched return thunk in use" when loading nvidia
module on 7.0.0-28-generic with mitigations=off — not present on 6.17
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-7.0/+bug/2161272/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs