Re: [PATCH] KVM: selftests: Wait mprotect_ro_done before write to RO in mmu_stress_test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2025-02-08 at 18:53 +0800, Yan Zhao wrote:
> In the read-only mprotect() phase of mmu_stress_test, ensure that
> mprotect(PROT_READ) has completed before the guest starts writing to the
> read-only mprotect() memory.

Is this a fix for the intermittent failure we saw on the v6.13-rc3 based kvm
branch? Funnily, I can't seem to reproduce it anymore, with or without this fix.

On the fix though, doesn't this remove the coverage of writing to a region that
is in the process of being made RO? I'm thinking about warnings, etc that may
trigger intermittently based on bugs with a race component. I don't know if we
could fix the test and still leave the write while the "mprotect(PROT_READ) is
underway". It seems to be deliberate.




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux