[PATCH net,stable v3] net: cdc_ncm: correct overhead in delayed_ndp_size

2021-01-04 Thread Jouni Seppänen
From: Jouni K. Seppänen Aligning to tx_ndp_modulus is not sufficient because the next align call can be cdc_ncm_align_tail, which can add up to ctx->tx_modulus + ctx->tx_remainder - 1 bytes. This used to lead to occasional crashes on a Huawei 909s-120 LTE module as follows: - the condition

[PATCH net,stable v2] net: cdc_ncm: correct overhead in delayed_ndp_size

2021-01-03 Thread Jouni Seppänen
From: Jouni K. Seppänen Aligning to tx_ndp_modulus is not sufficient because the next align call can be cdc_ncm_align_tail, which can add up to ctx->tx_modulus + ctx->tx_remainder - 1 bytes. This used to lead to occasional crashes on a Huawei 909s-120 LTE module as follows: - the condition

[PATCH net,stable] net: cdc_ncm: correct overhead in delayed_ndp_size

2021-01-03 Thread Jouni Seppänen
From: Jouni K. Seppänen Aligning to tx_ndp_modulus is not sufficient because the next align call can be cdc_ncm_align_tail, which can add up to ctx->tx_modulus + ctx->tx_remainder - 1 bytes. This used to lead to occasional crashes on a Huawei 909s-120 LTE module as follows: - the condition