mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-01 21:44:22 +01:00
In kernel 5.10.x on arm64 side, When CONFIG_RANDOM_BASE is enabled, physical base address can be a negative number. It may lead to bug when a PA is taken as a unsigned number in comparison, as PA is calculated based on the physical base address. The bug has been fixed latest code by commit ee7febce051945be2 in memory hotplug zone. We can eliminate the bug in an easy way by casting the PA as a signed value in the current code base to avoid lots of backport. Depends-on: github.com/kata-containers/tests#3388 Fixes: #1596 Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>