aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-05-27 21:48:30 +0300
committerKalle Valo <[email protected]>2020-05-29 20:40:22 +0300
commit11e7a91994c29da96d847f676be023da6a2c1359 (patch)
tree5803e9975cb461084b7c68bb07f292f854893304 /lib/mpi/mpi-sub-ui.c
parent113a57a400a2d4974448760464f6443d52a1e498 (diff)
airo: Fix read overflows sending packets
The problem is that we always copy a minimum of ETH_ZLEN (60) bytes from skb->data even when skb->len is less than ETH_ZLEN so it leads to a read overflow. The fix is to pad skb->data to at least ETH_ZLEN bytes. Cc: <[email protected]> Reported-by: Hu Jiahui <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/20200527184830.GA1164846@mwanda
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions