[Bug 1212841] New: Lots of objtool warnings when building the nvidia driver
https://bugzilla.suse.com/show_bug.cgi?id=1212841 Bug ID: 1212841 Summary: Lots of objtool warnings when building the nvidia driver Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: christophe@krop.fr QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- # rpm -qv nvidia-driver-G06-kmp-default nvidia-driver-G06-kmp-default-535.54.03_k6.3.7_1-10.1.x86_64 # zgrep -c objtool zypper.log-20230627.xz 213230 extracts: [rpm> LD [M] /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia-modeset.o [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia-modeset.o: warning: objtool: _nv000675kms+0x46: 'naked' return found in RETHUNK build [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia-modeset.o: warning: objtool: _nv000676kms+0x46: 'naked' return found in RETHUNK build [cut] [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia.o: warning: objtool: _nv040720rm+0xb9: return with modified stack frame [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia.o: warning: objtool: _nv013581rm+0xd9: stack state mismatch: reg1[5]=-1+0 reg2[5]=-2-64 [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia.o: warning: objtool: _nv034058rm+0x83: stack state mismatch: reg1[5]=-1+0 reg2[5]=-2-56 [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia.o: warning: objtool: _nv024689rm+0xb: missing int3 after ret [rpm> /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia.o: warning: objtool: _nv043791rm+0x4: missing int3 after ret [cut] then it finishes building and prints a couple last warnings such as: [rpm> Skipping BTF generation for /usr/src/kernel-modules/nvidia-535.54.03-default/nvidia-peermem.ko due to unavailability of vmlinux -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 Christophe Marin <christophe@krop.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|kernel-bugs@opensuse.org |sndirsch@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 https://bugzilla.suse.com/show_bug.cgi?id=1212841#c3 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@suse.com --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> --- I already discussed this with matz and Richard (because I mixed up objtool with objdump). Here are the outcomings so far. - With an older nvidia driver source we see the same warnings. So it's not related to changes in the driver code. - source code might be compiled with the wrong compiler options (not compatible to them?); when adding 'V=1" to make command I figured out that "-mfunction-return=thunk-extern" and "-mindirect-branch=thunk-extern" is being used (coming from our kernel sources somehow; is this new maybe?) - the warnings might be related to changes in objtool or how we run it now -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 https://bugzilla.suse.com/show_bug.cgi?id=1212841#c5 --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> --- Created attachment 867881 --> https://bugzilla.suse.com/attachment.cgi?id=867881&action=edit build.gz Build log with "make ... V=1" so you also see the compiler options for building. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 https://bugzilla.suse.com/show_bug.cgi?id=1212841#c6 --- Comment #6 from Stefan Dirsch <sndirsch@suse.com> --- Build against Kernels in openSUSE.org:Kernel:HEAD openSUSE.org:openSUSE:Tumbleweed Devel:Kernel:master are affected. Internal build service (build.suse.de). https://build.suse.de/project/monitor/Proprietary:X11:Drivers -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 https://bugzilla.suse.com/show_bug.cgi?id=1212841#c7 --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- @Christophe Just being curious. Are you actually using the driver RPMs (any issues with that") or were you just accidently stumbling across these build warnings? I'm wondering, whether we 've actively broken sth or now are just seing more warnings ... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 https://bugzilla.suse.com/show_bug.cgi?id=1212841#c8 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ddadap@nvidia.com --- Comment #8 from Stefan Dirsch <sndirsch@suse.com> --- Adding our NVIDIA contact ... @Daniel In case this rings a bell for you, please let us know ... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |CONFIRMED QA Contact|qa-bugs@suse.de |sndirsch@suse.com Component|Kernel |X11 3rd Party Driver -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|sndirsch@suse.com | -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1212841 https://bugzilla.suse.com/show_bug.cgi?id=1212841#c14 --- Comment #14 from Stefan Dirsch <sndirsch@suse.com> --- Comment for myself. Although this was reported for 535.54.03 and we saw this change in a later version --- NVIDIA-Linux-x86_64-550.54.14/kernel/nvidia/nv.c 2024-02-22 03:22:32.000000000 +0100 +++ NVIDIA-Linux-x86_64-550.67.00/kernel/nvidia/nv.c 2024-03-13 01:28:21.000000000 +0100 @@ -57,7 +57,11 @@ #include "nv-dmabuf.h" #include "nv-caps-imex.h" -#if !defined(CONFIG_RETPOLINE) +/* + * Commit aefb2f2e619b ("x86/bugs: Rename CONFIG_RETPOLINE => + * CONFIG_MITIGATION_RETPOLINE) in v6.8 renamed CONFIG_RETPOLINE. + */ +#if !defined(CONFIG_RETPOLINE) && !defined(CONFIG_MITIGATION_RETPOLINE) #include "nv-retpoline.h" #endif the issue still exists in latest version 550.90.07. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com