address_space_write: address_space_to_flatview needs RCU lock
commit4c6ebbb364aa6f42c5d8e83e932e967eb83f0e44
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Mar 2018 08:23:56 +0000 (5 09:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Mar 2018 13:01:27 +0000 (6 14:01 +0100)
tree73f0ddf49cbf9630fda799009f81024933ffc788
parent785a507ec78bbda1c346f3d3593e5a58b62e73ef
address_space_write: address_space_to_flatview needs RCU lock

address_space_write 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_write to address_space_write.

Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c