Skip to content

ltq-adsl-mei: check status register before reading mailbox messages - #19385

Merged
openwrt-bot merged 1 commit into
openwrt:mainfrom
janh:ltq-adsl-mei-fix-interrupts
Jul 17, 2025
Merged

openwrt-bot merged 1 commit into
openwrt:mainfrom
janh:ltq-adsl-mei-fix-interrupts

Conversation

@janh

@janh janh commented Jul 12, 2025

Copy link
Copy Markdown
Contributor

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.


Here is an example of a kernel panic, including some additional debug output which shows the wrong data reurned by DSL_DRV_DANUBE_CmvRead:

root@OpenWrt:~# while true; do dsl_cpe_pipe.sh g997dsnrg 1 1 > /dev/null; done
[  366.045089] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.144706] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.246342] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.347606] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.443696] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.547907] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.643502] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.746488] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.846033] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  366.946816] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.047804] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.142688] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.241438] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.341958] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.445723] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.557549] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.657329] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.761547] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.864530] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  367.968506] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.069013] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.170047] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.269569] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.369107] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.466179] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.564866] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.670418] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.779104] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.867770] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  368.966818] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.065388] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.169087] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.268605] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.370621] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.473362] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.574891] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.677855] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.787478] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.888006] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  369.987292] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  370.086341] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  370.184397] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=61, nDsRangeU=511, nSnrAdd=0
[  370.281477] DSL_DRV_DEV_G997_SnrAllocationNscGet: len(nNSCData)=512, nNSC=512, nDsRangeD=13264, nDsRangeU=61, nSnrAdd=511
[  370.291300] CPU 1 Unable to handle kernel paging request at virtual address c0eb4000, epc == 82b61d48, ra == 82b61d2c
[  370.301671] Oops[#1]:
[  370.303740] CPU: 1 PID: 2313 Comm: dsl_cpe_control Tainted: G           O       6.6.95 #0
[  370.311844] $ 0   : 00000000 00000001 c0eb3ff6 000033d0
[  370.317015] $ 4   : ffffffff 00000040 c0eb63d0 00000000
[  370.322181] $ 8   : ffffefff 00000000 ffffffea 00000110
[  370.327370] $12   : 83989b5c 00000110 8095d2d8 ffffffff
[  370.332533] $16   : c077d000 00000001 00000000 c0eb3000
[  370.337717] $20   : 00000200 00000000 000001f8 00000008
[  370.342884] $24   : 00000018 00000000                  
[  370.348073] $28   : 83988000 83989c68 00000200 82b61d2c
[  370.353236] Hi    : 0000001c
[  370.356091] Lo    : 23d70aae
[  370.358930] epc   : 82b61d48 DSL_DRV_DEV_G997_SnrAllocationNscGet+0x54c/0x5d4 [drv_dsl_cpe_api]
[  370.367569] ra    : 82b61d2c DSL_DRV_DEV_G997_SnrAllocationNscGet+0x530/0x5d4 [drv_dsl_cpe_api]
[  370.376191] Status: 1100ff03	KERNEL EXL IE 
[  370.380323] Cause : 00800008 (ExcCode 02)
[  370.384291] BadVA : c0eb4000
[  370.387150] PrId  : 0001954c (MIPS 34Kc)
[  370.391020] Modules linked in: ltq_atm_ar9(O) ath9k(O) ath9k_common(O) nft_fib_inet nf_flow_table_inet ath9k_hw(O) ath(O) pppoe nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211(O) cfg80211(O) ath9k_pci_owl_loader(O) pppox ppp_async nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 ltq_deu_ar9(O) libcrc32c crc_ccitt compat(O) drv_dsl_cpe_api(O) drv_mei_cpe(O) pppoatm ppp_generic slhc br2684 atm sha512_generic seqiv sha3_generic jitterentropy_rng drbg hmac geniv rng des_generic libdes cmac dwc2 roles gpio_button_hotplug(O) crc32c_generic
[  370.459181] Process dsl_cpe_control (pid: 2313, threadinfo=51608456, task=722765d9, tls=77cf5df4)
[  370.467979] Stack : 38e38e39 00000200 00000200 000033d0 0000003d 000001ff 000001ff 02000000
[  370.476257]         33d0003d 00000000 00000001 00000801 c0eb3fff ffffffff 00000000 00000000
[  370.484528]         00000000 00000000 37cf379e 37dc3736 37aa36f6 36ba3638 387337aa 385637c3
[  370.492820]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  370.501099]         00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  370.509385]         ...
[  370.511833] Call Trace:
[  370.514204] [<82b61d48>] DSL_DRV_DEV_G997_SnrAllocationNscGet+0x54c/0x5d4 [drv_dsl_cpe_api]
[  370.522688] [<82b63928>] DSL_DRV_DEV_G997_DeltSNRGet+0x11c/0x1d4 [drv_dsl_cpe_api]
[  370.530199] [<82b40e0c>] DSL_DRV_IoctlHandleHelperCall+0xc0/0x18c [drv_dsl_cpe_api]
[  370.537783] [<82b431e4>] DSL_DRV_IoctlHandle+0x474/0x63c [drv_dsl_cpe_api]
[  370.544575] [<82b453a0>] DSL_DRV_ErrorToOS+0x13c/0x16c [drv_dsl_cpe_api]
[  370.551183] 
[  370.552506] Code: 2404ffff  10c20007  00000000 <9047000a> 14e50002  00000000  a044000a  1000fff9  24420001 
[  370.562174] 
[  370.563902] ---[ end trace 0000000000000000 ]---
[  370.568346] Kernel panic - not syncing: Fatal exception
[  370.573409] Rebooting in 3 seconds..

@github-actions github-actions Bot added target/lantiq pull request/issue for lantiq target core packages pull request/issue for core (in-tree) packages labels Jul 12, 2025
@janh
janh force-pushed the ltq-adsl-mei-fix-interrupts branch from 662d854 to 2301c42 Compare July 15, 2025 22:02
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
@hauke
hauke force-pushed the ltq-adsl-mei-fix-interrupts branch from 2301c42 to 6889ea7 Compare July 17, 2025 19:11
@openwrt-bot
openwrt-bot merged commit 6889ea7 into openwrt:main Jul 17, 2025
gebruno pushed a commit to LAND-UFRJ/openwrt that referenced this pull request Jul 21, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
gebruno pushed a commit to LAND-UFRJ/openwrt that referenced this pull request Jul 21, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
AlbrechtL pushed a commit to AlbrechtL/openwrt that referenced this pull request Aug 1, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
KGeri201 pushed a commit to KGeri201/openwrt that referenced this pull request Aug 17, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
hauke pushed a commit to hauke/openwrt that referenced this pull request Aug 23, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit 6889ea7)
hauke pushed a commit to hauke/openwrt that referenced this pull request Aug 24, 2025
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 <[email protected]>
Link: openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Aug 27, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
tongchuong pushed a commit to tongchuong/r7500v2-nss that referenced this pull request Aug 29, 2025
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
liudf0716 pushed a commit to liudf0716/chawrt that referenced this pull request Sep 10, 2025
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit ba7b5d2)
schqiushui pushed a commit to schqiushui/immortalwrt-mt798x that referenced this pull request Sep 12, 2025
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
lunatickochiya pushed a commit to lunatickochiya/openwrt-ipq-mod that referenced this pull request Sep 15, 2025
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
lunatickochiya pushed a commit to lunatickochiya/openwrt-ipq-mod that referenced this pull request Sep 15, 2025
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
indraAsLesmana pushed a commit to indraAsLesmana/openwrt that referenced this pull request Sep 23, 2025
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7b9a466b73f59fad9c6ae942728b907200)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
HateTM pushed a commit to HateTM/tpl_ax80_ubi that referenced this pull request Oct 26, 2025
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
AaronElijah pushed a commit to botblox/openwrt that referenced this pull request Mar 3, 2026
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 <[email protected]>
Link: openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
Rokith-BT pushed a commit to Gemicates-Tech/prplos that referenced this pull request Mar 17, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit ba7b5d2)
codelinaro-mirror-sync Bot pushed a commit to CodeLinaro-mirror/qsdk_oss_prpl-foundation_prplos_prplos that referenced this pull request Jul 8, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit ba7b5d2)
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
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 <[email protected]>
Link: openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
Quarx2k pushed a commit to Quarx2k/OpenWRT-BE7000 that referenced this pull request Sep 22, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
Signed-off-by: Hauke Mehrtens <[email protected]>
codelinaro-mirror-sync Bot pushed a commit to CodeLinaro-mirror/le_owrt_prplwrt that referenced this pull request Oct 18, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit ba7b5d2)
codelinaro-mirror-sync Bot pushed a commit to CodeLinaro-mirror/le_owrt_prplwrt that referenced this pull request Oct 18, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit ba7b5d2)
sKyissKy pushed a commit to sKyissKy/immortalwrt-mt798x-6.6 that referenced this pull request Nov 19, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>

(cherry picked from commit ba7b5d2)
sKyissKy pushed a commit to sKyissKy/immortalwrt-mt798x-6.6 that referenced this pull request Nov 25, 2026
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 <[email protected]>
Link: openwrt/openwrt#19385
(cherry picked from commit 6889ea7)
Link: openwrt/openwrt#19839
Signed-off-by: Hauke Mehrtens <[email protected]>
(cherry picked from commit ba7b5d2)
Reference: https://github.com/immortalwrt/immortalwrt (openwrt-24.10, commit ba7b5d2)
Signed-off-by: sKyissKy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core packages pull request/issue for core (in-tree) packages target/lantiq pull request/issue for lantiq target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants