[Bug 2073367] Re: bug in module cx18

2025-01-08 Thread H Buus
I see the same errors as the OP, although I see somewhat different index numbers: UBSAN: array-index-out-of-bounds in /build/linux-vCyKs5/linux-6.8.0/drivers/media/pci/cx18/cx18-queue.c:345:40 index 64 is out of range for type 'cx18_mdl_ent [1]' UBSAN: array-index-out-of-bounds in /build/linux-v

[Bug 2073367] Re: bug in module cx18

2024-07-18 Thread Juerg Haefliger
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://w

[Bug 2073367] Re: bug in module cx18

2024-07-17 Thread AaronMa
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 (Ubunt