Bug 1219117

Summary: nvidia-open-driver-G06-signed fails to build against kernel 6.7
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dominique Leuenberger <dimstar>
Component: Kernel:DriversAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P2 - High CC: kernel-bugs, tiwai
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dominique Leuenberger 2024-01-24 08:08:28 UTC
Kernel 6.7 has entered Factory - which results in the build fail of the nvidia open driver

https://build.opensuse.org/package/live_build_log/openSUSE:Factory/nvidia-open-driver-G06-signed/standard/x86_64

[  145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c: In function 'lkca_hmac_duplicate':
[  145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c:90:26: error: implicit declaration of function 'crypto_tfm_ctx_aligned'; did you mean 'crypto_tfm_ctx_align'? [-Werror=implicit-function-declaration]
[  145s]    90 |         char *src_ipad = crypto_tfm_ctx_aligned(&src_tfm->base);
[  145s]       |                          ^~~~~~~~~~~~~~~~~~~~~~
[  145s]       |                          crypto_tfm_ctx_align
[  145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c:90:26: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
[  145s] /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.c:91:26: warning: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
[  145s]    91 |         char *dst_ipad = crypto_tfm_ctx_aligned(&dst_tfm->base);
[  145s]       |                          ^~~~~~~~~~~~~~~~~~~~~~
[  145s]   CC [M]  /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_hkdf_sha.o
[  145s] cc1: some warnings being treated as errors
[  145s] make[5]: *** [/usr/src/linux-6.7.1-1/scripts/Makefile.build:244: /home/abuild/rpmbuild/BUILD/open-gpu-kernel-modules-545.29.06/obj/default/kernel-open/nvidia/libspdm_shash.o] Error 1
Comment 1 Stefan Dirsch 2024-01-24 09:29:05 UTC
Google showed me

https://mirrors.dotsrc.org/gentoo-portage/x11-drivers/nvidia-drivers/files/nvidia-drivers-535.43.22-kernel-6.7.patch

Haven't verified if this makes sense yet ...
Comment 2 Stefan Dirsch 2024-01-24 09:33:09 UTC
More information here:

https://github.com/NVIDIA/open-gpu-kernel-modules/issues/574
Comment 3 Takashi Iwai 2024-01-24 09:37:12 UTC
Yes, it's simple expansion of the dropped inline function from the upstream.

I guess, though, it would work simply by replacing crypto_tfm_ctx_aligned() call s with crypto_tfm_ctx() for 6.7 and later.
Comment 4 Stefan Dirsch 2024-01-24 14:05:13 UTC
fixed and submitted.
Comment 6 OBSbugzilla Bot 2024-01-24 15:35:03 UTC
This is an autogenerated message for OBS integration:
This bug (1219117) was mentioned in
https://build.opensuse.org/request/show/1141256 Factory / nvidia-open-driver-G06-signed