Please pull my kvm-ppc-fixes branch
Paolo,
Please do a pull from my kvm-ppc-fixes branch to get one more commit for 4.13. It adds mutual exclusion between list_add_rcu and list_del_rcu calls on the kvm->arch.spapr_tce_tables list. Without this, userspace could potentially trigger corruption of the list and cause a host crash or worse.
Thanks,
Paul.
The following changes since commit 47c5310a8dbe7c2cb9f0083daa43ceed76c257fa:
KVM: PPC: Book3S: Fix race and leak in kvm_vm_ioctl_create_spapr_tce() (2017-08-25 11:08:57 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc kvm-ppc-fixes
for you to fetch changes up to edd03602d97236e8fea13cd76886c576186aa307:
KVM: PPC: Book3S HV: Protect updates to spapr_tce_tables list (2017-08-30 14:59:31 +1000)
----------------------------------------------------------------
Paul Mackerras (1):
KVM: PPC: Book3S HV: Protect updates to spapr_tce_tables list
arch/powerpc/kvm/book3s_64_vio.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-)
2017-08-30 16:21+1000, Paul Mackerras:
Quoted 7 lines
Paolo,
Please do a pull from my kvm-ppc-fixes branch to get one more commit for 4.13. It adds mutual exclusion between
list_add_rcuandlist_del_rcucalls on thekvm->arch.spapr_tce_tableslist. Without this, userspace could potentially trigger corruption of the list and cause a host crash or worse.
Both Paolo and I had a vacation the week before final 4.13, so I merged this for 3.14-rc1, sorry.
Paolo Bonzini
maintainerQuoted 11 lines · Radim Krčmář
2017-08-30 16:21+1000, Paul Mackerras:
Quoted 7 lines
Paolo,
Please do a pull from my kvm-ppc-fixes branch to get one more commit for 4.13. It adds mutual exclusion between
list_add_rcuandlist_del_rcucalls on thekvm->arch.spapr_tce_tableslist. Without this, userspace could potentially trigger corruption of the list and cause a host crash or worse.Both Paolo and I had a vacation the week before final 4.13, so I merged this for 3.14-rc1, sorry.
Pi is always a nice source of typos.
I guess it needs to go in 4.13-stable too? Paul, can you forward it to [email protected] and include the "Fixes" information (which, by the way, should probably be almost always included in -rc patches)?
Thanks,
Paolo
Quoted 10 lines · Paolo Bonzini
Quoted 9 lines · Radim Krčmář
2017-08-30 16:21+1000, Paul Mackerras:
Quoted 7 lines
Paolo,
Please do a pull from my kvm-ppc-fixes branch to get one more commit for 4.13. It adds mutual exclusion between
list_add_rcuandlist_del_rcucalls on thekvm->arch.spapr_tce_tableslist. Without this, userspace could potentially trigger corruption of the list and cause a host crash or worse.
Quoted 4 lines
Quoted 2 lines
Both Paolo and I had a vacation the week before final 4.13, so I merged this for 3.14-rc1, sorry.
Pi is always a nice source of typos.
8-)
Quoted 3 lines
I guess it needs to go in 4.13-stable too? Paul, can you forward it to [email protected] and include the "Fixes" information (which, by the way, should probably be almost always included in -rc patches)?
Yes, I'll forward it and the previous patch in this area, with fixes tags.
Paul.