ppc/pnv: check size before data buffer access
While performing PowerNV memory r/w operations, the access length 'sz' could exceed the data[4] buffer size. Add check to avoid OOB access. Reported-by:Moguofang <moguofang@huawei.com> Signed-off-by:
Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by:
Cédric Le Goater <clg@kaod.org> Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
Loading
Please register or sign in to comment