e1c9fcab3f
MCDI helper routines in libefx include length checks for response messages, to ensure that short replies and optional fields are handled correctly. If the MCDI response message from the firmware is larger than the caller's buffer then the response length reported to the caller should be limited to the buffer size. Otherwise length checks in the caller may allow reading past the end of the buffer. Fixes: 6f619653b9b1 ("net/sfc/base: import MCDI implementation") Cc: stable@dpdk.org Signed-off-by: Andy Moreton <amoreton@xilinx.com> Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru> Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
SPDX-License-Identifier: BSD-3-Clause Copyright(c) 2019-2021 Xilinx, Inc. Copyright(c) 2006-2019 Solarflare Communications Inc. Solarflare libefx driver library ================================ This directory contains source code of Solarflare Communications libefx driver library of version v4.10.0.1012. Updating ======== The source code in this directory should not be modified. Please contact the driver maintainers to request changes.