Skip to content
Commit 338c25b6 authored by Samuel Mendoza-Jonas's avatar Samuel Mendoza-Jonas Committed by Alexander Graf
Browse files

spapr: Fix integer overflow during migration (TCG)



The n_valid and n_invalid fields are unsigned short integers but it is
possible to have more than 65535 entries in a contiguous hunk, overflowing
the field. This results in an incorrect HTAB being sent to the destination
during migration.

Signed-off-by: default avatarSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Reviewed-by: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 01a57972
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment