Re: [PATCH v2] mm/selftest: Fix race condition in userfaultfd dynamic address allocation

Peter Xu
2025-04-23T22:14:40Z

On Thu, Apr 17, 2025 at 06:18:55PM +0000, Marty Kareem wrote:
> Hello,

Hi,

Apologies on the late response. I was on a very long leave, and your email
by accident arrived right after I left.

>
> I'm writing to follow up on the patch I submitted regarding improved dynamic address allocation in userfaultfd tests. The patch aims to prevent race conditions by keeping temporary PROT_NONE reservations active until they can be atomically replaced with MAP_FIXED mappings.
>
> I sent the patch through git send and I was wondering if you've had a chance to review this submission and if you have any feedback or questions about the implementation. As mentioned in the original submission, this approach makes the tests more reliable, especially when running in parallel, with minimal performance impact.
>
> Thank you for your time. I look forward to hearing from you.

Your patch v2 doesn't look like to apply to akpm's branches. Are you sure
you generated on top of a correct base commit?

Meanwhile, please consider sending it separately instead of replying to
your other versions. You can send a fresh new v3.

Thanks,

--
Peter Xu