aboutsummaryrefslogtreecommitdiff
path: root/linux-user/arm/signal.c
diff options
context:
space:
mode:
authorliujunjie <liujunjie23@huawei.com>2018-06-07 16:02:37 +0800
committerGerd Hoffmann <kraxel@redhat.com>2018-06-18 12:06:45 +0200
commitb55a06df4f03f21e8a32e9d067a8a5782ac3ce0d (patch)
tree0edfc57a17f025f6bccd098214e00c0cdd561481 /linux-user/arm/signal.c
parent2ef2f16781af9dee6ba6517755e9073ba5799fa2 (diff)
ps2: check PS2Queue wptr pointer in post_load routine
In commit 802cbcb7300, most issues have been fixed when qemu guest migration. But the queue size still need to check whether is equal to PS2_QUEUE_SIZE. If yes, the wptr should set as 0. Or, wptr would larger than PS2_QUEUE_SIZE and never come back when ps2_queue_noirq is called. This could lead to OOB access, add check to avoid it. Signed-off-by: liujunjie <liujunjie23@huawei.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com> Message-id: 20180607080237.12360-1-liujunjie23@huawei.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'linux-user/arm/signal.c')
0 files changed, 0 insertions, 0 deletions