openwrt/package
Jan Hoffmann ba7b5d23f6 ltq-adsl-mei: check status register before reading mailbox messages
The interrupt handler reads from the mailbox if no other reason for the
interrupt is known. If a spurious interrupt is received just after a
mailbox message has been sent, this means that the response to the
previous message is read again and returned by DSL_BSP_SendCMV instead
of the actual response.

To fix this, check the status register before reading from the mailbox
in the interrupt handler.

Tested on Fritzbox 7320. Without this change, there is occasionally a
kernel panic due to an out-of-bounds memory access in the ltq-adsl
driver (in DSL_DRV_DEV_G997_SnrAllocationNscGet), as a result of an
incorrect value returned by DSL_DRV_DANUBE_CmvRead. This is reproducible
by calling "dsl_cpe_pipe.sh g997dsnrg 1 1" multiple times.

Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Link: https://github.com/openwrt/openwrt/pull/19385
(cherry picked from commit 6889ea7b9a)
Link: https://github.com/openwrt/openwrt/pull/19839
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-08-24 15:30:57 +02:00
..
base-files OpenWrt v24.10.2: revert to branch defaults 2025-06-23 23:32:10 +02:00
boot uboot-envtools: add support for Gateworks venice 2025-07-19 18:31:14 +02:00
devel perf: disable slang support 2025-06-17 23:36:56 +02:00
firmware wireless-regdb: Update to version 2025.07.10 2025-07-27 19:46:13 +02:00
kernel ltq-adsl-mei: check status register before reading mailbox messages 2025-08-24 15:30:57 +02:00
libs libxml2: update to 2.14.5 2025-07-26 23:43:53 +02:00
network hostapd: fix logging of configuration content 2025-08-10 21:53:43 +02:00
system rpcd: backport ucode fix 2025-08-09 16:01:48 +02:00
utils busybox: fix login applet on selinux 2025-07-27 19:42:04 +02:00
Makefile package: rework contents of package index.json 2025-06-11 19:12:09 +02:00