]> git.ipfire.org Git - thirdparty/qemu.git/commit
address_space_read: address_space_to_flatview needs RCU lock
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 4 Mar 2018 23:19:49 +0000 (00:19 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:44:59 +0000 (20:44 -0500)
commitf77c23120237b9e47607fc06531a4e2b40818e45
treef23fb80c24c0d88983aa177badf0a327a06962d5
parentdf04d1f16ae58a4eee0f64476667f2fd6c1d6d30
address_space_read: address_space_to_flatview needs RCU lock

address_space_read is calling address_space_to_flatview but it can
be called outside the RCU lock.  To fix it, push the rcu_read_lock/unlock
pair up from flatview_read_full to address_space_read's constant size
fast path and address_space_read_full.

Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit b2a44fcad74f1cc7a6786d38eba7db12ab2352ba)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
exec.c
include/exec/memory.h