dahdi-dkms FTBS with the new 6.8 hwe kernel in jammy

Bug #2069687 reported by Andrea Righi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dahdi-linux (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

/var/lib/dkms/dahdi/2.11.1~dfsg-1ubuntu12~22.04.3/build/drivers/dahdi/xpp/card_global.c:301:9: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
  301 | strlcpy(buf, cmdline, MAX_PROC_WRITE); /* Save a copy */
      | ^~~~~~~
      | strscpy

[Test case]

install both GA and HWE kernels, and

 $ sudo apt install dahdi-dkms

then check that the build for both kernels succeeds

[Fix]

Backport the patch from Noble to properly support the new 6.8 kernel ABI.

[Regression potential]

DAHDI is an interface for telephony devices, we may experience regressions in systems relying on this interface/module, especially with the new 6.8 kernel.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: dahdi-dkms 1:2.11.1~dfsg-1ubuntu12~22.04.3
ProcVersionSignature: User Name 6.8.0-35.35.1~22.04.1-lowlatency 6.8.4
Uname: Linux 6.8.0-35-lowlatency x86_64
NonfreeKernelModules: wl
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSubPlatform: config-disk (/dev/vdb)
Date: Tue Jun 18 07:16:01 2024
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: dahdi-linux
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 :
Revision history for this message
Andrea Righi (arighi) wrote :
Download full text (13.1 KiB)

Test build with the new 6.8 hwe kernel:

Building initial module for 6.8.0-35-lowlatency
...
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

dahdi_dummy.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_dynamic_eth.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_dynamic.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_dynamic_loc.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_echocan_jpah.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_echocan_kb1.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_echocan_mg2.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_echocan_sec2.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_echocan_sec.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

dahdi_transcode.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

pciradio.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

tor2.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

wcb4xxp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-35-lowlatency/updates/dkms/

wcfxo.ko:
Running module version sanity check.
 - Original module
   - No original module exists within th...

tags: added: patch
Revision history for this message
Robie Basak (racb) wrote :

Please amend the Test Plan to make it clear that testing both the GA and HWE kernels is required. I expect to see this in the Test Plan for every HWE backport fix (and if it's not required then an explanation as to why).

I understand that I could just do this myself but it feels like every time I look at an HWE backport fix this isn't in the Test Plan, so I'm pushing back now to get this done properly from the beginning. That way there will be less effort for everyone at a time that the SRU queues are quite large and efficiency matters.

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Andrea, or anyone else affected,

Accepted dahdi-linux into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/dahdi-linux/1:2.11.1~dfsg-1ubuntu12~22.04.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

description: updated
Changed in dahdi-linux (Ubuntu):
status: New → Invalid
Changed in dahdi-linux (Ubuntu Jammy):
status: New → Fix Committed
Revision history for this message
Paolo Pisati (p-pisati) wrote :

$ dkms status
dahdi/2.11.1~dfsg-1ubuntu12~22.04.4, 5.15.0-113-generic, x86_64: installed
dahdi/2.11.1~dfsg-1ubuntu12~22.04.4, 6.8.0-38-generic, x86_64: installed

GA:
$ lsmod | grep dahdi
dahdi 258048 0

HWE:
$ lsmod | grep dahdi
dahdi 282624 0

build, install and load fine on GA and HWE kernels.

tags: added: verification-done-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dahdi-linux - 1:2.11.1~dfsg-1ubuntu12~22.04.4

---------------
dahdi-linux (1:2.11.1~dfsg-1ubuntu12~22.04.4) jammy; urgency=medium

  * Support Linux 6.8 (LP: #2069687):
    - debian/patches/linux-6.8-s-strlcpy-strscpy-g.patch

 -- Andrea Righi <email address hidden> Tue, 18 Jun 2024 07:20:42 +0000

Changed in dahdi-linux (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for dahdi-linux has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.