bug in module cx18

Bug #2073367 reported by Tom Hahn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
High
AaronMa

Bug Description

tv card Hauppauge HVR 1600 not working probably because of this.
several array-index-out-of-bounds in dmesg regarding cx18-streams.c and cx18-queue.c

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-6.8.0-38-generic 6.8.0-38.38
ProcVersionSignature: Ubuntu 6.8.0-38.38-generic 6.8.8
Uname: Linux 6.8.0-38-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k6.8.0-38-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/timer', '/dev/snd/seq', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D3p', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D8p', '/dev/snd/hwC0D0', '/dev/snd/hwC0D2', '/dev/snd/controlC0', '/dev/snd/by-path', '/dev/snd/pcmC1D0c', '/dev/snd/controlC1'] failed with exit code 1:
CRDA: N/A
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
Card1.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
CasperMD5CheckResult: pass
Date: Wed Jul 17 05:48:46 2024
InstallationDate: Installed on 2024-07-12 (5 days ago)
InstallationMedia: Ubuntu-Server 24.04 LTS "Noble Numbat" - Release amd64 (20240423)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Lsusb-t:
 /: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/16p, 480M
 /: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/10p, 10000M
MachineType: Dell Inc. Precision 3630 Tower
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-38-generic root=UUID=54d1671f-8bdd-443b-9090-b92da043658e ro
RelatedPackageVersions:
 linux-restricted-modules-6.8.0-38-generic N/A
 linux-backports-modules-6.8.0-38-generic N/A
 linux-firmware 20240318.git3b128b60-0ubuntu2.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/03/2024
dmi.bios.release: 2.29
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.29.0
dmi.board.name: 0NNNCT
dmi.board.vendor: Dell Inc.
dmi.board.version: A01
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.29.0:bd06/03/2024:br2.29:svnDellInc.:pnPrecision3630Tower:pvr:rvnDellInc.:rn0NNNCT:rvrA01:cvnDellInc.:ct3:cvr:sku0871:
dmi.product.family: Precision
dmi.product.name: Precision 3630 Tower
dmi.product.sku: 0871
dmi.sys.vendor: Dell Inc.

Revision history for this message
Tom Hahn (thhb) wrote :
Revision history for this message
AaronMa (mapengyu) wrote :

Looks like the array is overflow for the definition:

        struct cx18_mdl_ent cpu_mdl[1];

It can be simply tested by increased 1 to 1024 or more.
But I am not sure how much buffer the driver want to use,
can we file an upstream bug to notify the driver maintainer?

Changed in linux (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → AaronMa (mapengyu)
Revision history for this message
Juerg Haefliger (juergh) wrote :

It's a warning for an incorrectly declared flexible array [1]. It shouldn't cause any issues other than the stack traces. In newer kernels, a new pedantic gcc flag is used which causes this [2].

[1] https://elixir.bootlin.com/linux/v6.8/source/drivers/media/pci/cx18/cx18-scb.h#L261
[2] https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays

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.