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

2021-01-05 Thread David Miller
From: Jouni Seppänen Date: Tue, 5 Jan 2021 06:52:49 +0200 > 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

[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