[PATCH][stable-4.{14,19}.y 0/3] net: cdc_ncm: Backport fixes

From: Tudor Ambarus
Date: Mon Jun 05 2023 - 08:20:59 EST


Backport patches in order to fix the kernel bug reported at:
Link: https://syzkaller.appspot.com/bug?extid=b982f1059506db48409d

Alexander's patches are prerequisites for the last. I made sure there
are no other fixes in torvalds/master for the prerequisite patches.
Compile tested. Intended for stable/linux-4.{14,19}.y.

Alexander Bersenev (2):
cdc_ncm: Implement the 32-bit version of NCM Transfer Block
cdc_ncm: Fix the build warning

Tudor Ambarus (1):
net: cdc_ncm: Deal with too low values of dwNtbOutMaxSize

drivers/net/usb/cdc_ncm.c | 435 ++++++++++++++++++++++++-------
drivers/net/usb/huawei_cdc_ncm.c | 8 +-
include/linux/usb/cdc_ncm.h | 15 +-
3 files changed, 355 insertions(+), 103 deletions(-)

--
2.41.0.rc0.172.g3f132b7071-goog