mei: fix transfer over dma with extended header
authorAlexander Usyskin <alexander.usyskin@intel.com>
Fri, 29 Jan 2021 12:07:46 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2021 15:59:11 +0000 (16:59 +0100)
commit1309ecc90f16ee9cc3077761e7f4474369747e6e
treea7cc5c870e0bbf9ead87aa16f287aa0977ebdae8
parentd71277dc9bd6789964405e0a55d70c1fb2098f84
mei: fix transfer over dma with extended header

The size in header field for packet transferred over DMA
includes size of the extended header.
Include extended header in size check.
Add size and sanity checks on extended header.

Cc: <stable@vger.kernel.org> # v5.10+
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20210129120752.850325-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/interrupt.c