usbduxsigma_firmware.bin: old version causes driver crash

Bug #1605974 reported by Bernd Porr
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-firmware (Ubuntu)
Fix Released
Medium
Seth Forshee
Xenial
Fix Released
Medium
Seth Forshee

Bug Description

SRU Justification

Impact: The usbduxsigma firmware is out of date and causes the driver to fail. This is fixed by updating the firmware from upstream linux-firmware.

Test Case: Using the driver with the old firmware fails. Using it with the new firmware does not.

Regression potential: The firmware is only used by the one driver so there is no potential for regression anywhere else, and the driver already isn't working with the old firmware.

---

The firmware of the usbduxsigma (alongside with the usbduxsigma.c) was updated in 2015 during a major rewrite but its binary was still the old one which causes the kernel driver to fail.

I've submitted a patch to the kernel people (see below).

However, as a quick fix could you also apply the patch to the package directly to have this fixed now and then we can wait until it trickles down from the kernel.

I'm the maintainer of both the firmware and the drivers.

This affects both 32 and 64 bit distros.

Best,
/Bernd Porr (www.linux-usb-daq.co.uk)

Description: Ubuntu 16.04.1 LTS
Release: 16.04

linux-firmware:
  Installed: 1.157.2
  Candidate: 1.157.2
  Version table:
 *** 1.157.2 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1.157 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial/main i386 Packages

Expect to happen: plug in a duxduxsigma device, start comedirecord and see the signals plotted
Happens instead: plug in a duxduxsigma device, start comedirecord and GARBLED DATA shows up / crash
Fix: install this patch (new version of the firmware binary)

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-firmware 1.157.2 [modified: lib/firmware/usbduxsigma_firmware.bin]
ProcVersionSignature: Ubuntu 4.4.0-31.50-generic 4.4.13
Uname: Linux 4.4.0-31-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Jul 24 10:04:19 2016
Dependencies:

InstallationDate: Installed on 2013-12-09 (957 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20131209)
PackageArchitecture: all
SourcePackage: linux-firmware
UpgradeStatus: Upgraded to xenial on 2016-07-23 (0 days ago)

Revision history for this message
Bernd Porr (berndporr) wrote :
tags: added: patch
Revision history for this message
Bernd Porr (berndporr-6-deactivatedaccount) wrote :

The patch has just been applied to the kernel.org git.

Revision history for this message
Bernd Porr (berndporr) wrote :
Bernd Porr (berndporr)
Changed in linux-firmware (Ubuntu):
status: New → Confirmed
Changed in linux-firmware (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Bernd Porr (berndporr) wrote :

The linux firmware has been updated and the usbduxsigma firmware as well. However it's still the _old_ firmware.

See the diff between the kernel git and what ubuntu has:
bp1@bp1-Precision-WorkStation-T5400:/tmp/linux-firmware$ diff usbduxsigma_firmware.bin /lib/firmware/usbduxsigma_firmware.bin
Binary files usbduxsigma_firmware.bin and /lib/firmware/usbduxsigma_firmware.bin differ

Revision history for this message
Bernd Porr (berndporr) wrote :

This has been reported in July and the firmware still hasn't been updated. I'm using the board in teaching at my university and now we have to manually copy the new firmware version. It's been available upstream for ages but it's still not in the ubuntu firmware package. It's very disappointing.

Revision history for this message
Bernd Porr (berndporr) wrote :

bump

Revision history for this message
Bernd Porr (berndporr) wrote :

A new firmware package has arrived and the usbduxsigma file has certainly been updated.

-rw-r--r-- 1 root root 999 Apr 25 2016 usbduxfast_firmware.bin
-rw-r--r-- 1 root root 1770 Apr 25 2016 usbdux_firmware.bin
-rw-r--r-- 1 root root 8192 Nov 30 21:03 usbduxsigma_firmware.bin

So I've just cloned:
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
and compared it to the firmware version in the just installed ubuntu xenial linux-firmware package:

bp1@bp1-Precision-WorkStation-T5400:/lib/firmware$ diff ./usbduxsigma_firmware.bin /tmp/linux-firmware/usbduxsigma_firmware.bin
Binary files ./usbduxsigma_firmware.bin and /tmp/linux-firmware/usbduxsigma_firmware.bin differ
bp1@bp1-Precision-WorkStation-T5400:/lib/firmware$

Even that the timestamp has changed to Nov 30th it's still not the version in linux-firmware.git!

Frustrating.

Revision history for this message
Bernd Porr (berndporr) wrote :

bump.

Revision history for this message
Seth Forshee (sforshee) wrote :

@Bernd: Sorry for not attending to this sooner; I'm not sure why I didn't notice this before in my bug mail. I'll get this fixed soon.

Changed in linux-firmware (Ubuntu):
assignee: nobody → Seth Forshee (sforshee)
Revision history for this message
Bernd Porr (berndporr) wrote :

Thanks for taking care of it! :)

Revision history for this message
Seth Forshee (sforshee) wrote :

Please test the package below and confirm that it fixes the issue. Thanks!

http://people.canonical.com/~sforshee/lp1605974/linux-firmware_1.157.7+lp1605974v201701061200_all.deb

Revision history for this message
Bernd Porr (berndporr) wrote :

Works perfectly. Thanks for sorting it out. :)

bp1@bp1-Precision-WorkStation-T5400:~$ diff /tmp/usbduxsigma_firmware.bin /lib/firmware/usbduxsigma_firmware.bin
bp1@bp1-Precision-WorkStation-T5400:~$

Seth Forshee (sforshee)
Changed in linux-firmware (Ubuntu Xenial):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Seth Forshee (sforshee)
Changed in linux-firmware (Ubuntu):
status: Confirmed → Fix Released
Seth Forshee (sforshee)
Changed in linux-firmware (Ubuntu Xenial):
status: In Progress → Fix Committed
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Could this bug description get updated to follow the https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template guideline? Thank you!

Seth Forshee (sforshee)
description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Bernd, or anyone else affected,

Accepted linux-firmware into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/1.157.8 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, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

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

Revision history for this message
Bernd Porr (berndporr) wrote :

Tested:
linux-firmware_1.157.8_all.deb
from xenial proposed and it works!
Bug fixed!

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

This bug was fixed in the package linux-firmware - 1.157.8

---------------
linux-firmware (1.157.8) xenial; urgency=medium

  * usbduxsigma_firmware.bin: old version causes driver crash (LP: #1605974)
    - usbdux: usbduxsigma: created matching binary of the firmware

linux-firmware (1.157.7) xenial; urgency=medium

  * Intel 8260 doesn't work with linux kernel 4.8 when using ucode version 22
    (LP: #1647826)
    - UBUNTU: SAUCE: Remove iwlwifi-8000C-22.ucode

 -- Seth Forshee <email address hidden> Fri, 06 Jan 2017 16:28:55 -0600

Changed in linux-firmware (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of the Stable Release Update for linux-firmware has completed successfully and the package has now been 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.