]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "xen/balloon: Fix crash when ballooning on x86 32 bit PAE"
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 27 Jul 2020 09:13:41 +0000 (11:13 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 3 Aug 2020 06:16:18 +0000 (08:16 +0200)
commit0fdefaf13d0d5f6789826211c5814420708207f9
tree838c9cd425fe60c4bb1e06a672ec15804d87e5f3
parentde43248905ac9c177ec8edf7f0e9ae2f4cf35815
Revert "xen/balloon: Fix crash when ballooning on x86 32 bit PAE"

This reverts commit b611c42aaf490c60c689f39787501089d1a47fae.

This has been fixed by commit 48722d8ff4b0cd7e2d9 which added the out
of bounds check to __add_memory, so that trying to add blocks past
MAX_PHYSMEM_BITS will fail.

Note the check in the Xen balloon driver was bogus anyway, as it
checked the start address of the resource, but it should instead test
the end address to assert the whole resource falls below
MAX_PHYSMEM_BITS.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20200727091342.52325-4-roger.pau@citrix.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/balloon.c