A patch has been sent to linux-media that reverts the commit causing
this: 2f7d0c94396e ("media: siano: Convert to use sysfs_emit_at() API",
v6.6). It carries Fixes: and Cc: stable tags.

https://lore.kernel.org/r/20261107-siano-
[email protected]

The cause: smsdvb-debugfs formats its statistics into `stats_data`, a
PAGE_SIZE array a few bytes into a kzalloc'd struct (after a kref and a
spinlock), so it is not page-aligned. sysfs_emit_at() WARNs and returns
0 when the buffer is not page-aligned, so nothing is written and
stats_count stays 0. The "already filled" check therefore never short-
circuits, and every statistics message from the device runs the
formatter again and triggers a burst of WARNs.

This only happens with CONFIG_SMS_SIANO_DEBUGFS=y. The Ubuntu generic
kernel enables it: the smsdvb_print_isdb_stats_ex frames in a trace from
an affected 7.0.0-42-generic system come from smsdvb-debugfs.c, which is
only built with that option.

Until the fix is merged and backported, a workaround is to blacklist
smsusb, smsdvb and smsmdtv and use a userspace driver such as siano-
userland (https://github.com/Khronos31/siano-userland) instead of the
in-kernel driver.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2162139

Title:
  smsdvb generates an unbounded invalid sysfs_emit_at WARN storm with
  PX-S1UD (regression in Linux 6.6)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2162139/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to