]> git.baikalelectronics.ru Git - kernel.git/commit
net: qualcomm: rmnet: Fix rx_handler for non-linear skbs
authorLoic Poulain <loic.poulain@linaro.org>
Thu, 4 Feb 2021 08:40:01 +0000 (09:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 19:28:45 +0000 (11:28 -0800)
commitb59518d045c63806ed91207a0121cf58f9437ee2
tree5dc7ea2db11a9c934780106f703f46072d7bd428
parent7c277be6ad1ad22b12573c5e03f61d6c608514f5
net: qualcomm: rmnet: Fix rx_handler for non-linear skbs

There is no guarantee that rmnet rx_handler is only fed with linear
skbs, but current rmnet implementation does not check that, leading
to crash in case of non linear skbs processed as linear ones.

Fix that by ensuring skb linearization before processing.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Link: https://lore.kernel.org/r/1612428002-12333-2-git-send-email-loic.poulain@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c