]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Prevent PFN wraparound
authorSasha Levin <levinsasha928@gmail.com>
Wed, 11 May 2011 15:17:24 +0000 (18:17 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 11 May 2011 15:51:15 +0000 (18:51 +0300)
commit84ffff2ec1738f9568ef63781a6afee27359ecf2
tree0f3c3a43664e694cba353d51d62aee51a3041475
parent86081713656872933f961f2a7728d0ae573f8257
kvm tools: Prevent PFN wraparound

queue->pfn may be used to point at addresses larger
than 32 bit.
Prevent a wraparound when shifting it left.

Acked-and-tested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/virtio.h
tools/kvm/virtio/blk.c
tools/kvm/virtio/console.c
tools/kvm/virtio/net.c
tools/kvm/virtio/rng.c