]> git.proxmox.com Git - mirror_qemu.git/commit
address_space_access_valid: address_space_to_flatview needs RCU lock
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 4 Mar 2018 23:23:26 +0000 (00:23 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Mar 2018 13:01:28 +0000 (14:01 +0100)
commit11e732a5ed46903f997985bed4c3767ca28a7eb6
treeb2169eca05c7c611f7544c1d5008dcb8fa81609c
parentb2a44fcad74f1cc7a6786d38eba7db12ab2352ba
address_space_access_valid: address_space_to_flatview needs RCU lock

address_space_access_valid 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_access_valid to address_space_access_valid.

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