diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-31 18:48:45 -0400 | 
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-05-31 18:48:45 -0400 | 
| commit | 24e8a2ca1f74574ad2ed1ac7af0260dd90fd911e (patch) | |
| tree | c863dd43c84579d853f3a2ae0ee6ead46c967703 /kernel/bpf/syscall.c | |
| parent | 66f61c92889ff3ca365161fb29dd36d6354682ba (diff) | |
| parent | d724c9e54939a597592de3659541da11fc7aa112 (diff) | |
Merge tag 'kvm-ppc-fixes-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master
PPC KVM fixes for 5.2
- Several bug fixes for the new XIVE-native code.
- Replace kvm->lock by other mutexes in several places where we hold a
  vcpu mutex, to avoid lock order inversions.
- Fix a lockdep warning on guest entry for radix-mode guests.
- Fix a bug causing user-visible corruption of SPRG3 on the host.
Diffstat (limited to 'kernel/bpf/syscall.c')
| -rw-r--r-- | kernel/bpf/syscall.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index ad3ccf82f31d..cb5440b02e82 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c  | |||
| @@ -808,7 +808,10 @@ static int map_lookup_elem(union bpf_attr *attr) | |||
| 808 | err = map->ops->map_peek_elem(map, value); | 808 | err = map->ops->map_peek_elem(map, value); | 
| 809 | } else { | 809 | } else { | 
| 810 | rcu_read_lock(); | 810 | rcu_read_lock(); | 
| 811 | ptr = map->ops->map_lookup_elem(map, key); | 811 | if (map->ops->map_lookup_elem_sys_only) | 
| 812 | ptr = map->ops->map_lookup_elem_sys_only(map, key); | ||
| 813 | else | ||
| 814 | ptr = map->ops->map_lookup_elem(map, key); | ||
| 812 | if (IS_ERR(ptr)) { | 815 | if (IS_ERR(ptr)) { | 
| 813 | err = PTR_ERR(ptr); | 816 | err = PTR_ERR(ptr); | 
| 814 | } else if (!ptr) { | 817 | } else if (!ptr) { | 
