Revision 70fb3e41a97a5fecc0aedc9a429479d702c3ab66 authored by Ben Gardon on 15 March 2021, 23:38:00 UTC, committed by Paolo Bonzini on 16 March 2021, 18:14:59 UTC
The pt passed into handle_removed_tdp_mmu_page does not need RCU
protection, as it is not at any risk of being freed by another thread at
that point. However, the implicit cast from tdp_sptep_t to u64 * dropped
the __rcu annotation without a proper rcu_derefrence. Fix this by
passing the pt as a tdp_ptep_t and then rcu_dereferencing it in
the function.

Suggested-by: Sean Christopherson <seanjc@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210315233803.2706477-2-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 1e28eed
History
File Mode Size
.gitignore -rw-r--r-- 64 bytes
Kconfig -rw-r--r-- 3.8 KB
Makefile -rw-r--r-- 2.3 KB
arm_ssp_per_task_plugin.c -rw-r--r-- 2.8 KB
cyc_complexity_plugin.c -rw-r--r-- 1.7 KB
gcc-common.h -rw-r--r-- 14.0 KB
gcc-generate-gimple-pass.h -rw-r--r-- 3.9 KB
gcc-generate-ipa-pass.h -rw-r--r-- 6.7 KB
gcc-generate-rtl-pass.h -rw-r--r-- 3.8 KB
gcc-generate-simple_ipa-pass.h -rw-r--r-- 3.8 KB
gen-random-seed.sh -rw-r--r-- 305 bytes
latent_entropy_plugin.c -rw-r--r-- 16.4 KB
randomize_layout_plugin.c -rw-r--r-- 26.3 KB
sancov_plugin.c -rw-r--r-- 3.7 KB
stackleak_plugin.c -rw-r--r-- 17.8 KB
structleak_plugin.c -rw-r--r-- 7.3 KB

back to top