[PATCH] net/mana: prevent values overflow returned from RDMA layer

Ferruh Yigit ferruh.yigit at amd.com
Mon Jan 22 15:04:56 CET 2024


On 1/18/2024 6:05 PM, longli at linuxonhyperv.com wrote:
> From: Long Li <longli at microsoft.com>
> 
> The device capabilities reported from RDMA layer are in int. Those values can
> overflow with the data types defined in dev_info_get().
> 
> Fix this by doing a upper bound before returning those values.
> 
> Fixes: 517ed6e2d590 ("net/mana: add basic driver with build environment")
> Cc: stable at dpdk.org
>
> Signed-off-by: Long Li <longli at microsoft.com>
>

Applied to dpdk-next-net/main, thanks.


'%lu' format specifiers replaced with 'PRIu64' for 'priv->max_mr_size'
while merging.



More information about the stable mailing list