openwrt/package/kernel/lantiq
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
..
ltq-adsl treewide: remove THIS_MODULE assignment 2024-11-28 18:46:45 +00:00
ltq-adsl-fw ltq-adsl(-fw): Makefile clean-up and fixes 2020-04-24 17:59:22 +02:00
ltq-adsl-mei ltq-adsl-mei: check status register before reading mailbox messages 2025-08-24 15:30:57 +02:00
ltq-atm lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-deu lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-ifxos ltq-ifxos: fix compilation error with kernel 6.1 2023-08-27 19:26:53 +02:00
ltq-ptm lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-tapi ltq-tapi: fix build with Linux 6.6 2024-07-06 17:50:23 +02:00
ltq-vdsl-fw lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-vdsl-vr9 lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-vdsl-vr9-mei lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-vdsl-vr11 firmware: add Intel/Lantiq VRX518 DSL firmware package 2024-07-21 21:42:09 +02:00
ltq-vdsl-vr11-mei ltq-vdsl-vr11-mei: add patch fixing compilation with kernel 6.6 2024-04-02 23:45:22 +02:00
ltq-vectoring lantiq/xrx200: move 8M flash devices to a small flash subtarget 2024-12-19 11:25:30 +01:00
ltq-vmmc lantiq: ltq-vmmc: get irqs from kernel-in-tree vmmc driver 2024-05-15 08:54:58 +02:00
vrx518_ep firmware: add Intel/Lantiq VRX518 ACA firmware package 2024-07-21 21:42:09 +02:00
vrx518_tc kernel: vrx518_tc: bump PKG_RELEASE 2025-01-24 22:26:21 +01:00