oss4-dkms FTBS with the latest lunar kernel 6.2.0-17-generic

Bug #2011684 reported by Andrea Righi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oss4 (Ubuntu)
Fix Released
Medium
Andrea Righi
Lunar
Fix Released
Medium
Andrea Righi

Bug Description

[Impact]

Trying to install oss4-dkms with the latest 6.2 kernel shows the following build error:

/var/lib/dkms/oss4/4.2-build2020/build/drivers/osscore_symbols.inc:4:14: warning: initialization of ‘unsigned int’ from ‘char *’ makes integer from pointer without a cast [-
Wint-conversion]
    4 | {0x46ca35f6, "oss_register_chrdev"},
      | ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/oss4/4.2-build2020/build/drivers/osscore_symbols.inc:4:14: note: (near initialization for ‘____versions[0].crc’)
/var/lib/dkms/oss4/4.2-build2020/build/drivers/osscore_symbols.inc:4:14: error: initializer element is not computable at load time

[Test case]

$ sudo apt install oss4-dkms

[Fix]

The latest 6.2 kernel includes a SAUCE patch to support a variable-length for the max size of symbol names. This seems to conflict with osscore_symbols.inc that defines a bunch of symbols in the old static size way.

Looking at the code it seems pointless to define these symbols (and their modversion) manually, we can just let the kernel determine the right mod versioning during the regular build.

[Regression potential]

We may experience regressions / user-space incompatibilities with recent kernels >= 6.2 that are using oss4 (assuming anyone is still using the oss4 sound system). Source code remains unchanged in kernels < 6.2.

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: oss4-dkms 4.2-build2020-1
ProcVersionSignature: User Name 6.2.0-17.17-generic 6.2.6
Uname: Linux 6.2.0-17-generic x86_64
NonfreeKernelModules: osscore
ApportVersion: 2.26.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CloudBuildName: server
CloudSerial: 20230301
Date: Wed Mar 15 08:39:07 2023
SourcePackage: oss4
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Andrea Righi (arighi) wrote :
Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach allows to build and run oss4-dkms with the latest Ubuntu 6.2 kernel.

description: updated
tags: added: patch
Andrea Righi (arighi)
Changed in oss4 (Ubuntu Lunar):
status: New → In Progress
Andrea Righi (arighi)
Changed in oss4 (Ubuntu Lunar):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oss4 - 4.2-build2020-1ubuntu1

---------------
oss4 (4.2-build2020-1ubuntu1) lunar; urgency=medium

  * Support variable name length module symbol names, introduced in linux
    6.2 (LP: #2011684):
    - debian/patches/505_support_linux_variable_modversion_length.patch

 -- Andrea Righi <email address hidden> Wed, 15 Mar 2023 08:03:57 +0000

Changed in oss4 (Ubuntu Lunar):
status: Fix Committed → Fix Released
Andrea Righi (arighi)
Changed in oss4 (Ubuntu Lunar):
assignee: nobody → Andrea Righi (arighi)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.