Re: [PATCH v2] mm/mmu_notifiers: Esnure range_end() is paired with range_start()

2021-03-11 Thread Jason Gunthorpe
On Thu, Mar 11, 2021 at 10:00:57AM -0800, Sean Christopherson wrote: > If one or more notifiers fails .invalidate_range_start(), invoke > .invalidate_range_end() for "all" notifiers. If there are multiple > notifiers, those that did not fail are expecting _start() and _end() to > be paired, e.g. K

[PATCH v2] mm/mmu_notifiers: Esnure range_end() is paired with range_start()

2021-03-11 Thread Sean Christopherson
If one or more notifiers fails .invalidate_range_start(), invoke .invalidate_range_end() for "all" notifiers. If there are multiple notifiers, those that did not fail are expecting _start() and _end() to be paired, e.g. KVM's mmu_notifier_count would become imbalanced. Disallow notifiers that can