pvrdma: Fix the ring init error flow (CVE-2021-3608)
authorMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Wed, 30 Jun 2021 11:52:46 +0000 (14:52 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sun, 4 Jul 2021 19:47:51 +0000 (22:47 +0300)
commit66ae37d8cc313f89272e711174a846a229bcdbd3
treea0e6d90c8d4a9c633eec87c1124ec8171d412690
parent32e5703cfea07c91e6e84bcb0313f633bb146534
pvrdma: Fix the ring init error flow (CVE-2021-3608)

Do not unmap uninitialized dma addresses.

Fixes: CVE-2021-3608
Reviewed-by: VictorV (Kunlun Lab) <vv474172261@gmail.com>
Tested-by: VictorV (Kunlun Lab) <vv474172261@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Message-Id: <20210630115246.2178219-1-marcel@redhat.com>
Tested-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Reviewed-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/vmw/pvrdma_dev_ring.c