[dpdk-dev] [PATCH] net/virtio: fix of untrusted scalar value

Tan, Jianfeng jianfeng.tan at intel.com
Wed Sep 20 11:38:15 CEST 2017


Hi,

> -----Original Message-----
> From: Mrzyglod, DanielX T
> Sent: Wednesday, September 20, 2017 5:19 PM
> To: yliu at fridaylinux.org
> Cc: dev at dpdk.org; Mrzyglod, DanielX T; Tan, Jianfeng
> Subject: [PATCH] net/virtio: fix of untrusted scalar value
> 
> The unscrutinized value may be incorrectly assumed to be within a certain
> range by later operations.
> 
> In vhost_user_read: An unscrutinized value from an untrusted source used
> in a trusted context - the value of sz_payload may be harmfull and we need
> limit them to the max value of payload.

Please add below line.
Coverity issue: 139601

> 
> Fixes: 6a84c37e3975 ("net/virtio-user: add vhost-user adapter layer")
> Cc: jianfeng.tan at intel.com
> 
> Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod at intel.com>

Acked-by: Jianfeng Tan <jianfeng.tan at intel.com>

Thanks,
Jianfeng


More information about the dev mailing list