dpdk-dev] [PATCH] cryptodev: fix missing device id range checking
Zhao, XinfengX
Tested-by Zhao, XinfengQuoted 30 lines
-----Original Message-----
From: Dybkowski, AdamX <adamx.dybkowski at intel.com<https://mails.dpdk.org/listinfo/dev>>
Sent: Thursday, February 20, 2020 3:04 PM
To: dev at dpdk.org<https://mails.dpdk.org/listinfo/dev>; Trahe, Fiona <fiona.trahe at intel.com<https://mails.dpdk.org/listinfo/dev>>; akhil.goyal at nxp.com<https://mails.dpdk.org/listinfo/dev>
Cc Dybkowski, AdamX <adamx.dybkowski at intel.com<https://mails.dpdk.org/listinfo/dev>>; stable at dpdk.org<https://mails.dpdk.org/listinfo/dev>Subject: [PATCH] cryptodev: fix missing device id range checking
This patch adds range-checking of the device id passed from
the user app code. It prevents out-of-range array accesses
which in some situations resulted in an
application crash (segfault).
Fixes 3dd4435cf473 ("cryptodev: fix checks related to device id")Cc stable at dpdk.org<https://mails.dpdk.org/listinfo/dev>Signed-off-by Adam Dybkowski <adamx.dybkowski at intel.com<https://mails.dpdk.org/listinfo/dev>>