]> git.baikalelectronics.ru Git - kernel.git/commit
xen: correct race in alloc_p2m_pmd()
authorJuergen Gross <jgross@suse.com>
Mon, 12 Jan 2015 05:05:08 +0000 (06:05 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 12 Jan 2015 10:09:40 +0000 (10:09 +0000)
commitac9f996df581d830d49906953aa61a938e54412c
treeff0134e6a0dd55e5066719de73dac85d8ea972fe
parent2bce54d8c0026c1fa0056fd0aaeb8a5177e89db0
xen: correct race in alloc_p2m_pmd()

When allocating a new pmd for the linear mapped p2m list a check is
done for not introducing another pmd when this just happened on
another cpu. In this case the old pte pointer was returned which
points to the p2m_missing or p2m_identity page. The correct value
would be the pointer to the found new page.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/p2m.c